chat4app-client-angular 0.0.9 → 0.0.10

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 (35) hide show
  1. package/bundles/chat4app-client-angular.umd.js +496 -0
  2. package/bundles/chat4app-client-angular.umd.js.map +1 -0
  3. package/bundles/chat4app-client-angular.umd.min.js +2 -0
  4. package/bundles/chat4app-client-angular.umd.min.js.map +1 -0
  5. package/chat4app-client-angular.d.ts +5 -0
  6. package/chat4app-client-angular.d.ts.map +1 -0
  7. package/chat4app-client-angular.metadata.json +1 -0
  8. package/esm2015/chat4app-client-angular.js +5 -0
  9. package/esm2015/lib/chat4app-client-angular.component.js +18 -0
  10. package/esm2015/lib/chat4app-client-angular.module.js +12 -0
  11. package/esm2015/lib/chat4app-client-angular.service.js +383 -0
  12. package/esm2015/public-api.js +7 -0
  13. package/fesm2015/chat4app-client-angular.js +421 -0
  14. package/fesm2015/chat4app-client-angular.js.map +1 -0
  15. package/lib/chat4app-client-angular.component.d.ts +6 -0
  16. package/lib/chat4app-client-angular.component.d.ts.map +1 -0
  17. package/lib/chat4app-client-angular.module.d.ts +3 -0
  18. package/lib/chat4app-client-angular.module.d.ts.map +1 -0
  19. package/lib/chat4app-client-angular.service.d.ts +145 -0
  20. package/lib/chat4app-client-angular.service.d.ts.map +1 -0
  21. package/package.json +18 -10
  22. package/{src/public-api.ts → public-api.d.ts} +4 -7
  23. package/public-api.d.ts.map +1 -0
  24. package/karma.conf.js +0 -44
  25. package/ng-package.json +0 -7
  26. package/src/lib/chat4app-client-angular.component.spec.ts +0 -25
  27. package/src/lib/chat4app-client-angular.component.ts +0 -20
  28. package/src/lib/chat4app-client-angular.module.ts +0 -12
  29. package/src/lib/chat4app-client-angular.service.spec.ts +0 -16
  30. package/src/lib/chat4app-client-angular.service.ts +0 -594
  31. package/src/test.ts +0 -26
  32. package/tsconfig.lib.json +0 -26
  33. package/tsconfig.lib.prod.json +0 -10
  34. package/tsconfig.spec.json +0 -17
  35. package/tslint.json +0 -17
