max-agent-ui 0.0.34 → 0.0.35
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/fesm2022/max-agent-ui.mjs +80 -35
- package/fesm2022/max-agent-ui.mjs.map +1 -1
- package/index.d.ts +10 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -317,9 +317,6 @@ interface AssistantSupportTicketResponse {
|
|
|
317
317
|
}
|
|
318
318
|
type AssistantFeedbackCategory = 'incorrect' | 'incomplete' | 'unclear' | 'unexpected' | 'suggestion' | 'other';
|
|
319
319
|
interface AssistantFeedbackRequest {
|
|
320
|
-
name: string;
|
|
321
|
-
email: string;
|
|
322
|
-
phone?: string;
|
|
323
320
|
category: AssistantFeedbackCategory;
|
|
324
321
|
query: string;
|
|
325
322
|
assistantResponse?: string;
|
|
@@ -462,10 +459,17 @@ declare class MaxAssistantService {
|
|
|
462
459
|
}
|
|
463
460
|
|
|
464
461
|
declare class MaxAssistantFeedbackService {
|
|
465
|
-
readonly
|
|
462
|
+
private readonly config;
|
|
463
|
+
private readonly http;
|
|
464
|
+
readonly endpoint: string;
|
|
466
465
|
readonly method: "POST";
|
|
467
|
-
|
|
468
|
-
|
|
466
|
+
constructor(config: MaxAssistantConfig, http: HttpClient | null);
|
|
467
|
+
submitFeedback(feedback: AssistantFeedbackRequest, config?: MaxAssistantConfig): Observable<AssistantFeedbackResponse>;
|
|
468
|
+
private getFeedbackUrl;
|
|
469
|
+
private getHeaders;
|
|
470
|
+
private getUser;
|
|
471
|
+
private mergeConfig;
|
|
472
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAssistantFeedbackService, [null, { optional: true; }]>;
|
|
469
473
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<MaxAssistantFeedbackService>;
|
|
470
474
|
}
|
|
471
475
|
|
|
@@ -524,9 +528,6 @@ interface SupportTicketFormValue {
|
|
|
524
528
|
tags: AssistantSupportTag[];
|
|
525
529
|
}
|
|
526
530
|
interface FeedbackFormValue {
|
|
527
|
-
name: string;
|
|
528
|
-
email: string;
|
|
529
|
-
phone: string;
|
|
530
531
|
category: AssistantFeedbackCategory;
|
|
531
532
|
query: string;
|
|
532
533
|
assistantResponse: string;
|