From 078cdb2b41d1dec47e2d981c2d2e618d12beddb4 Mon Sep 17 00:00:00 2001
From: Mila <Mila@pollex.com.tw>
Date: 星期四, 26 十二月 2024 09:43:23 +0800
Subject: [PATCH] feat(顧問登入): 串接 otp 發送/驗證 api

---
 PAMapp/shared/models/appointment.model.ts |   83 +++++++++++++++++++++++++----------------
 1 files changed, 51 insertions(+), 32 deletions(-)

diff --git a/PAMapp/shared/models/appointment.model.ts b/PAMapp/shared/models/appointment.model.ts
index 300c61c..3d6f5ad 100644
--- a/PAMapp/shared/models/appointment.model.ts
+++ b/PAMapp/shared/models/appointment.model.ts
@@ -1,42 +1,58 @@
 import { ContactStatus } from "./enum/contact-status";
+import { SatisfactionType } from "./enum/satisfaction-type";
 
 export interface AppointmentLog {
-    id              : number;
-    createdDate     : string;
-    lastModifiedDate: string;
-    customerId      : number;
-    agentNo         : string;
-    status          : 'UNFILLED' | 'FILLED';
-    score           : number;
-    agentName       : string;
-    customerName    : string;
+  id              : number;
+  createdDate     : string;
+  lastModifiedDate: string;
+  customerId      : number;
+  agentNo         : string;
+  status          : 'UNFILLED' | 'FILLED';
+  score           : number;
+  appointmentId   : number;
+  customerName    : string;
+  agentName       : string;
+  type            : SatisfactionType;
 }
 
 export interface Appointment {
-  age                : string;
-  agentNo            : string;
-  appointmentDate    : string;
-  appointmentMemoList: AppointmentMemoInfo[]
-  communicateStatus  : ContactStatus;
-  consultantReadTime : string;
-  consultantViewTime : string;
-  contactTime        : string;
-  contactType        : string;
-  customerId         : number;
-  email              : string;
-  gender             : string;
-  hopeContactTime    : string;
-  id                 : number;
-  interviewRecordDTOs: InterviewRecord[];
-  job                : string;
-  lastModifiedDate   : string;
-  name               : string;
-  otherRequirement   : string;
-  phone              : string;
-  requirement        : string;
-  satisfactionScore  : number;
+  age                  : string;
+  agentNo              : string;
+  appointmentClosedInfo: AppointmentClosedInfo;
+  appointmentDate      : string;
+  appointmentMemoList  : AppointmentMemoInfo[]
   appointmentNoticeLogs: NoticeLogs[];
+  communicateStatus    : ContactStatus;
+  consultantReadTime   : string;
+  consultantViewTime   : string;
+  contactTime          : string;
+  contactType          : string;
+  customerId           : number;
+  email                : string;
+  gender               : string;
+  hopeContactTime      : string;
+  id                   : number;
+  interviewRecordDTOs  : InterviewRecord[];
+  job                  : string;
+  lastModifiedDate     : string;
+  name                 : string;
+  otherRequirement     : string;
+  phone                : string;
+  requirement          : string;
+  satisfactionScore    : number;
+  consultationMethod   : string;
 };
+
+export interface AppointmentClosedInfo {
+  appointmentId         : number;
+  closedOtherReason     : string;
+  closedReason          : string;
+  id                    : number;
+  planCode              : string;
+  policyEntryDate       : string;
+  policyholderIdentityId: string;
+  remark                : string;
+}
 
 export interface AppointmentMemoInfo {
   appointmentId: number;
@@ -82,6 +98,7 @@
   job            : string;
   phone          : string;
   requirement    : string;
+  consultationMethod: string;
 }
 
 export interface EditAppointmentParams {
@@ -95,6 +112,7 @@
   otherRequirement: null;
   phone           : string;
   requirement     : string;
+  consultationMethod: string;
 }
 
 export interface AppointmentRequests {
@@ -102,13 +120,14 @@
   agentNo        : string;
   contactType    : string;
   email          : string;
+  name           : string;
   gender         : string;
   hopeContactTime: ContactTime[];
   job            : string;
   phone          : string;
   requirement    : string[];
+  consultationMethod : string;
 }
-
 export interface ContactTime {
   selectTimesOptions: string[];
   selectWeekOptions : string[];

--
Gitblit v1.8.0