@andco/protocol 0.0.3 → 0.0.4
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/LICENSE +1 -1
- package/README.md +33 -3
- package/dist/api-errors.d.ts +109 -0
- package/dist/api-errors.d.ts.map +1 -0
- package/dist/api-errors.js +111 -0
- package/dist/authorization-preparation.d.ts +52 -543
- package/dist/authorization-preparation.d.ts.map +1 -1
- package/dist/authorization-preparation.js +19 -42
- package/dist/authorization.d.ts +64 -22
- package/dist/authorization.d.ts.map +1 -1
- package/dist/authorization.js +136 -55
- package/dist/consent.d.ts +5 -8
- package/dist/consent.d.ts.map +1 -1
- package/dist/consent.js +5 -62
- package/dist/constants.d.ts +19 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/constants.js +19 -3
- package/dist/errors.d.ts +156 -58
- package/dist/errors.d.ts.map +1 -1
- package/dist/errors.js +176 -57
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -4
- package/dist/intent-input.d.ts +1010 -279
- package/dist/intent-input.d.ts.map +1 -1
- package/dist/intent-input.js +268 -40
- package/dist/messages/error.d.ts +1 -2
- package/dist/messages/error.d.ts.map +1 -1
- package/dist/messages/error.js +5 -2
- package/dist/messages/index.d.ts +1 -1
- package/dist/native-copy.d.ts +23 -2
- package/dist/native-copy.d.ts.map +1 -1
- package/dist/native-copy.js +42 -98
- package/dist/native-intent.d.ts +126 -75
- package/dist/native-intent.d.ts.map +1 -1
- package/dist/native-intent.js +140 -48
- package/dist/rar/account-matchers.d.ts +579 -0
- package/dist/rar/account-matchers.d.ts.map +1 -0
- package/dist/rar/account-matchers.js +480 -0
- package/dist/rar/bank.d.ts +1549 -0
- package/dist/rar/bank.d.ts.map +1 -0
- package/dist/rar/bank.js +379 -0
- package/dist/rar/catalog.d.ts +1155 -0
- package/dist/rar/catalog.d.ts.map +1 -0
- package/dist/rar/catalog.js +175 -0
- package/dist/rar/detail.d.ts +39 -0
- package/dist/rar/detail.d.ts.map +1 -0
- package/dist/rar/detail.js +44 -0
- package/dist/rar/index.d.ts +9 -0
- package/dist/rar/index.d.ts.map +1 -0
- package/dist/rar/index.js +8 -0
- package/dist/rar/money.d.ts +58 -0
- package/dist/rar/money.d.ts.map +1 -0
- package/dist/rar/money.js +61 -0
- package/dist/rar/project-users.d.ts +43 -0
- package/dist/rar/project-users.d.ts.map +1 -0
- package/dist/rar/project-users.js +63 -0
- package/dist/rar/subject-data.d.ts +170 -0
- package/dist/rar/subject-data.d.ts.map +1 -0
- package/dist/rar/subject-data.js +127 -0
- package/dist/rar/subject.d.ts +166 -0
- package/dist/rar/subject.d.ts.map +1 -0
- package/dist/rar/subject.js +119 -0
- package/dist/scopes.d.ts +5 -30
- package/dist/scopes.d.ts.map +1 -1
- package/dist/scopes.js +0 -13
- package/dist/service-grants.d.ts +44 -0
- package/dist/service-grants.d.ts.map +1 -0
- package/dist/service-grants.js +45 -0
- package/dist/signing.d.ts +56 -0
- package/dist/signing.d.ts.map +1 -0
- package/dist/signing.js +233 -0
- package/dist/transport/financial-events.d.ts +90 -35
- package/dist/transport/financial-events.d.ts.map +1 -1
- package/dist/transport/financial-events.js +7 -1
- package/dist/transport/generated/oauth-api.d.ts +908 -440
- package/dist/transport/generated/oauth-api.d.ts.map +1 -1
- package/dist/transport/index.d.ts +0 -1
- package/dist/transport/index.d.ts.map +1 -1
- package/dist/transport/index.js +0 -1
- package/dist/transport/intents.d.ts +155 -23
- package/dist/transport/intents.d.ts.map +1 -1
- package/dist/transport/intents.js +192 -59
- package/dist/transport/rest.d.ts +18 -8
- package/dist/transport/rest.d.ts.map +1 -1
- package/dist/transport/rest.js +1 -1
- package/dist/urls.d.ts.map +1 -1
- package/dist/urls.js +1 -1
- package/dist/userinfo.d.ts +10 -1
- package/dist/userinfo.d.ts.map +1 -1
- package/dist/userinfo.js +10 -1
- package/dist/utils.d.ts +15 -0
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +31 -0
- package/dist/webhooks.d.ts +154 -0
- package/dist/webhooks.d.ts.map +1 -0
- package/dist/webhooks.js +249 -0
- package/package.json +18 -1
- package/dist/automatic-charge.d.ts +0 -314
- package/dist/automatic-charge.d.ts.map +0 -1
- package/dist/automatic-charge.js +0 -126
- package/dist/bank-account-authorization.d.ts +0 -6
- package/dist/bank-account-authorization.d.ts.map +0 -1
- package/dist/bank-account-authorization.js +0 -13
- package/dist/transport/webhooks.d.ts +0 -27
- package/dist/transport/webhooks.d.ts.map +0 -1
- package/dist/transport/webhooks.js +0 -68
- package/dist/webhook-input.d.ts +0 -22
- package/dist/webhook-input.d.ts.map +0 -1
- package/dist/webhook-input.js +0 -11
- package/dist/webhook-signature.d.ts +0 -54
- package/dist/webhook-signature.d.ts.map +0 -1
- package/dist/webhook-signature.js +0 -74
package/dist/native-copy.js
CHANGED
|
@@ -5,14 +5,20 @@ export function ANDCO_NATIVE_LOCALE(language = Intl.DateTimeFormat().resolvedOpt
|
|
|
5
5
|
}
|
|
6
6
|
/** Formats CLP on Hermes without BigInt coercion or rounding unsafe integers. */
|
|
7
7
|
export function ANDCO_NATIVE_MONEY(value, locale = ANDCO_NATIVE_LOCALE()) {
|
|
8
|
+
return ANDCO_FORMAT_MONEY(value, "CLP", locale === "es" ? "es-CL" : locale);
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Formats a monetary string Andco returned, in any currency and locale, guarding the same way
|
|
12
|
+
* {@link ANDCO_NATIVE_MONEY} does against a value that would silently lose precision going through
|
|
13
|
+
* `Number()`. Every consumer that renders an Andco balance or amount as a string -- example apps
|
|
14
|
+
* included -- should format through this function instead of re-implementing the guard, or skipping
|
|
15
|
+
* it, on its own.
|
|
16
|
+
*/
|
|
17
|
+
export function ANDCO_FORMAT_MONEY(value, currency, locale = "es-CL") {
|
|
8
18
|
const amount = Number(value);
|
|
9
19
|
if (!Number.isSafeInteger(amount))
|
|
10
|
-
return `${value}
|
|
11
|
-
return new Intl.NumberFormat(locale
|
|
12
|
-
style: "currency",
|
|
13
|
-
currency: "CLP",
|
|
14
|
-
maximumFractionDigits: 0,
|
|
15
|
-
}).format(amount);
|
|
20
|
+
return `${value} ${currency}`;
|
|
21
|
+
return new Intl.NumberFormat(locale, { style: "currency", currency, maximumFractionDigits: 0 }).format(amount);
|
|
16
22
|
}
|
|
17
23
|
/** Native equivalents of Platform's localized labels; server-owned resource descriptions remain unchanged. */
|
|
18
24
|
export function ANDCO_NATIVE_TEXT(text, values = {}, locale = ANDCO_NATIVE_LOCALE()) {
|
|
@@ -20,6 +26,26 @@ export function ANDCO_NATIVE_TEXT(text, values = {}, locale = ANDCO_NATIVE_LOCAL
|
|
|
20
26
|
const translated = row ? row[locale === "en" ? 0 : locale === "pt" ? 1 : 2] : text;
|
|
21
27
|
return translated.replace(/\{\{(\w+)\}\}/g, (match, key) => String(values[key] ?? match));
|
|
22
28
|
}
|
|
29
|
+
/**
|
|
30
|
+
* Untranslated copy keys that vary only by Intent type, shared by every native renderer.
|
|
31
|
+
*
|
|
32
|
+
* Every consumer -- {@link ANDCO_NATIVE_INTENT_VIEW} and both platform Intent drawers -- reads this
|
|
33
|
+
* record instead of re-deriving the same three-way branch with its own chain of ternaries. Each
|
|
34
|
+
* value is a key into {@link ANDCO_NATIVE_TEXT}'s copy table, so callers still translate it with
|
|
35
|
+
* `ANDCO_NATIVE_TEXT(...)` at the point where it is rendered.
|
|
36
|
+
*/
|
|
37
|
+
export const ANDCO_NATIVE_INTENT_TYPE_COPY = {
|
|
38
|
+
deposit: {
|
|
39
|
+
title: "Realizar un depósito",
|
|
40
|
+
amountLabel: "Monto a abonar (CLP)",
|
|
41
|
+
destinationLabel: "Cuenta de destino",
|
|
42
|
+
},
|
|
43
|
+
transfer: {
|
|
44
|
+
title: "Confirmar transferencia",
|
|
45
|
+
amountLabel: "Monto a transferir (CLP)",
|
|
46
|
+
destinationLabel: "Destino",
|
|
47
|
+
},
|
|
48
|
+
};
|
|
23
49
|
const COPY = {
|
|
24
50
|
"Aún no hay abonos registrados en esta cuenta.": [
|
|
25
51
|
"No credits have been recorded in this account yet.",
|
|
@@ -183,7 +209,7 @@ const COPY = {
|
|
|
183
209
|
"Consultando el estado actual…",
|
|
184
210
|
],
|
|
185
211
|
"Realizar un depósito": ["Make a deposit", "Fazer um depósito", "Realizar un depósito"],
|
|
186
|
-
"Confirmar
|
|
212
|
+
"Confirmar transferencia": ["Confirm transfer", "Confirmar transferência", "Confirmar transferencia"],
|
|
187
213
|
"Operación completada": ["Operation completed", "Operação concluída", "Operación completada"],
|
|
188
214
|
"La solicitud venció": ["This request expired", "Esta solicitação expirou", "La solicitud venció"],
|
|
189
215
|
"Procesando la operación": ["Processing operation", "Processando operação", "Procesando la operación"],
|
|
@@ -194,7 +220,9 @@ const COPY = {
|
|
|
194
220
|
"Revisa los datos antes de continuar",
|
|
195
221
|
],
|
|
196
222
|
"Cuenta de destino": ["Destination account", "Conta de destino", "Cuenta de destino"],
|
|
197
|
-
|
|
223
|
+
Destino: ["Destination", "Destino", "Destino"],
|
|
224
|
+
"Cuenta {{alias}}": ["Account {{alias}}", "Conta {{alias}}", "Cuenta {{alias}}"],
|
|
225
|
+
"Cuenta Andco {{id}}": ["Andco account {{id}}", "Conta Andco {{id}}", "Cuenta Andco {{id}}"],
|
|
198
226
|
Banco: ["Bank", "Banco", "Banco"],
|
|
199
227
|
"Tipo de cuenta": ["Account type", "Tipo de conta", "Tipo de cuenta"],
|
|
200
228
|
Corriente: ["Checking", "Corrente", "Corriente"],
|
|
@@ -208,7 +236,7 @@ const COPY = {
|
|
|
208
236
|
"Seleccionada · ": ["Selected · ", "Selecionada · ", "Seleccionada · "],
|
|
209
237
|
"Selecciona una cuenta": ["Choose an account", "Selecione uma conta", "Selecciona una cuenta"],
|
|
210
238
|
"Monto a abonar (CLP)": ["Deposit amount (CLP)", "Valor do depósito (CLP)", "Monto a abonar (CLP)"],
|
|
211
|
-
"Monto a
|
|
239
|
+
"Monto a transferir (CLP)": ["Transfer amount (CLP)", "Valor da transferência (CLP)", "Monto a transferir (CLP)"],
|
|
212
240
|
"Monto a abonar": ["Deposit amount", "Valor do depósito", "Monto a abonar"],
|
|
213
241
|
Descripción: ["Bank reference", "Referência bancária", "Descripción"],
|
|
214
242
|
"Confirmando…": ["Confirming…", "Confirmando…", "Confirmando…"],
|
|
@@ -237,22 +265,6 @@ const COPY = {
|
|
|
237
265
|
"São exibidas apenas Empresas nas quais você pode autorizar aplicativos.",
|
|
238
266
|
"Solo se muestran Empresas en las que puedes autorizar aplicaciones.",
|
|
239
267
|
],
|
|
240
|
-
"Autorizar cargos automáticos": [
|
|
241
|
-
"Authorize automatic charges",
|
|
242
|
-
"Autorizar cobranças automáticas",
|
|
243
|
-
"Autorizar cargos automáticos",
|
|
244
|
-
],
|
|
245
|
-
"Cuentas que pagarán los cargos": [
|
|
246
|
-
"Accounts that will pay the charges",
|
|
247
|
-
"Contas que pagarão as cobranças",
|
|
248
|
-
"Cuentas que pagarán los cargos",
|
|
249
|
-
],
|
|
250
|
-
"Por asignar": ["Pending assignment", "A atribuir", "Por asignar"],
|
|
251
|
-
"La aplicación ya está instalada en esta Empresa.": [
|
|
252
|
-
"The app is already installed for this Company.",
|
|
253
|
-
"O aplicativo já está instalado nesta Empresa.",
|
|
254
|
-
"La aplicación ya está instalada en esta Empresa.",
|
|
255
|
-
],
|
|
256
268
|
"Ya no tienes permiso para autorizar esta conexión. Revisa el acceso a la Empresa e inténtalo nuevamente.": [
|
|
257
269
|
"You can no longer authorize this connection. Check your Company access and try again.",
|
|
258
270
|
"Você não pode mais autorizar esta conexão. Confira seu acesso à Empresa e tente novamente.",
|
|
@@ -323,21 +335,11 @@ const COPY = {
|
|
|
323
335
|
"Autorizar {{project}} em nome desta Empresa.",
|
|
324
336
|
"Autorizar a {{project}} en nombre de esta Empresa.",
|
|
325
337
|
],
|
|
326
|
-
"Al autorizar se instalará {{project}} para esta Empresa.": [
|
|
327
|
-
"Authorizing will install {{project}} for this Company.",
|
|
328
|
-
"A autorização instalará {{project}} para esta Empresa.",
|
|
329
|
-
"Al autorizar se instalará {{project}} para esta Empresa.",
|
|
330
|
-
],
|
|
331
338
|
"Consultar el saldo y los datos públicos de esta cuenta.": [
|
|
332
339
|
"Read this account’s balance and public details.",
|
|
333
340
|
"Consultar o saldo e os dados públicos desta conta.",
|
|
334
341
|
"Consultar el saldo y los datos públicos de esta cuenta.",
|
|
335
342
|
],
|
|
336
|
-
"Consultar los movimientos de esta cuenta.": [
|
|
337
|
-
"Read this account’s transactions.",
|
|
338
|
-
"Consultar as movimentações desta conta.",
|
|
339
|
-
"Consultar los movimientos de esta cuenta.",
|
|
340
|
-
],
|
|
341
343
|
"Iniciar depósitos guiados hacia esta cuenta.": [
|
|
342
344
|
"Initiate guided deposits into this account.",
|
|
343
345
|
"Iniciar depósitos guiados nesta conta.",
|
|
@@ -366,69 +368,11 @@ const COPY = {
|
|
|
366
368
|
"Identidad OpenID": ["OpenID identity", "Identidade OpenID", "Identidad OpenID"],
|
|
367
369
|
"Correo electrónico": ["Email address", "Endereço de e-mail", "Correo electrónico"],
|
|
368
370
|
"Nombre y avatar": ["Name and avatar", "Nome e avatar", "Nombre y avatar"],
|
|
369
|
-
"
|
|
370
|
-
"
|
|
371
|
-
"
|
|
372
|
-
"
|
|
373
|
-
"
|
|
374
|
-
],
|
|
375
|
-
"Leer direcciones": ["Read addresses", "Ler endereços", "Leer direcciones"],
|
|
376
|
-
"Crear y actualizar direcciones": [
|
|
377
|
-
"Create and update addresses",
|
|
378
|
-
"Criar e atualizar endereços",
|
|
379
|
-
"Crear y actualizar direcciones",
|
|
380
|
-
],
|
|
381
|
-
"Listar los nombres e identificadores de mis organizaciones": [
|
|
382
|
-
"List my organizations' names and identifiers",
|
|
383
|
-
"Listar nomes e identificadores das minhas organizações",
|
|
384
|
-
"Listar los nombres e identificadores de mis organizaciones",
|
|
385
|
-
],
|
|
386
|
-
"Leer cuentas bancarias": ["Read bank accounts", "Ler contas bancárias", "Leer cuentas bancarias"],
|
|
387
|
-
"Leer movimientos de cuentas bancarias": [
|
|
388
|
-
"Read bank account movements",
|
|
389
|
-
"Ler movimentações de contas bancárias",
|
|
390
|
-
"Leer movimientos de cuentas bancarias",
|
|
391
|
-
],
|
|
392
|
-
"Empresa seleccionada": ["Selected Company", "Empresa selecionada", "Empresa seleccionada"],
|
|
393
|
-
"Monto por cargo": ["Amount per charge", "Valor por cobrança", "Monto por cargo"],
|
|
394
|
-
"{{min}} a {{max}}": ["{{min}} to {{max}}", "{{min}} a {{max}}", "{{min}} a {{max}}"],
|
|
395
|
-
"Empresa que recibe": ["Receiving Company", "Empresa destinatária", "Empresa que recibe"],
|
|
396
|
-
"Cuentas actuales y futuras de esta empresa operadora.": [
|
|
397
|
-
"Current and future accounts of this operating Company.",
|
|
398
|
-
"Contas atuais e futuras desta empresa operadora.",
|
|
399
|
-
"Cuentas actuales y futuras de esta empresa operadora.",
|
|
400
|
-
],
|
|
401
|
-
"Presupuesto acumulado configurado": [
|
|
402
|
-
"Configured cumulative budget",
|
|
403
|
-
"Orçamento acumulado configurado",
|
|
404
|
-
"Presupuesto acumulado configurado",
|
|
405
|
-
],
|
|
406
|
-
"Sin límite acumulado": ["No cumulative limit", "Sem limite acumulado", "Sin límite acumulado"],
|
|
407
|
-
"Permisos de cargos automáticos": [
|
|
408
|
-
"Automatic charge permissions",
|
|
409
|
-
"Permissões de cobranças automáticas",
|
|
410
|
-
"Permisos de cargos automáticos",
|
|
411
|
-
],
|
|
412
|
-
"La aplicación podrá iniciar cargos con estas condiciones, sin pedirte autorización en cada ocasión.": [
|
|
413
|
-
"The application may initiate charges under these conditions without asking you to authorize each one.",
|
|
414
|
-
"O aplicativo poderá iniciar cobranças nestas condições sem pedir autorização a cada vez.",
|
|
415
|
-
"La aplicación podrá iniciar cargos con estas condiciones, sin pedirte autorización en cada ocasión.",
|
|
416
|
-
],
|
|
417
|
-
Solicitante: ["Requester", "Solicitante", "Solicitante"],
|
|
418
|
-
"Los fondos y la autorización pertenecen a {{company}}. Tu participación queda registrada como solicitante; no se usará tu cuenta personal.": [
|
|
419
|
-
"The funds and authorization belong to {{company}}. You are recorded as the requester; your personal account will not be used.",
|
|
420
|
-
"Os fundos e a autorização pertencem a {{company}}. Sua participação fica registrada como solicitante; sua conta pessoal não será utilizada.",
|
|
421
|
-
"Los fondos y la autorización pertenecen a {{company}}. Tu participación queda registrada como solicitante; no se usará tu cuenta personal.",
|
|
422
|
-
],
|
|
423
|
-
"Inicio conservado: {{date}}": [
|
|
424
|
-
"Original start: {{date}}",
|
|
425
|
-
"Início preservado: {{date}}",
|
|
426
|
-
"Inicio conservado: {{date}}",
|
|
427
|
-
],
|
|
428
|
-
"El período comienza al autorizar por primera vez, no al inicio del mes.": [
|
|
429
|
-
"The period begins at first consent, not at the start of the month.",
|
|
430
|
-
"O período começa no primeiro consentimento, não no início do mês.",
|
|
431
|
-
"El período comienza al autorizar por primera vez, no al inicio del mes.",
|
|
371
|
+
"Número de teléfono": ["Phone number", "Número de telefone", "Número de teléfono"],
|
|
372
|
+
"Mantener el acceso sin conexión": [
|
|
373
|
+
"Maintain access when offline",
|
|
374
|
+
"Manter o acesso offline",
|
|
375
|
+
"Mantener el acceso sin conexión",
|
|
432
376
|
],
|
|
433
377
|
días: ["days", "dias", "días"],
|
|
434
378
|
meses: ["months", "meses", "meses"],
|
package/dist/native-intent.d.ts
CHANGED
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import * as v from "valibot";
|
|
2
|
+
import { ANDCO_NATIVE_TEXT as t } from "./native-copy.js";
|
|
3
|
+
/**
|
|
4
|
+
* An account at another bank, the only destination a person may still correct on a screen.
|
|
5
|
+
*
|
|
6
|
+
* An Andco account named by Alias or identifier already denotes exactly one account, so there is
|
|
7
|
+
* nothing on the screen to correct: it is never editable.
|
|
8
|
+
*/
|
|
9
|
+
declare const editableDestination: v.ObjectSchema<{
|
|
10
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
11
|
+
readonly bank_id: v.StringSchema<undefined>;
|
|
12
|
+
readonly account_type: v.PicklistSchema<["checking", "debit", "savings"], undefined>;
|
|
13
|
+
readonly account_id: v.StringSchema<undefined>;
|
|
14
|
+
readonly holder_id: v.StringSchema<undefined>;
|
|
15
|
+
readonly holder_name: v.StringSchema<undefined>;
|
|
16
|
+
readonly editable: v.BooleanSchema<undefined>;
|
|
17
|
+
}, undefined>;
|
|
2
18
|
/** Authenticated Host presentation; bank commands and account ownership remain on Platform. */
|
|
3
19
|
export declare const AndCoNativeIntentPreparationSchema: v.ObjectSchema<{
|
|
4
20
|
readonly intent: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
@@ -7,17 +23,16 @@ export declare const AndCoNativeIntentPreparationSchema: v.ObjectSchema<{
|
|
|
7
23
|
readonly confirmed: v.NullableSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, undefined>;
|
|
8
24
|
readonly frozen_at: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
9
25
|
readonly currency: v.LiteralSchema<"CLP", undefined>;
|
|
10
|
-
readonly
|
|
26
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
11
27
|
readonly editable: v.BooleanSchema<undefined>;
|
|
12
28
|
}, undefined>, undefined>;
|
|
13
29
|
readonly destination: v.ObjectSchema<{
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly country: v.LiteralSchema<"CL", undefined>;
|
|
30
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
31
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
32
|
+
readonly number: v.StringSchema<undefined>;
|
|
33
|
+
readonly account_type: v.PicklistSchema<["checking", "debit", "savings"], undefined>;
|
|
34
|
+
readonly holder_id: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
35
|
+
readonly holder_name: v.StringSchema<undefined>;
|
|
21
36
|
}, undefined>;
|
|
22
37
|
readonly progress: v.ObjectSchema<{
|
|
23
38
|
readonly credited: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
@@ -44,13 +59,13 @@ export declare const AndCoNativeIntentPreparationSchema: v.ObjectSchema<{
|
|
|
44
59
|
readonly currency: v.LiteralSchema<"CLP", undefined>;
|
|
45
60
|
}, undefined>, undefined>;
|
|
46
61
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
47
|
-
readonly status: v.PicklistSchema<["requires_action", "processing.confirmed", "processing.settling", "processing.reversing", "processing.reconciling", "succeeded", "completed", "closed", "failed", "failed.insufficient_funds", "cancelled", "expired"], undefined>;
|
|
62
|
+
readonly status: v.PicklistSchema<["requires_action", "processing.confirmed", "processing.settling", "processing.reversing", "processing.reconciling", "succeeded", "completed", "closed", "failed", "failed.insufficient_funds", "cancelled", "rejected", "expired"], undefined>;
|
|
48
63
|
readonly fee: v.ObjectSchema<{
|
|
49
64
|
readonly currency: v.LiteralSchema<"CLP", undefined>;
|
|
50
65
|
readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
51
66
|
}, undefined>;
|
|
52
67
|
readonly note: v.OptionalSchema<v.ObjectSchema<{
|
|
53
|
-
readonly
|
|
68
|
+
readonly value: v.StringSchema<undefined>;
|
|
54
69
|
readonly editable: v.BooleanSchema<undefined>;
|
|
55
70
|
}, undefined>, undefined>;
|
|
56
71
|
readonly expires_at: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -61,31 +76,42 @@ export declare const AndCoNativeIntentPreparationSchema: v.ObjectSchema<{
|
|
|
61
76
|
readonly name: v.StringSchema<undefined>;
|
|
62
77
|
}, undefined>;
|
|
63
78
|
}, undefined>, v.ObjectSchema<{
|
|
64
|
-
readonly type: v.LiteralSchema<"
|
|
65
|
-
readonly
|
|
66
|
-
readonly
|
|
67
|
-
readonly
|
|
68
|
-
readonly
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
readonly
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
readonly type: v.LiteralSchema<"transfer", undefined>;
|
|
80
|
+
readonly settled: v.NullableSchema<v.ObjectSchema<{
|
|
81
|
+
readonly currency: v.LiteralSchema<"CLP", undefined>;
|
|
82
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
83
|
+
readonly at: v.StringSchema<undefined>;
|
|
84
|
+
}, undefined>, undefined>;
|
|
85
|
+
readonly signed: v.BooleanSchema<undefined>;
|
|
86
|
+
readonly destination: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
87
|
+
readonly editable: v.LiteralSchema<false, undefined>;
|
|
88
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
89
|
+
readonly alias: v.StringSchema<undefined>;
|
|
90
|
+
}, undefined>, v.ObjectSchema<{
|
|
91
|
+
readonly editable: v.LiteralSchema<false, undefined>;
|
|
92
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
93
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
76
94
|
}, undefined>, v.ObjectSchema<{
|
|
77
|
-
readonly
|
|
78
|
-
readonly account_holder_name: v.StringSchema<undefined>;
|
|
79
|
-
readonly account_kind: v.PicklistSchema<["checking", "debit", "savings"], undefined>;
|
|
80
|
-
readonly account_number: v.StringSchema<undefined>;
|
|
95
|
+
readonly type: v.LiteralSchema<"external", undefined>;
|
|
81
96
|
readonly bank_id: v.StringSchema<undefined>;
|
|
82
|
-
readonly
|
|
97
|
+
readonly account_type: v.PicklistSchema<["checking", "debit", "savings"], undefined>;
|
|
98
|
+
readonly account_id: v.StringSchema<undefined>;
|
|
99
|
+
readonly holder_id: v.StringSchema<undefined>;
|
|
100
|
+
readonly holder_name: v.StringSchema<undefined>;
|
|
101
|
+
readonly editable: v.BooleanSchema<undefined>;
|
|
102
|
+
}, undefined>], undefined>;
|
|
103
|
+
readonly source: v.NullableSchema<v.VariantSchema<"type", [v.ObjectSchema<{
|
|
104
|
+
readonly type: v.LiteralSchema<"alias", undefined>;
|
|
105
|
+
readonly alias: v.StringSchema<undefined>;
|
|
106
|
+
}, undefined>, v.ObjectSchema<{
|
|
107
|
+
readonly type: v.LiteralSchema<"account", undefined>;
|
|
108
|
+
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
83
109
|
}, undefined>], undefined>, undefined>;
|
|
84
110
|
readonly id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
85
|
-
readonly status: v.PicklistSchema<["requires_action", "processing.confirmed", "processing.settling", "processing.reversing", "processing.reconciling", "succeeded", "completed", "closed", "failed", "failed.insufficient_funds", "cancelled", "expired"], undefined>;
|
|
111
|
+
readonly status: v.PicklistSchema<["requires_action", "processing.confirmed", "processing.settling", "processing.reversing", "processing.reconciling", "succeeded", "completed", "closed", "failed", "failed.insufficient_funds", "cancelled", "rejected", "expired"], undefined>;
|
|
86
112
|
readonly amount: v.ObjectSchema<{
|
|
87
113
|
readonly currency: v.LiteralSchema<"CLP", undefined>;
|
|
88
|
-
readonly
|
|
114
|
+
readonly value: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
89
115
|
readonly editable: v.BooleanSchema<undefined>;
|
|
90
116
|
}, undefined>;
|
|
91
117
|
readonly fee: v.ObjectSchema<{
|
|
@@ -93,7 +119,7 @@ export declare const AndCoNativeIntentPreparationSchema: v.ObjectSchema<{
|
|
|
93
119
|
readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
94
120
|
}, undefined>;
|
|
95
121
|
readonly note: v.OptionalSchema<v.ObjectSchema<{
|
|
96
|
-
readonly
|
|
122
|
+
readonly value: v.StringSchema<undefined>;
|
|
97
123
|
readonly editable: v.BooleanSchema<undefined>;
|
|
98
124
|
}, undefined>, undefined>;
|
|
99
125
|
readonly expires_at: v.NullableSchema<v.StringSchema<undefined>, undefined>;
|
|
@@ -150,19 +176,19 @@ export declare const AndCoNativeIntentCommandSchema: v.VariantSchema<"action", [
|
|
|
150
176
|
readonly action: v.LiteralSchema<"fund_deposit", undefined>;
|
|
151
177
|
readonly commandId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
152
178
|
readonly sourceAccountId: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>;
|
|
153
|
-
readonly amount: v.SchemaWithPipe<readonly [v.
|
|
179
|
+
readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
154
180
|
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.MaxLengthAction<string, 140, undefined>]>, undefined>;
|
|
155
181
|
}, undefined>, v.StrictObjectSchema<{
|
|
156
|
-
readonly action: v.LiteralSchema<"
|
|
182
|
+
readonly action: v.LiteralSchema<"confirm_transfer", undefined>;
|
|
157
183
|
readonly sourceAccountId: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.UuidAction<string, undefined>]>, undefined>;
|
|
158
|
-
readonly amount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>, v.CheckAction<string, undefined>]>, undefined>;
|
|
159
|
-
readonly
|
|
160
|
-
|
|
161
|
-
account_holder_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
162
|
-
account_kind: v.PicklistSchema<["checking", "debit", "savings"], undefined>;
|
|
163
|
-
account_number: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
184
|
+
readonly amount: v.OptionalSchema<v.SchemaWithPipe<readonly [v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>, v.CheckAction<string, undefined>]>, undefined>;
|
|
185
|
+
readonly destination: v.OptionalSchema<v.StrictObjectSchema<{
|
|
186
|
+
type: v.LiteralSchema<"external", undefined>;
|
|
164
187
|
bank_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
165
|
-
|
|
188
|
+
account_type: v.PicklistSchema<["checking", "debit", "savings"], undefined>;
|
|
189
|
+
account_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
190
|
+
holder_id: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
191
|
+
holder_name: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.MinLengthAction<string, 1, undefined>, v.MaxLengthAction<string, number, undefined>]>;
|
|
166
192
|
}, undefined>, undefined>;
|
|
167
193
|
readonly note: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.TrimAction, v.CheckAction<string, "note_too_long">]>, undefined>;
|
|
168
194
|
}, undefined>, v.StrictObjectSchema<{
|
|
@@ -171,8 +197,8 @@ export declare const AndCoNativeIntentCommandSchema: v.VariantSchema<"action", [
|
|
|
171
197
|
readonly action: v.LiteralSchema<"close_deposit", undefined>;
|
|
172
198
|
}, undefined>, v.StrictObjectSchema<{
|
|
173
199
|
readonly action: v.LiteralSchema<"confirm_deposit_target", undefined>;
|
|
174
|
-
readonly amount: v.SchemaWithPipe<readonly [v.
|
|
175
|
-
readonly expectedTarget: v.SchemaWithPipe<readonly [v.
|
|
200
|
+
readonly amount: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
201
|
+
readonly expectedTarget: v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.RegexAction<string, undefined>]>;
|
|
176
202
|
}, undefined>, v.StrictObjectSchema<{
|
|
177
203
|
readonly action: v.LiteralSchema<"assign_deposit_credits", undefined>;
|
|
178
204
|
readonly expectedVersion: v.SchemaWithPipe<readonly [v.NumberSchema<undefined>, v.IntegerAction<number, undefined>, v.MinValueAction<number, 0, undefined>, v.MaxValueAction<number, number, undefined>]>;
|
|
@@ -206,17 +232,16 @@ export declare function requestAndCoNativeIntent(options: {
|
|
|
206
232
|
confirmed: string | null;
|
|
207
233
|
frozen_at: string | null;
|
|
208
234
|
currency: "CLP";
|
|
209
|
-
|
|
235
|
+
value: string;
|
|
210
236
|
editable: boolean;
|
|
211
237
|
} | null;
|
|
212
238
|
destination: {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
country: "CL";
|
|
239
|
+
type: "account";
|
|
240
|
+
id: string;
|
|
241
|
+
number: string;
|
|
242
|
+
account_type: "checking" | "debit" | "savings";
|
|
243
|
+
holder_id: string | null;
|
|
244
|
+
holder_name: string;
|
|
220
245
|
};
|
|
221
246
|
progress: {
|
|
222
247
|
credited: string;
|
|
@@ -243,13 +268,13 @@ export declare function requestAndCoNativeIntent(options: {
|
|
|
243
268
|
currency: "CLP";
|
|
244
269
|
}[];
|
|
245
270
|
id: string;
|
|
246
|
-
status: "completed" | "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "succeeded" | "closed" | "failed" | "failed.insufficient_funds" | "cancelled" | "expired";
|
|
271
|
+
status: "completed" | "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "succeeded" | "closed" | "failed" | "failed.insufficient_funds" | "cancelled" | "rejected" | "expired";
|
|
247
272
|
fee: {
|
|
248
273
|
currency: "CLP";
|
|
249
274
|
amount: string;
|
|
250
275
|
};
|
|
251
276
|
note?: {
|
|
252
|
-
|
|
277
|
+
value: string;
|
|
253
278
|
editable: boolean;
|
|
254
279
|
} | undefined;
|
|
255
280
|
expires_at: string | null;
|
|
@@ -260,31 +285,42 @@ export declare function requestAndCoNativeIntent(options: {
|
|
|
260
285
|
name: string;
|
|
261
286
|
};
|
|
262
287
|
} | {
|
|
263
|
-
type: "
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
288
|
+
type: "transfer";
|
|
289
|
+
settled: {
|
|
290
|
+
currency: "CLP";
|
|
291
|
+
value: string;
|
|
292
|
+
at: string;
|
|
293
|
+
} | null;
|
|
294
|
+
signed: boolean;
|
|
295
|
+
destination: {
|
|
296
|
+
editable: false;
|
|
297
|
+
type: "alias";
|
|
298
|
+
alias: string;
|
|
299
|
+
} | {
|
|
300
|
+
editable: false;
|
|
301
|
+
type: "account";
|
|
302
|
+
id: string;
|
|
303
|
+
} | {
|
|
304
|
+
type: "external";
|
|
270
305
|
bank_id: string;
|
|
271
|
-
|
|
306
|
+
account_type: "checking" | "debit" | "savings";
|
|
307
|
+
account_id: string;
|
|
308
|
+
holder_id: string;
|
|
309
|
+
holder_name: string;
|
|
310
|
+
editable: boolean;
|
|
272
311
|
};
|
|
273
|
-
source
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
account_kind: "checking" | "debit" | "savings";
|
|
277
|
-
account_number: string;
|
|
278
|
-
bank_id: string;
|
|
279
|
-
country: "CL";
|
|
312
|
+
source: {
|
|
313
|
+
type: "alias";
|
|
314
|
+
alias: string;
|
|
280
315
|
} | {
|
|
281
|
-
|
|
282
|
-
|
|
316
|
+
type: "account";
|
|
317
|
+
id: string;
|
|
318
|
+
} | null;
|
|
283
319
|
id: string;
|
|
284
|
-
status: "completed" | "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "succeeded" | "closed" | "failed" | "failed.insufficient_funds" | "cancelled" | "expired";
|
|
320
|
+
status: "completed" | "requires_action" | "processing.confirmed" | "processing.settling" | "processing.reversing" | "processing.reconciling" | "succeeded" | "closed" | "failed" | "failed.insufficient_funds" | "cancelled" | "rejected" | "expired";
|
|
285
321
|
amount: {
|
|
286
322
|
currency: "CLP";
|
|
287
|
-
|
|
323
|
+
value: string;
|
|
288
324
|
editable: boolean;
|
|
289
325
|
};
|
|
290
326
|
fee: {
|
|
@@ -292,7 +328,7 @@ export declare function requestAndCoNativeIntent(options: {
|
|
|
292
328
|
amount: string;
|
|
293
329
|
};
|
|
294
330
|
note?: {
|
|
295
|
-
|
|
331
|
+
value: string;
|
|
296
332
|
editable: boolean;
|
|
297
333
|
} | undefined;
|
|
298
334
|
expires_at: string | null;
|
|
@@ -357,10 +393,14 @@ export declare class AndCoNativeIntentSession {
|
|
|
357
393
|
private reading;
|
|
358
394
|
private timer;
|
|
359
395
|
constructor(load: (command?: AndCoNativeIntentCommand) => Promise<AndCoNativeIntentPreparation>);
|
|
396
|
+
/** Observes snapshot changes and returns a function that removes the listener. */
|
|
360
397
|
subscribe(listener: () => void): () => void;
|
|
361
398
|
private publish;
|
|
399
|
+
/** Refreshes the snapshot and starts polling; failures are exposed through `snapshot.error`. */
|
|
362
400
|
refresh(): Promise<void>;
|
|
401
|
+
/** Sends one command, retaining uncertain writes for a retry with the same command identity. */
|
|
363
402
|
submit(command: AndCoNativeIntentCommand): Promise<void>;
|
|
403
|
+
/** Stops polling and notifications without cancelling the financial operation. */
|
|
364
404
|
dispose(): void;
|
|
365
405
|
}
|
|
366
406
|
/** Server-authoritative lifecycle and display values used by both native renderers. */
|
|
@@ -374,18 +414,28 @@ export declare function ANDCO_NATIVE_INTENT_VIEW(data: AndCoNativeIntentPreparat
|
|
|
374
414
|
title: string;
|
|
375
415
|
status: string;
|
|
376
416
|
};
|
|
417
|
+
/** The destination a person may still correct, which is the only one a screen may send back. */
|
|
418
|
+
export type AndCoNativeIntentDestination = v.InferOutput<typeof editableDestination>;
|
|
419
|
+
/**
|
|
420
|
+
* The lines a native sheet shows for where the money lands, so both renderers read one answer: a
|
|
421
|
+
* deposit's account as a payer at another bank types it, a transfer's Andco account by Alias or by
|
|
422
|
+
* identifier, or another bank's account as the form holds it (a person's corrections included).
|
|
423
|
+
* `null` when the Intent names no destination.
|
|
424
|
+
*
|
|
425
|
+
* @example
|
|
426
|
+
* const lines = ANDCO_NATIVE_INTENT_DESTINATION_LINES(data, form); // ["Cuenta proveedores"]
|
|
427
|
+
*/
|
|
428
|
+
export declare function ANDCO_NATIVE_INTENT_DESTINATION_LINES(data: AndCoNativeIntentPreparation, form: Pick<AndCoNativeIntentForm, "destination"> | null, locale?: Parameters<typeof t>[2]): string[] | null;
|
|
377
429
|
/** User-edited values, separate from the durable financial state. */
|
|
378
430
|
export type AndCoNativeIntentForm = {
|
|
379
431
|
source: string;
|
|
380
432
|
amount: string;
|
|
381
433
|
note: string;
|
|
382
|
-
|
|
383
|
-
type: "withdrawal";
|
|
384
|
-
}>["beneficiary"] | null;
|
|
434
|
+
destination: AndCoNativeIntentDestination | null;
|
|
385
435
|
};
|
|
386
436
|
/** Restores accepted command values; otherwise defaults only an unambiguous source. */
|
|
387
437
|
export declare function ANDCO_NATIVE_INTENT_FORM(data: AndCoNativeIntentPreparation, retry?: AndCoNativeIntentCommand): AndCoNativeIntentForm;
|
|
388
|
-
/** Builds an explicit command without resending editable values
|
|
438
|
+
/** Builds an explicit command without resending frozen or non-editable values of a money movement. */
|
|
389
439
|
export declare function ANDCO_NATIVE_INTENT_COMMAND(data: AndCoNativeIntentPreparation, form: AndCoNativeIntentForm): AndCoNativeIntentCommand;
|
|
390
440
|
/** Validates the proposed command while preserving an already accepted deposit's frozen amount. */
|
|
391
441
|
export declare function ANDCO_NATIVE_INTENT_FORM_VALID(data: AndCoNativeIntentPreparation, form: AndCoNativeIntentForm): boolean;
|
|
@@ -399,4 +449,5 @@ export declare function ANDCO_NATIVE_DEPOSIT_CHECKLIST(intentId: string, checkli
|
|
|
399
449
|
conflict: boolean;
|
|
400
450
|
moving: boolean;
|
|
401
451
|
};
|
|
452
|
+
export {};
|
|
402
453
|
//# sourceMappingURL=native-intent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"native-intent.d.ts","sourceRoot":"","sources":["../src/native-intent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"native-intent.d.ts","sourceRoot":"","sources":["../src/native-intent.ts"],"names":[],"mappings":"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"}
|