@@ -0,0 +1,145 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { HttpClient } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ export declare class Chat4appClientAngularService implements OnInit {
5
+ private http;
6
+ chatServer: string;
7
+ chatUrl: string;
8
+ sock: any;
9
+ stompClient: any;
10
+ constructor(http: HttpClient);
11
+ ngOnInit(): void;
12
+ config(chat4AppConfig: Chat4AppConfig): void;
13
+ init(securityChatToken: string, callback: any, chatCallback?: IChatCallback, connectionClientId?: string): void;
14
+ getChatUrlDownload(messageFileId: string): string;
15
+ getMessageChat(chatId: string, fromId: string, toId: string): Observable<Array<ChatMessage4App>>;
16
+ getMessageChatByGrop(chatId: string, groupId: string, fromId: string): Observable<Array<ChatMessage4App>>;
17
+ addMessageChat(chatMessage4App: ChatMessage4App): Observable<ChatMessage4App>;
18
+ props(chatFilterRequest4App: Array<ChatFilterRequest4App>): Observable<ChatUserResponse4App[]>;
19
+ removeUsersChat(chatId: string, chatUsersId?: string[], chatUsersExternalId?: string[]): Observable<ChatUser4App[]>;
20
+ removeUserChat(chatId: string, chatUserId?: string, chatUserExternalId?: string): Observable<ChatUser4App>;
21
+ updateUserChat(chatId: string, charUser4AppUpdate: ChatUser4App): Observable<ChatUser4App>;
22
+ createUserChat(chatId: string, chatUser4App: ChatUser4App): Observable<ChatUser4App>;
23
+ createUsersChat(chatId: string, chatUser4App: ChatUser4App[]): Observable<ChatUser4App[]>;
24
+ createChat(chat4app: Chat4App): Observable<Chat4App>;
25
+ createUpdateChat(chat4app: Chat4App): Observable<Chat4App>;
26
+ getLastMessageGroup(chatExternalId: string, groupId: string): Observable<ChatUserResponse4App>;
27
+ getLastMessage(chatExternalId: string, chatUserExternalId: string): Observable<ChatUserResponse4App>;
28
+ countNotReadMessages(chatUserExternalId: string, chatExternalId?: string, groupId?: string): Observable<ChatUserResponse4App>;
29
+ getChatByExternalId(externalId: string): Observable<Chat4App>;
30
+ readMessage(chatMessageId: string, toId?: string): Observable<void>;
31
+ online(chatId: string, chatUserId: string): Observable<number>;
32
+ sendFile(chatId: string, fromId: string, toId: string, fileToUpload: File): Observable<ChatMessageFile4App>;
33
+ sendFileGroup(chatId: string, fromId: string, groupId: string, fileToUpload: File): Observable<ChatMessageFile4App>;
34
+ translateMessage(chatMessageId: string, languageTarget: string): Observable<Chat4AppTranslate>;
35
+ getBearerToken(): string;
36
+ setTokenChat4app(chat4AppSessionToken: string): void;
37
+ onMessageFirebaseReceived(data: any, chatCallback: IChatCallback): void;
38
+ connectWebsocket(chatCallback: IChatCallback, token: string): void;
39
+ disconnect(): void;
40
+ convertChat4AppMessageReceiveToChatMessage4App(msg: Chat4AppMessageReceive): ChatMessage4App;
41
+ }
42
+ export declare class Chat4App {
43
+ id: string;
44
+ configId: string;
45
+ externalId: string;
46
+ title: string;
47
+ status: ChatStatus4App;
48
+ users: Array<ChatUser4App>;
49
+ }
50
+ export declare class ChatUser4App {
51
+ id: string;
52
+ name: string;
53
+ clientToken: string;
54
+ picturePath: string;
55
+ email: string;
56
+ externalId: string;
57
+ status: ChatUserStatus4App;
58
+ }
59
+ export declare class ChatMessage4App {
60
+ id: string;
61
+ fromId: string;
62
+ toId: string;
63
+ chatId: string;
64
+ title: string;
65
+ body: string;
66
+ meta: Array<ChatMessageMeta4App>;
67
+ groupId: string;
68
+ read: Boolean;
69
+ dateHourIncluded: Date;
70
+ chatMessageFile: ChatMessageFile4App;
71
+ }
72
+ export declare class ChatMessageFile4App {
73
+ id: string;
74
+ name: string;
75
+ type: string;
76
+ size: number;
77
+ fullPath: string;
78
+ }
79
+ export declare class ChatMessageMeta4App {
80
+ name: string;
81
+ value: string;
82
+ }
83
+ export declare class Chat4AppMessageReceive {
84
+ data: Chat4AppMessageReceiveData;
85
+ notification: Chat4AppMessageReceiveNotification;
86
+ token: string;
87
+ }
88
+ export declare class Chat4AppMessageReceiveData {
89
+ toId: string;
90
+ chatId: string;
91
+ dateHour: string;
92
+ chatMessageId: string;
93
+ externalId: string;
94
+ type: string;
95
+ fromId: string;
96
+ fileId: string;
97
+ fileName: string;
98
+ fileSize: number;
99
+ fileType: string;
100
+ all: Map<string, string>;
101
+ }
102
+ export declare class Chat4AppMessageReceiveNotification {
103
+ body: string;
104
+ }
105
+ export declare class ChatUserResponse4App {
106
+ totalMessages: number;
107
+ chat: Chat4App;
108
+ chatMessage: ChatMessage4App;
109
+ chats: ChatUserResponse4App[];
110
+ }
111
+ export declare class ChatFilterRequest4App {
112
+ type: ChatFilterType;
113
+ chatExternalId: string;
114
+ chatUserExternalId: string;
115
+ groupId: string;
116
+ }
117
+ export declare class Chat4AppConfig {
118
+ endpoint: string;
119
+ constructor(endpoint: string);
120
+ }
121
+ export declare class Chat4AppTranslate {
122
+ text: string;
123
+ translatedText: string;
124
+ originalSourceLanguageCode: string;
125
+ sourceLanguageCode: string;
126
+ targetLanguageCode: string;
127
+ messageId: string;
128
+ }
129
+ export declare enum ChatStatus4App {
130
+ CREATED = "CREATED",
131
+ CLOSED = "CLOSED"
132
+ }
133
+ export declare enum ChatUserStatus4App {
134
+ REMOVED = "REMOVED"
135
+ }
136
+ export declare enum ChatFilterType {
137
+ COUNT_NOT_READ = 1,
138
+ LAST_MESSAGE = 2
139
+ }
140
+ export interface IChatCallback {
141
+ onMessage(msg: Chat4AppMessageReceive): void;
142
+ onOffline(msg: Chat4AppMessageReceive): void;
143
+ onRead(msg: Chat4AppMessageReceive): void;
144
+ }
145
+ //# sourceMappingURL=chat4app-client-angular.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat4app-client-angular.service.d.ts","sourceRoot":"","sources":["../../../projects/chat4app-client-angular/src/lib/chat4app-client-angular.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,MAAM,EAAE,MAAM,eAAe,CAAC;AAGnD,OAAO,EAAE,UAAU,EAAe,MAAM,sBAAsB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKl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AAc,EAAE,MAAM,CAAC;IACvB,0BAA0B,EAAE,MAAM,CAAC;IACnC,kBAAkB,EAAE,MAAM,CAAC;IAC3B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,oBAAY,cAAc;IACxB,OAAO,YAAY;IACnB,MAAM,WAAW;CAElB;AACD,oBAAY,kBAAkB;IAC5B,OAAO,YAAY;CAEpB;AACD,oBAAY,cAAc;IACxB,cAAc,IAAI;IAClB,YAAY,IAAI;CACjB;AAED,MAAM,WAAW,aAAa;IAC5B,SAAS,CAAC,GAAG,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC7C,SAAS,CAAC,GAAG,EAAE,sBAAsB,GAAG,IAAI,CAAC;IAC7C,MAAM,CAAC,GAAG,EAAE,sBAAsB,GAAG,IAAI,CAAC;CAC3C"}
package/package.json CHANGED
@@ -1,11 +1,19 @@
1
- {
2
- "name": "chat4app-client-angular",
3
- "version": "0.0.9",
4
- "peerDependencies": {
5
- "@angular/common": "^11.1.1",
6
- "@angular/core": "^11.1.1"
7
- },
8
- "dependencies": {
9
- "tslib": "^2.0.0"
10
- }
1
+ {
2
+ "name": "chat4app-client-angular",
3
+ "version": "0.0.10",
4
+ "peerDependencies": {
5
+ "@angular/common": "^11.1.1",
6
+ "@angular/core": "^11.1.1"
7
+ },
8
+ "dependencies": {
9
+ "tslib": "^2.0.0"
10
+ },
11
+ "main": "bundles/chat4app-client-angular.umd.js",
12
+ "module": "fesm2015/chat4app-client-angular.js",
13
+ "es2015": "fesm2015/chat4app-client-angular.js",
14
+ "esm2015": "esm2015/chat4app-client-angular.js",
15
+ "fesm2015": "fesm2015/chat4app-client-angular.js",
16
+ "typings": "chat4app-client-angular.d.ts",
17
+ "metadata": "chat4app-client-angular.metadata.json",
18
+ "sideEffects": false
11
19
  }
@@ -1,7 +1,4 @@
1
- /*
2
- * Public API Surface of chat4app-client-angular
3
- */
4
-
5
- export * from './lib/chat4app-client-angular.service';
6
- export * from './lib/chat4app-client-angular.component';
7
- export * from './lib/chat4app-client-angular.module';
1
+ export * from './lib/chat4app-client-angular.service';
2
+ export * from './lib/chat4app-client-angular.component';
3
+ export * from './lib/chat4app-client-angular.module';
4
+ //# sourceMappingURL=public-api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../../projects/chat4app-client-angular/src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,uCAAuC,CAAC;AACtD,cAAc,yCAAyC,CAAC;AACxD,cAAc,sCAAsC,CAAC"}
package/karma.conf.js DELETED
@@ -1,44 +0,0 @@
1
- // Karma configuration file, see link for more information
2
- // https://karma-runner.github.io/1.0/config/configuration-file.html
3
-
4
- module.exports = function (config) {
5
- config.set({
6
- basePath: '',
7
- frameworks: ['jasmine', '@angular-devkit/build-angular'],
8
- plugins: [
9
- require('karma-jasmine'),
10
- require('karma-chrome-launcher'),
11
- require('karma-jasmine-html-reporter'),
12
- require('karma-coverage'),
13
- require('@angular-devkit/build-angular/plugins/karma')
14
- ],
15
- client: {
16
- jasmine: {
17
- // you can add configuration options for Jasmine here
18
- // the possible options are listed at https://jasmine.github.io/api/edge/Configuration.html
19
- // for example, you can disable the random execution with `random: false`
20
- // or set a specific seed with `seed: 4321`
21
- },
22
- clearContext: false // leave Jasmine Spec Runner output visible in browser
23
- },
24
- jasmineHtmlReporter: {
25
- suppressAll: true // removes the duplicated traces
26
- },
27
- coverageReporter: {
28
- dir: require('path').join(__dirname, '../../coverage/chat4app-client-angular'),
29
- subdir: '.',
30
- reporters: [
31
- { type: 'html' },
32
- { type: 'text-summary' }
33
- ]
34
- },
35
- reporters: ['progress', 'kjhtml'],
36
- port: 9876,
37
- colors: true,
38
- logLevel: config.LOG_INFO,
39
- autoWatch: true,
40
- browsers: ['Chrome'],
41
- singleRun: false,
42
- restartOnFileChange: true
43
- });
44
- };
package/ng-package.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "$schema": "../../node_modules/ng-packagr/ng-package.schema.json",
3
- "dest": "../../dist/chat4app-client-angular",
4
- "lib": {
5
- "entryFile": "src/public-api.ts"
6
- }
7
- }
@@ -1,25 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { Chat4appClientAngularComponent } from './chat4app-client-angular.component';
4
-
5
- describe('Chat4appClientAngularComponent', () => {
6
- let component: Chat4appClientAngularComponent;
7
- let fixture: ComponentFixture<Chat4appClientAngularComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ Chat4appClientAngularComponent ]
12
- })
13
- .compileComponents();
14
- });
15
-
16
- beforeEach(() => {
17
- fixture = TestBed.createComponent(Chat4appClientAngularComponent);
18
- component = fixture.componentInstance;
19
- fixture.detectChanges();
20
- });
21
-
22
- it('should create', () => {
23
- expect(component).toBeTruthy();
24
- });
25
- });
@@ -1,20 +0,0 @@
1
- import { Component, OnInit } from '@angular/core';
2
-
3
- @Component({
4
- selector: 'lib-chat4app-client-angular',
5
- template: `
6
- <p>
7
- chat4app-client-angular works!
8
- </p>
9
- `,
10
- styles: [
11
- ]
12
- })
13
- export class Chat4appClientAngularComponent implements OnInit {
14
-
15
- constructor() { }
16
-
17
- ngOnInit(): void {
18
- }
19
-
20
- }
@@ -1,12 +0,0 @@
1
- import { NgModule } from '@angular/core';
2
- import { Chat4appClientAngularComponent } from './chat4app-client-angular.component';
3
-
4
-
5
-
6
- @NgModule({
7
- declarations: [Chat4appClientAngularComponent],
8
- imports: [
9
- ],
10
- exports: [Chat4appClientAngularComponent]
11
- })
12
- export class Chat4appClientAngularModule { }
@@ -1,16 +0,0 @@
1
- import { TestBed } from '@angular/core/testing';
2
-
3
- import { Chat4appClientAngularService } from './chat4app-client-angular.service';
4
-
5
- describe('Chat4appClientAngularService', () => {
6
- let service: Chat4appClientAngularService;
7
-
8
- beforeEach(() => {
9
- TestBed.configureTestingModule({});
10
- service = TestBed.inject(Chat4appClientAngularService);
11
- });
12
-
13
- it('should be created', () => {
14
- expect(service).toBeTruthy();
15
- });
16
- });