Subversion Repositories SmartDukaan

Rev

Rev 3530 | Rev 3578 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3530 Rev 3546
Line 59... Line 59...
59
   13:optional string productName,
59
   13:optional string productName,
60
 
60
 
61
   // used for un-registered users
61
   // used for un-registered users
62
   14:optional string customerMobileNumber,
62
   14:optional string customerMobileNumber,
63
   15:optional string customerEmailId,
63
   15:optional string customerEmailId,
64
   16:optional string customerName,
64
   16:optional string customerName
65
 
-
 
66
   // knitted/enriched object
-
 
67
   17:optional Agent assignee,
-
 
68
   18:optional Agent creator
-
 
69
}
65
}
70
 
66
 
71
struct Activity {
67
struct Activity {
72
    1:i64 id,
68
    1:i64 id,
73
    2:optional string description,
69
    2:optional string description,
Line 89... Line 85...
89
   13:optional string ticketDescription,
85
   13:optional string ticketDescription,
90
 
86
 
91
   // Activities created as part of mails received from customers
87
   // Activities created as part of mails received from customers
92
   // have to be explicitly marked as read by agents in CRM.
88
   // have to be explicitly marked as read by agents in CRM.
93
   // This flag is set over such activities when any agent marks it as read!
89
   // This flag is set over such activities when any agent marks it as read!
94
   14:optional bool isRead
90
   14:optional bool isRead,
95
 
91
 
96
   // used for un-registered users
92
   // used for un-registered users
97
   15:optional string customerMobileNumber,
93
   15:optional string customerMobileNumber,
98
   16:optional string customerEmailId,
94
   16:optional string customerEmailId,
99
   17:optional string customerName,
95
   17:optional string customerName,
100
   
-
 
101
   // knitted types for enriched objects
-
 
102
   18:optional Agent creator,
-
 
103
   19:optional Agent ticketAssignee
-
 
104
}
96
}
105
 
97
 
106
struct SearchFilter {
98
struct SearchFilter {
107
    1:optional i64 ticketId,
99
    1:optional i64 ticketId,
108
    2:optional i64 activityId,
100
    2:optional i64 activityId,
Line 114... Line 106...
114
    8:optional i64 endTimestamp,
106
    8:optional i64 endTimestamp,
115
    9:optional bool isActivityRead,
107
    9:optional bool isActivityRead,
116
   10:optional string agentEmailId,
108
   10:optional string agentEmailId,
117
   11:optional string customerEmailId,
109
   11:optional string customerEmailId,
118
   12:optional string customerMobileNumber,
110
   12:optional string customerMobileNumber,
119
   13:optional TicketStatus ticketStatus,
111
   13:optional list<TicketStatus> ticketStatuses,
120
   14:optional TicketCategory ticketCategory,
112
   14:optional TicketCategory ticketCategory,
121
   15:optional TicketPriority ticketPriority
113
   15:optional TicketPriority ticketPriority,
-
 
114
   16:optional ActivityType activityType
122
}
115
}
123
 
116
 
124
service CRMService extends GenericService.GenericService{
117
service CRMService extends GenericService.GenericService{
125
    // Methods to read/write tickets from/in database
118
    // Methods to read/write tickets from/in database
126
    list<Ticket> getTickets(1:SearchFilter searchFilter);
119
    list<Ticket> getTickets(1:SearchFilter searchFilter);