@volo/abp.ng.chat 7.2.2 → 7.3.0-rc.1

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.
Files changed (131) hide show
  1. package/config/chat-config.module.d.ts +10 -10
  2. package/config/components/chat-icon.component.d.ts +17 -17
  3. package/config/enums/index.d.ts +2 -2
  4. package/config/enums/policy-names.d.ts +3 -3
  5. package/config/enums/route-names.d.ts +3 -3
  6. package/config/index.d.ts +5 -5
  7. package/config/providers/index.d.ts +2 -2
  8. package/config/providers/nav-item.provider.d.ts +9 -9
  9. package/config/providers/route.provider.d.ts +8 -8
  10. package/config/public-api.d.ts +5 -5
  11. package/config/services/chat-config.service.d.ts +38 -38
  12. package/esm2022/config/chat-config.module.mjs +36 -0
  13. package/esm2022/config/components/chat-icon.component.mjs +64 -0
  14. package/{esm2020 → esm2022}/config/enums/index.mjs +2 -2
  15. package/{esm2020 → esm2022}/config/enums/policy-names.mjs +1 -1
  16. package/{esm2020 → esm2022}/config/enums/route-names.mjs +1 -1
  17. package/{esm2020 → esm2022}/config/providers/index.mjs +2 -2
  18. package/{esm2020 → esm2022}/config/providers/nav-item.provider.mjs +27 -27
  19. package/{esm2020 → esm2022}/config/providers/route.provider.mjs +19 -19
  20. package/{esm2020 → esm2022}/config/public-api.mjs +5 -5
  21. package/esm2022/config/services/chat-config.service.mjs +98 -0
  22. package/{esm2020 → esm2022}/config/volo-abp.ng.chat-config.mjs +4 -4
  23. package/esm2022/lib/chat-routing.module.mjs +40 -0
  24. package/esm2022/lib/chat.module.mjs +45 -0
  25. package/esm2022/lib/components/chat-contacts.component.mjs +111 -0
  26. package/esm2022/lib/components/chat-message-title.component.mjs +44 -0
  27. package/esm2022/lib/components/chat.component.mjs +204 -0
  28. package/esm2022/lib/components/conversation-avatar.component.mjs +63 -0
  29. package/{esm2020 → esm2022}/lib/components/index.mjs +4 -4
  30. package/{esm2020 → esm2022}/lib/enums/chat-message-side.mjs +5 -5
  31. package/{esm2020 → esm2022}/lib/enums/index.mjs +1 -1
  32. package/{esm2020 → esm2022}/lib/models/chat-contact-dto.mjs +11 -11
  33. package/{esm2020 → esm2022}/lib/models/chat-conversation-dto.mjs +11 -11
  34. package/{esm2020 → esm2022}/lib/models/chat-message-dto.mjs +11 -11
  35. package/{esm2020 → esm2022}/lib/models/chat-target-user-info.mjs +11 -11
  36. package/{esm2020 → esm2022}/lib/models/get-contacts-input.mjs +11 -11
  37. package/{esm2020 → esm2022}/lib/models/get-conversation-input.mjs +6 -6
  38. package/{esm2020 → esm2022}/lib/models/index.mjs +9 -9
  39. package/{esm2020 → esm2022}/lib/models/mark-conversation-as-read-input.mjs +11 -11
  40. package/{esm2020 → esm2022}/lib/models/send-message-input.mjs +11 -11
  41. package/{esm2020 → esm2022}/lib/models/send-on-enter-setting-dto.mjs +11 -11
  42. package/esm2022/lib/services/contact.service.mjs +21 -0
  43. package/esm2022/lib/services/conversation.service.mjs +27 -0
  44. package/{esm2020 → esm2022}/lib/services/index.mjs +3 -3
  45. package/esm2022/lib/services/settings.service.mjs +21 -0
  46. package/{esm2020 → esm2022}/proxy/lib/index.mjs +4 -4
  47. package/esm2022/proxy/lib/proxy/volo/chat/conversations/conversation.service.mjs +35 -0
  48. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/conversations/index.mjs +2 -2
  49. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/conversations/models.mjs +1 -1
  50. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/messages/chat-message-side.enum.mjs +7 -7
  51. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/messages/index.mjs +2 -2
  52. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/messages/models.mjs +1 -1
  53. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/settings/index.mjs +2 -2
  54. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/settings/models.mjs +1 -1
  55. package/esm2022/proxy/lib/proxy/volo/chat/settings/settings.service.mjs +25 -0
  56. package/esm2022/proxy/lib/proxy/volo/chat/users/contact.service.mjs +29 -0
  57. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/users/index.mjs +2 -2
  58. package/{esm2020 → esm2022}/proxy/lib/proxy/volo/chat/users/models.mjs +1 -1
  59. package/{esm2020 → esm2022}/proxy/public-api.mjs +1 -1
  60. package/{esm2020 → esm2022}/proxy/volo-abp.ng.chat-proxy.mjs +4 -4
  61. package/{esm2020 → esm2022}/public-api.mjs +5 -5
  62. package/{esm2020 → esm2022}/volo-abp.ng.chat.mjs +4 -4
  63. package/{fesm2020 → fesm2022}/volo-abp.ng.chat-config.mjs +186 -186
  64. package/{fesm2020 → fesm2022}/volo-abp.ng.chat-config.mjs.map +1 -1
  65. package/{fesm2020 → fesm2022}/volo-abp.ng.chat-proxy.mjs +75 -75
  66. package/{fesm2020 → fesm2022}/volo-abp.ng.chat-proxy.mjs.map +1 -1
  67. package/{fesm2020 → fesm2022}/volo-abp.ng.chat.mjs +531 -531
  68. package/{fesm2020 → fesm2022}/volo-abp.ng.chat.mjs.map +1 -1
  69. package/index.d.ts +5 -5
  70. package/lib/chat-routing.module.d.ts +7 -7
  71. package/lib/chat.module.d.ts +16 -16
  72. package/lib/components/chat-contacts.component.d.ts +31 -31
  73. package/lib/components/chat-message-title.component.d.ts +8 -8
  74. package/lib/components/chat.component.d.ts +47 -47
  75. package/lib/components/conversation-avatar.component.d.ts +14 -14
  76. package/lib/components/index.d.ts +4 -4
  77. package/lib/enums/chat-message-side.d.ts +4 -4
  78. package/lib/enums/index.d.ts +1 -1
  79. package/lib/models/chat-contact-dto.d.ts +11 -11
  80. package/lib/models/chat-conversation-dto.d.ts +7 -7
  81. package/lib/models/chat-message-dto.d.ts +9 -9
  82. package/lib/models/chat-target-user-info.d.ts +7 -7
  83. package/lib/models/get-contacts-input.d.ts +5 -5
  84. package/lib/models/get-conversation-input.d.ts +7 -7
  85. package/lib/models/index.d.ts +9 -9
  86. package/lib/models/mark-conversation-as-read-input.d.ts +4 -4
  87. package/lib/models/send-message-input.d.ts +5 -5
  88. package/lib/models/send-on-enter-setting-dto.d.ts +4 -4
  89. package/lib/services/contact.service.d.ts +13 -13
  90. package/lib/services/conversation.service.d.ts +17 -17
  91. package/lib/services/index.d.ts +3 -3
  92. package/lib/services/settings.service.d.ts +12 -12
  93. package/package.json +11 -21
  94. package/proxy/index.d.ts +5 -5
  95. package/proxy/lib/index.d.ts +4 -4
  96. package/proxy/lib/proxy/volo/chat/conversations/conversation.service.d.ts +14 -14
  97. package/proxy/lib/proxy/volo/chat/conversations/index.d.ts +2 -2
  98. package/proxy/lib/proxy/volo/chat/conversations/models.d.ts +13 -13
  99. package/proxy/lib/proxy/volo/chat/messages/chat-message-side.enum.d.ts +5 -5
  100. package/proxy/lib/proxy/volo/chat/messages/index.d.ts +2 -2
  101. package/proxy/lib/proxy/volo/chat/messages/models.d.ts +12 -12
  102. package/proxy/lib/proxy/volo/chat/settings/index.d.ts +2 -2
  103. package/proxy/lib/proxy/volo/chat/settings/models.d.ts +3 -3
  104. package/proxy/lib/proxy/volo/chat/settings/settings.service.d.ts +11 -11
  105. package/proxy/lib/proxy/volo/chat/users/contact.service.d.ts +12 -12
  106. package/proxy/lib/proxy/volo/chat/users/index.d.ts +2 -2
  107. package/proxy/lib/proxy/volo/chat/users/models.d.ts +21 -21
  108. package/proxy/public-api.d.ts +1 -1
  109. package/public-api.d.ts +5 -5
  110. package/esm2020/config/chat-config.module.mjs +0 -35
  111. package/esm2020/config/components/chat-icon.component.mjs +0 -63
  112. package/esm2020/config/services/chat-config.service.mjs +0 -97
  113. package/esm2020/lib/chat-routing.module.mjs +0 -39
  114. package/esm2020/lib/chat.module.mjs +0 -44
  115. package/esm2020/lib/components/chat-contacts.component.mjs +0 -110
  116. package/esm2020/lib/components/chat-message-title.component.mjs +0 -43
  117. package/esm2020/lib/components/chat.component.mjs +0 -203
  118. package/esm2020/lib/components/conversation-avatar.component.mjs +0 -62
  119. package/esm2020/lib/services/contact.service.mjs +0 -20
  120. package/esm2020/lib/services/conversation.service.mjs +0 -26
  121. package/esm2020/lib/services/settings.service.mjs +0 -20
  122. package/esm2020/proxy/lib/proxy/volo/chat/conversations/conversation.service.mjs +0 -34
  123. package/esm2020/proxy/lib/proxy/volo/chat/settings/settings.service.mjs +0 -24
  124. package/esm2020/proxy/lib/proxy/volo/chat/users/contact.service.mjs +0 -28
  125. package/fesm2015/volo-abp.ng.chat-config.mjs +0 -228
  126. package/fesm2015/volo-abp.ng.chat-config.mjs.map +0 -1
  127. package/fesm2015/volo-abp.ng.chat-proxy.mjs +0 -92
  128. package/fesm2015/volo-abp.ng.chat-proxy.mjs.map +0 -1
  129. package/fesm2015/volo-abp.ng.chat.mjs +0 -617
  130. package/fesm2015/volo-abp.ng.chat.mjs.map +0 -1
  131. package/proxy/src/lib/proxy/README.md +0 -17
