@fiado/type-kit 3.660.0 → 3.661.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.
@@ -3,11 +3,25 @@
3
3
  * `POST /private/promoters/from-lead` de `usmarketgrowth-business`, idempotente por teléfono o correo:
4
4
  * dos llamadas con el mismo contacto devuelven el mismo `promoterId`.
5
5
  */
6
+ import { JsonValue } from '../../common';
6
7
  export interface CreatePromoterFromLeadRequest {
7
8
  /** Nombre completo; obligatorio (DEC-024: nombre y un medio de contacto). */
8
9
  name?: string;
9
10
  phoneNumber?: string;
10
11
  email?: string;
12
+ /**
13
+ * De dónde viene el lead, como lo nombra meetings-business: MICROSOFT_FORMS, ZOOM, MANUAL… (texto libre, máx. 60).
14
+ * usmarketgrowth-business lo guarda como origen del promotor.
15
+ */
16
+ source: string;
17
+ /**
18
+ * Respuestas del cuestionario TAL CUAL llegaron, sin formatear (p. ej. el body del Form que manda Power Automate:
19
+ * `{ "firstName": "María ", "phoneNumber": "(214) 555-0101", "doesPayroll": "Sí", "clientsCount": "10-20", ... }`).
20
+ * Se guardan completas en el promotor. Si traen las llaves del Form «Información del Promotor», usmarketgrowth-business
21
+ * las normaliza para llenar su aplicación (lo que no entienda queda en `reviewReasons`). Sólo se usan al crear (CREATED).
22
+ * Máx. 100 KB en JSON.
23
+ */
24
+ answers?: Record<string, JsonValue>;
11
25
  }
12
26
  export interface PostPromoterFromLeadResponse {
13
27
  /** CREATED si nació aquí; EXISTING si ya había promotor con ese contacto (no se toca nada). */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fiado/type-kit",
3
- "version": "3.660.0",
3
+ "version": "3.661.0",
4
4
  "description": "",
5
5
  "main": "bin/index.js",
6
6
  "types": "bin/index.d.ts",
@@ -4,11 +4,26 @@
4
4
  * dos llamadas con el mismo contacto devuelven el mismo `promoterId`.
5
5
  */
6
6
 
7
+ import { JsonValue } from '../../common';
8
+
7
9
  export interface CreatePromoterFromLeadRequest {
8
10
  /** Nombre completo; obligatorio (DEC-024: nombre y un medio de contacto). */
9
11
  name?: string;
10
12
  phoneNumber?: string;
11
13
  email?: string;
14
+ /**
15
+ * De dónde viene el lead, como lo nombra meetings-business: MICROSOFT_FORMS, ZOOM, MANUAL… (texto libre, máx. 60).
16
+ * usmarketgrowth-business lo guarda como origen del promotor.
17
+ */
18
+ source: string;
19
+ /**
20
+ * Respuestas del cuestionario TAL CUAL llegaron, sin formatear (p. ej. el body del Form que manda Power Automate:
21
+ * `{ "firstName": "María ", "phoneNumber": "(214) 555-0101", "doesPayroll": "Sí", "clientsCount": "10-20", ... }`).
22
+ * Se guardan completas en el promotor. Si traen las llaves del Form «Información del Promotor», usmarketgrowth-business
23
+ * las normaliza para llenar su aplicación (lo que no entienda queda en `reviewReasons`). Sólo se usan al crear (CREATED).
24
+ * Máx. 100 KB en JSON.
25
+ */
26
+ answers?: Record<string, JsonValue>;
12
27
  }
13
28
 
14
29
  export interface PostPromoterFromLeadResponse {