valtech-components 4.0.986 → 4.0.988

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.
@@ -14,6 +14,12 @@ import { EntityRef, RequestTypeConfig, RequestVisibility } from '../../../servic
14
14
  * `FILE`/`ATTACHMENT` quedan deliberadamente fuera: una encuesta es pública y
15
15
  * anónima por default, y aceptar subidas ahí es superficie de abuso sin un caso
16
16
  * de uso que lo pida.
17
+ *
18
+ * `CHECK` también quedó fuera, por otro motivo: para quien responde era la misma
19
+ * pregunta que `TOGGLE`. Dos formas de escribir "sí o no" no le daban una opción
20
+ * a quien arma la encuesta, le daban una duda. El renderer y la agregación
21
+ * siguen entendiendo `CHECK` — una encuesta vieja que lo tenga se responde y se
22
+ * cuenta igual.
17
23
  */
18
24
  export declare const SURVEY_QUESTION_TYPES: string[];
19
25
  /**
@@ -41,6 +41,7 @@ export declare class SurveyResponseComponent implements OnInit {
41
41
  readonly sending: import("@angular/core").WritableSignal<boolean>;
42
42
  readonly typeConfig: import("@angular/core").WritableSignal<RequestTypeConfig>;
43
43
  readonly multiSelectError: import("@angular/core").WritableSignal<boolean>;
44
+ readonly alreadyAnswered: import("@angular/core").WritableSignal<boolean>;
44
45
  readonly nameControl: FormControl<string>;
45
46
  readonly emailControl: FormControl<string>;
46
47
  private form;
@@ -106,6 +107,7 @@ export declare class SurveyResponseComponent implements OnInit {
106
107
  needsIdentity(): boolean;
107
108
  readonly submitState: import("@angular/core").Signal<"ENABLED" | "WORKING">;
108
109
  submit(): Promise<void>;
110
+ readonly alreadyAnsweredState: import("@angular/core").Signal<EmptyStateMetadata>;
109
111
  readonly sentState: import("@angular/core").Signal<EmptyStateMetadata>;
110
112
  readonly loadErrorState: import("@angular/core").Signal<EmptyStateMetadata>;
111
113
  readonly loginRequiredState: import("@angular/core").Signal<EmptyStateMetadata>;
@@ -1,6 +1,12 @@
1
1
  export interface SurveyResponseMetadata {
2
2
  /** El `TypeID` del RequestTypeConfig (convención: `"survey:<slug>"`). */
3
3
  typeId: string;
4
+ /**
5
+ * Token de invitación (`?i=` del link del correo). Lo pasa el consumer desde
6
+ * la query de la ruta; el componente solo lo reenvía al backend, que decide
7
+ * si esa invitación sigue disponible.
8
+ */
9
+ inviteToken?: string;
4
10
  }
5
11
  export interface SurveyResponseSubmitEvent {
6
12
  requestId: string;
@@ -95,6 +95,12 @@ export interface CreateRequestPayload {
95
95
  priority?: string;
96
96
  /** Para solicitudes anónimas */
97
97
  submitter?: RequestActor;
98
+ /**
99
+ * El `?i=` del link que le llegó por correo a quien responde. Con token, la
100
+ * invitación se consume y no admite una segunda respuesta; sin token (el QR
101
+ * abierto de un evento) se responde sin límite.
102
+ */
103
+ inviteToken?: string;
98
104
  dueAt?: string;
99
105
  }
100
106
  export interface UpdateRequestPayload {
package/lib/version.d.ts CHANGED
@@ -2,4 +2,4 @@
2
2
  * Current version of valtech-components.
3
3
  * This is automatically updated during the publish process.
4
4
  */
5
- export declare const VERSION = "4.0.986";
5
+ export declare const VERSION = "4.0.988";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "valtech-components",
3
- "version": "4.0.986",
3
+ "version": "4.0.988",
4
4
  "private": false,
5
5
  "bin": {
6
6
  "valtech-firebase-config": "./src/lib/services/firebase/scripts/generate-sw-config.js"