@@ -3,89 +3,89 @@ import { mapEnumToOptions } from '@abp/ng.core';
3
3
  import * as i0 from '@angular/core';
4
4
  import { Injectable } from '@angular/core';
5
5
 
6
- class ConversationService {
7
- constructor(restService) {
8
- this.restService = restService;
9
- this.apiName = 'Chat';
10
- this.getConversation = (input) => this.restService.request({
11
- method: 'GET',
12
- url: '/api/chat/conversation/conversation',
13
- params: { targetUserId: input.targetUserId, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
14
- }, { apiName: this.apiName });
15
- this.markConversationAsRead = (input) => this.restService.request({
16
- method: 'POST',
17
- url: '/api/chat/conversation/mark-conversation-as-read',
18
- body: input,
19
- }, { apiName: this.apiName });
20
- this.sendMessage = (input) => this.restService.request({
21
- method: 'POST',
22
- url: '/api/chat/conversation/send-message',
23
- body: input,
24
- }, { apiName: this.apiName });
25
- }
26
- }
27
- ConversationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ConversationService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
28
- ConversationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ConversationService, providedIn: 'root' });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ConversationService, decorators: [{
30
- type: Injectable,
31
- args: [{
32
- providedIn: 'root',
33
- }]
6
+ class ConversationService {
7
+ constructor(restService) {
8
+ this.restService = restService;
9
+ this.apiName = 'Chat';
10
+ this.getConversation = (input) => this.restService.request({
11
+ method: 'GET',
12
+ url: '/api/chat/conversation/conversation',
13
+ params: { targetUserId: input.targetUserId, skipCount: input.skipCount, maxResultCount: input.maxResultCount },
14
+ }, { apiName: this.apiName });
15
+ this.markConversationAsRead = (input) => this.restService.request({
16
+ method: 'POST',
17
+ url: '/api/chat/conversation/mark-conversation-as-read',
18
+ body: input,
19
+ }, { apiName: this.apiName });
20
+ this.sendMessage = (input) => this.restService.request({
21
+ method: 'POST',
22
+ url: '/api/chat/conversation/send-message',
23
+ body: input,
24
+ }, { apiName: this.apiName });
25
+ }
26
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConversationService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
27
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConversationService, providedIn: 'root' }); }
28
+ }
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ConversationService, decorators: [{
30
+ type: Injectable,
31
+ args: [{
32
+ providedIn: 'root',
33
+ }]
34
34
  }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
35
35
 
36
- var ChatMessageSide;
37
- (function (ChatMessageSide) {
38
- ChatMessageSide[ChatMessageSide["Sender"] = 1] = "Sender";
39
- ChatMessageSide[ChatMessageSide["Receiver"] = 2] = "Receiver";
40
- })(ChatMessageSide || (ChatMessageSide = {}));
36
+ var ChatMessageSide;
37
+ (function (ChatMessageSide) {
38
+ ChatMessageSide[ChatMessageSide["Sender"] = 1] = "Sender";
39
+ ChatMessageSide[ChatMessageSide["Receiver"] = 2] = "Receiver";
40
+ })(ChatMessageSide || (ChatMessageSide = {}));
41
41
  const chatMessageSideOptions = mapEnumToOptions(ChatMessageSide);
42
42
 
43
- class SettingsService {
44
- constructor(restService) {
45
- this.restService = restService;
46
- this.apiName = 'Chat';
47
- this.setSendOnEnterSetting = (input) => this.restService.request({
48
- method: 'POST',
49
- url: '/api/chat/settings/send-on-enter',
50
- body: input,
51
- }, { apiName: this.apiName });
52
- }
53
- }
54
- SettingsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SettingsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
55
- SettingsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SettingsService, providedIn: 'root' });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: SettingsService, decorators: [{
57
- type: Injectable,
58
- args: [{
59
- providedIn: 'root',
60
- }]
43
+ class SettingsService {
44
+ constructor(restService) {
45
+ this.restService = restService;
46
+ this.apiName = 'Chat';
47
+ this.setSendOnEnterSetting = (input) => this.restService.request({
48
+ method: 'POST',
49
+ url: '/api/chat/settings/send-on-enter',
50
+ body: input,
51
+ }, { apiName: this.apiName });
52
+ }
53
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SettingsService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
54
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SettingsService, providedIn: 'root' }); }
55
+ }
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: SettingsService, decorators: [{
57
+ type: Injectable,
58
+ args: [{
59
+ providedIn: 'root',
60
+ }]
61
61
  }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
62
62
 
63
- class ContactService {
64
- constructor(restService) {
65
- this.restService = restService;
66
- this.apiName = 'Chat';
67
- this.getContacts = (input) => this.restService.request({
68
- method: 'GET',
69
- url: '/api/chat/contact/contacts',
70
- params: { filter: input.filter, includeOtherContacts: input.includeOtherContacts },
71
- }, { apiName: this.apiName });
72
- this.getTotalUnreadMessageCount = () => this.restService.request({
73
- method: 'GET',
74
- url: '/api/chat/contact/total-unread-message-count',
75
- }, { apiName: this.apiName });
76
- }
77
- }
78
- ContactService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ContactService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable });
79
- ContactService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ContactService, providedIn: 'root' });
80
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: ContactService, decorators: [{
81
- type: Injectable,
82
- args: [{
83
- providedIn: 'root',
84
- }]
63
+ class ContactService {
64
+ constructor(restService) {
65
+ this.restService = restService;
66
+ this.apiName = 'Chat';
67
+ this.getContacts = (input) => this.restService.request({
68
+ method: 'GET',
69
+ url: '/api/chat/contact/contacts',
70
+ params: { filter: input.filter, includeOtherContacts: input.includeOtherContacts },
71
+ }, { apiName: this.apiName });
72
+ this.getTotalUnreadMessageCount = () => this.restService.request({
73
+ method: 'GET',
74
+ url: '/api/chat/contact/total-unread-message-count',
75
+ }, { apiName: this.apiName });
76
+ }
77
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContactService, deps: [{ token: i1.RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
78
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContactService, providedIn: 'root' }); }
79
+ }
80
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.2", ngImport: i0, type: ContactService, decorators: [{
81
+ type: Injectable,
82
+ args: [{
83
+ providedIn: 'root',
84
+ }]
85
85
  }], ctorParameters: function () { return [{ type: i1.RestService }]; } });
