valtech-components 4.0.987 → 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.
- package/esm2022/lib/components/organisms/survey-response/survey-response.component.mjs +21 -1
- package/esm2022/lib/components/organisms/survey-response/survey-response.i18n.mjs +5 -1
- package/esm2022/lib/components/organisms/survey-response/types.mjs +1 -1
- package/esm2022/lib/services/requests/types.mjs +1 -1
- package/esm2022/lib/version.mjs +2 -2
- package/fesm2022/valtech-components.mjs +24 -1
- package/fesm2022/valtech-components.mjs.map +1 -1
- package/lib/components/organisms/survey-response/survey-response.component.d.ts +2 -0
- package/lib/components/organisms/survey-response/types.d.ts +6 -0
- package/lib/services/requests/types.d.ts +6 -0
- package/lib/version.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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