max-agent-ui 0.0.34 → 0.0.36

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/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;
@@ -329,7 +326,7 @@ interface AssistantFeedbackRequest {
329
326
  }
330
327
  interface AssistantFeedbackResponse {
331
328
  success: boolean;
332
- feedbackReference: string;
329
+ feedbackReference?: string;
333
330
  message: string;
334
331
  submittedAt: string;
335
332
  }
@@ -462,10 +459,17 @@ declare class MaxAssistantService {
462
459
  }
463
460
 
464
461
  declare class MaxAssistantFeedbackService {
465
- readonly endpoint = "/agent-api/v1/feedback";
462
+ private readonly config;
463
+ private readonly http;
464
+ readonly endpoint: string;
466
465
  readonly method: "POST";
467
- submitFeedback(_feedback: AssistantFeedbackRequest): Observable<AssistantFeedbackResponse>;
468
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MaxAssistantFeedbackService, never>;
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "max-agent-ui",
3
- "version": "0.0.34",
3
+ "version": "0.0.36",
4
4
  "publishConfig": {
5
5
  "registry": "https://registry.npmjs.org/"
6
6
  },