86
86
 
87
- /**
88
- * Generated bundle index. Do not edit.
87
+ /**
88
+ * Generated bundle index. Do not edit.
89
89
  */
90
90
 
91
91
  export { ChatMessageSide, ContactService, ConversationService, SettingsService, chatMessageSideOptions };
@@ -1 +1 @@
1
- {"version":3,"file":"volo-abp.ng.chat-proxy.mjs","sources":["../../../../packages/chat/proxy/src/lib/proxy/volo/chat/conversations/conversation.service.ts","../../../../packages/chat/proxy/src/lib/proxy/volo/chat/messages/chat-message-side.enum.ts","../../../../packages/chat/proxy/src/lib/proxy/volo/chat/settings/settings.service.ts","../../../../packages/chat/proxy/src/lib/proxy/volo/chat/users/contact.service.ts","../../../../packages/chat/proxy/src/volo-abp.ng.chat-proxy.ts"],"sourcesContent":["import type { ChatConversationDto, GetConversationInput, MarkConversationAsReadInput } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\nimport type { SendMessageInput } from '../messages/models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ConversationService {\r\n apiName = 'Chat';\r\n\r\n getConversation = (input: GetConversationInput) =>\r\n this.restService.request<any, ChatConversationDto>({\r\n method: 'GET',\r\n url: '/api/chat/conversation/conversation',\r\n params: { targetUserId: input.targetUserId, skipCount: input.skipCount, maxResultCount: input.maxResultCount },\r\n },\r\n { apiName: this.apiName });\r\n\r\n markConversationAsRead = (input: MarkConversationAsReadInput) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/chat/conversation/mark-conversation-as-read',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n sendMessage = (input: SendMessageInput) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/chat/conversation/send-message',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import { mapEnumToOptions } from '@abp/ng.core';\r\n\r\nexport enum ChatMessageSide {\r\n Sender = 1,\r\n Receiver = 2,\r\n}\r\n\r\nexport const chatMessageSideOptions = mapEnumToOptions(ChatMessageSide);\r\n","import type { SendOnEnterSettingDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SettingsService {\r\n apiName = 'Chat';\r\n\r\n setSendOnEnterSetting = (input: SendOnEnterSettingDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/chat/settings/send-on-enter',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { ChatContactDto, GetContactsInput } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ContactService {\r\n apiName = 'Chat';\r\n\r\n getContacts = (input: GetContactsInput) =>\r\n this.restService.request<any, ChatContactDto[]>({\r\n method: 'GET',\r\n url: '/api/chat/contact/contacts',\r\n params: { filter: input.filter, includeOtherContacts: input.includeOtherContacts },\r\n },\r\n { apiName: this.apiName });\r\n\r\n getTotalUnreadMessageCount = () =>\r\n this.restService.request<any, number>({\r\n method: 'GET',\r\n url: '/api/chat/contact/total-unread-message-count',\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;MAQa,mBAAmB,CAAA;AA2B9B,IAAA,WAAA,CAAoB,WAAwB,EAAA;QAAxB,IA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A;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
1
+ {"version":3,"file":"volo-abp.ng.chat-proxy.mjs","sources":["../../../../packages/chat/proxy/src/lib/proxy/volo/chat/conversations/conversation.service.ts","../../../../packages/chat/proxy/src/lib/proxy/volo/chat/messages/chat-message-side.enum.ts","../../../../packages/chat/proxy/src/lib/proxy/volo/chat/settings/settings.service.ts","../../../../packages/chat/proxy/src/lib/proxy/volo/chat/users/contact.service.ts","../../../../packages/chat/proxy/src/volo-abp.ng.chat-proxy.ts"],"sourcesContent":["import type { ChatConversationDto, GetConversationInput, MarkConversationAsReadInput } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\nimport type { SendMessageInput } from '../messages/models';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ConversationService {\r\n apiName = 'Chat';\r\n\r\n getConversation = (input: GetConversationInput) =>\r\n this.restService.request<any, ChatConversationDto>({\r\n method: 'GET',\r\n url: '/api/chat/conversation/conversation',\r\n params: { targetUserId: input.targetUserId, skipCount: input.skipCount, maxResultCount: input.maxResultCount },\r\n },\r\n { apiName: this.apiName });\r\n\r\n markConversationAsRead = (input: MarkConversationAsReadInput) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/chat/conversation/mark-conversation-as-read',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n sendMessage = (input: SendMessageInput) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/chat/conversation/send-message',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import { mapEnumToOptions } from '@abp/ng.core';\r\n\r\nexport enum ChatMessageSide {\r\n Sender = 1,\r\n Receiver = 2,\r\n}\r\n\r\nexport const chatMessageSideOptions = mapEnumToOptions(ChatMessageSide);\r\n","import type { SendOnEnterSettingDto } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class SettingsService {\r\n apiName = 'Chat';\r\n\r\n setSendOnEnterSetting = (input: SendOnEnterSettingDto) =>\r\n this.restService.request<any, void>({\r\n method: 'POST',\r\n url: '/api/chat/settings/send-on-enter',\r\n body: input,\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","import type { ChatContactDto, GetContactsInput } from './models';\r\nimport { RestService } from '@abp/ng.core';\r\nimport { Injectable } from '@angular/core';\r\n\r\n@Injectable({\r\n providedIn: 'root',\r\n})\r\nexport class ContactService {\r\n apiName = 'Chat';\r\n\r\n getContacts = (input: GetContactsInput) =>\r\n this.restService.request<any, ChatContactDto[]>({\r\n method: 'GET',\r\n url: '/api/chat/contact/contacts',\r\n params: { filter: input.filter, includeOtherContacts: input.includeOtherContacts },\r\n },\r\n { apiName: this.apiName });\r\n\r\n getTotalUnreadMessageCount = () =>\r\n this.restService.request<any, number>({\r\n method: 'GET',\r\n url: '/api/chat/contact/total-unread-message-count',\r\n },\r\n { apiName: this.apiName });\r\n\r\n constructor(private restService: RestService) {}\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA,MAGa,mBAAmB,CAAA;AA2B9B,IAAA,WAAA,CAAoB,WAAwB,EAAA;QAAxB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAa;QA1B5C,IAAO,CAAA,OAAA,GAAG,MAAM,CAAC;QAEjB,IAAe,CAAA,eAAA,GAAG,CAAC,KAA2B,KAC5C,IAAI,CAAC,WAAW,CAAC,OAAO,CAA2B;AACjD,YAAA,MAAM,EAAE,KAAK;AACb,YAAA,GAAG,EAAE,qCAAqC;AAC1C,YAAA,MAAM,EAAE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,cAAc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