@aprilium/tripsm_message-support 0.0.1 → 0.0.3

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.
@@ -1,10 +1,10 @@
1
- export type SupportConversationDataType = {
1
+ export type MessageSupportDataType = {
2
2
  Id: number;
3
- MessageSupportContent: number;
4
- SupportConversationId: number;
3
+ MessageSupportContent?: number;
4
+ SupportConversationId?: number;
5
5
  StaffId: number;
6
6
  GuestId: number;
7
- Media: number;
7
+ Media?: number;
8
8
  IsActive: number;
9
9
  CreationDate: number;
10
10
  CreatedBy: number;
@@ -12,14 +12,24 @@ export type SupportConversationDataType = {
12
12
  UpdateDate: Date;
13
13
  UpdateBy: string;
14
14
  AgencyId: number;
15
+ MessageId: number;
16
+ SenderId?: number;
17
+ IsGuest?: Number;
18
+ ConversationAgencyId?: number;
19
+ ConversationPicture?: string;
20
+ ConversationIsActive?: string;
21
+ GuestName?: string;
22
+ GuestPicture?: string;
23
+ StaffName?: string;
24
+ StaffPicture?: string;
15
25
  };
16
- declare class SupportConversation {
26
+ declare class MessageSupport {
17
27
  Id: number;
18
- MessageSupportContent: number;
19
- SupportConversationId: number;
28
+ MessageSupportContent?: number;
29
+ SupportConversationId?: number;
20
30
  StaffId: number;
21
31
  GuestId: number;
22
- Media: number;
32
+ Media?: number;
23
33
  IsActive: number;
24
34
  CreationDate: number;
25
35
  CreatedBy: number;
@@ -27,6 +37,16 @@ declare class SupportConversation {
27
37
  UpdateDate: Date;
28
38
  UpdateBy: string;
29
39
  AgencyId: number;
30
- constructor(props: SupportConversationDataType);
40
+ MessageId: number;
41
+ SenderId?: number;
42
+ IsGuest?: Number;
43
+ ConversationAgencyId?: number;
44
+ ConversationPicture?: string;
45
+ ConversationIsActive?: string;
46
+ GuestName?: string;
47
+ GuestPicture?: string;
48
+ StaffName?: string;
49
+ StaffPicture?: string;
50
+ constructor(props: MessageSupportDataType);
31
51
  }
32
- export default SupportConversation;
52
+ export default MessageSupport;
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- var SupportConversation = /** @class */ (function () {
4
- function SupportConversation(props) {
3
+ var MessageSupport = /** @class */ (function () {
4
+ function MessageSupport(props) {
5
5
  this.Id = props.Id;
6
6
  this.MessageSupportContent = props.MessageSupportContent;
7
7
  this.SupportConversationId = props.SupportConversationId;
@@ -16,7 +16,17 @@ var SupportConversation = /** @class */ (function () {
16
16
  this.IsActive = props.IsActive;
17
17
  this.IsDeleted = props.IsDeleted;
18
18
  this.UpdateBy = props.UpdateBy;
19
+ this.MessageId = props.MessageId;
20
+ this.SenderId = props.SenderId;
21
+ this.IsGuest = props.IsGuest;
22
+ this.ConversationAgencyId = props.ConversationAgencyId;
23
+ this.ConversationPicture = props.ConversationPicture;
24
+ this.ConversationIsActive = props.ConversationIsActive;
25
+ this.GuestName = props.GuestName;
26
+ this.GuestPicture = props.GuestPicture;
27
+ this.StaffName = props.StaffName;
28
+ this.StaffPicture = props.StaffPicture;
19
29
  }
20
- return SupportConversation;
30
+ return MessageSupport;
21
31
  }());
22
- exports.default = SupportConversation;
32
+ exports.default = MessageSupport;
@@ -2,6 +2,8 @@ interface MessageSupportParameters {
2
2
  AgencyId: number;
3
3
  GuestId?: number;
4
4
  ConversationId?: number;
5
- MessageId: number;
5
+ MessageId?: number;
6
+ LanguageId: number;
7
+ StaffId?: number;
6
8
  }
7
9
  export default MessageSupportParameters;
@@ -92,7 +92,7 @@ function addNewMessageSupport(newMessageSupport) {
92
92
  formData = new FormData();
93
93
  formData.append("AgencyId", newMessageSupport.AgencyId.toString());
94
94
  formData.append("GuestId", newMessageSupport.GuestId.toString());
95
- formData.append("SenderId", newMessageSupport.GuestId.toString());
95
+ formData.append("SenderId", newMessageSupport.SenderId.toString());
96
96
  newMessageSupport.MessageContent && formData.append("MessageSupportContent", newMessageSupport.MessageContent);
97
97
  newMessageSupport.Media && formData.append("Media", newMessageSupport.Media);
98
98
  _c.label = 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aprilium/tripsm_message-support",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "description": "message states",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",