@bwi-mentorspaces/application-utils-npm 0.0.6 → 0.0.9
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.
- package/chat/index.d.ts +36 -36
- package/chat/index.js +58 -58
- package/chat/stream/enum/index.d.ts +33 -27
- package/chat/stream/enum/index.js +41 -34
- package/chat/stream/enum/index.js.map +1 -1
- package/chat/stream/index.d.ts +9 -9
- package/chat/stream/index.js +17 -17
- package/chat/stream/models/_/channel.data.d.ts +19 -19
- package/chat/stream/models/_/channel.data.js +2 -2
- package/chat/stream/models/_/channel.member.d.ts +14 -14
- package/chat/stream/models/_/channel.member.js +11 -11
- package/chat/stream/models/_/channel.response.d.ts +8 -8
- package/chat/stream/models/_/channel.response.js +2 -2
- package/chat/stream/models/_/event.data.d.ts +16 -0
- package/chat/stream/models/_/event.data.js +4 -0
- package/chat/stream/models/_/event.data.js.map +1 -0
- package/chat/stream/models/_/message.response.d.ts +8 -8
- package/chat/stream/models/_/message.response.js +2 -2
- package/chat/stream/models/_/stream.config.d.ts +22 -22
- package/chat/stream/models/_/stream.config.js +2 -2
- package/chat/stream/models/_/user.response.d.ts +8 -8
- package/chat/stream/models/_/user.response.js +2 -2
- package/chat/stream/models/index.d.ts +9 -7
- package/chat/stream/models/index.js +5 -5
- package/chat/stream/models/index.js.map +1 -1
- package/chat/stream/stream.api.d.ts +63 -63
- package/chat/stream/stream.api.js +76 -76
- package/chat/stream/stream.auth.d.ts +70 -70
- package/chat/stream/stream.auth.js +80 -80
- package/chat/stream/stream.base.d.ts +56 -56
- package/chat/stream/stream.base.js +93 -93
- package/chat/stream/stream.channel.d.ts +132 -118
- package/chat/stream/stream.channel.js +306 -285
- package/chat/stream/stream.channel.js.map +1 -1
- package/chat/stream/stream.error.d.ts +19 -19
- package/chat/stream/stream.error.js +17 -17
- package/chat/stream/stream.member.d.ts +75 -75
- package/chat/stream/stream.member.js +175 -175
- package/chat/stream/stream.message.d.ts +59 -59
- package/chat/stream/stream.message.js +112 -112
- package/chat/stream/stream.user.d.ts +49 -49
- package/chat/stream/stream.user.js +90 -90
- package/core/_/api-error.d.ts +24 -24
- package/core/_/api-error.js +21 -21
- package/core/_/api-response.d.ts +25 -25
- package/core/_/api-response.js +21 -21
- package/core/_/cors-headers.d.ts +16 -16
- package/core/_/cors-headers.js +32 -32
- package/core/_/model.d.ts +39 -31
- package/core/_/model.js +2 -2
- package/core/_/service-request.d.ts +66 -66
- package/core/_/service-request.js +104 -104
- package/core/_/service-request.js.map +1 -1
- package/core/index.d.ts +10 -10
- package/core/index.js +11 -11
- package/coverage/coverage-final.json +4 -0
- package/deployment/_/serverless.d.ts +26 -26
- package/deployment/_/serverless.js +43 -43
- package/deployment/index.d.ts +2 -2
- package/deployment/index.js +5 -5
- package/endpoint-test-factory/_/test-factory.d.ts +45 -45
- package/endpoint-test-factory/_/test-factory.js +91 -91
- package/endpoint-test-factory/index.d.ts +2 -2
- package/endpoint-test-factory/index.js +5 -5
- package/enums/index.d.ts +92 -92
- package/enums/index.js +2 -2
- package/jest.config.d.ts +12 -0
- package/jest.config.js +16 -0
- package/jest.config.js.map +1 -0
- package/meet/index.d.ts +36 -36
- package/meet/index.js +58 -58
- package/meet/tests/unit/twilio/twilio.room.test.d.ts +1 -0
- package/meet/tests/unit/twilio/twilio.room.test.js +33 -0
- package/meet/tests/unit/twilio/twilio.room.test.js.map +1 -0
- package/meet/twilio/enum/index.d.ts +6 -6
- package/meet/twilio/enum/index.js +10 -10
- package/meet/twilio/index.d.ts +5 -5
- package/meet/twilio/index.js +11 -11
- package/meet/twilio/models/_/room.data.d.ts +6 -6
- package/meet/twilio/models/_/room.data.js +2 -2
- package/meet/twilio/models/_/twilio.config.d.ts +29 -29
- package/meet/twilio/models/_/twilio.config.js +2 -2
- package/meet/twilio/models/index.d.ts +3 -3
- package/meet/twilio/models/index.js +2 -2
- package/meet/twilio/twilio.api.d.ts +28 -28
- package/meet/twilio/twilio.api.js +45 -45
- package/meet/twilio/twilio.auth.d.ts +55 -55
- package/meet/twilio/twilio.auth.js +83 -83
- package/meet/twilio/twilio.base.d.ts +41 -41
- package/meet/twilio/twilio.base.js +53 -53
- package/meet/twilio/twilio.room.d.ts +58 -46
- package/meet/twilio/twilio.room.js +141 -124
- package/meet/twilio/twilio.room.js.map +1 -1
- package/package.json +64 -57
- package/swagger/_/swagger.config.d.ts +21 -21
- package/swagger/_/swagger.config.js +2 -2
- package/swagger/_/swagger.d.ts +37 -37
- package/swagger/_/swagger.js +78 -78
- package/swagger/index.d.ts +3 -3
- package/swagger/index.js +5 -5
- package/types/index.d.ts +19 -19
- package/types/index.js +2 -2
- package/utils/_/encoder.d.ts +19 -19
- package/utils/_/encoder.js +27 -27
- package/utils/_/encryptor.d.ts +26 -26
- package/utils/_/encryptor.js +67 -67
- package/utils/_/hasher.d.ts +25 -25
- package/utils/_/hasher.js +63 -63
- package/utils/_/object-mapper.d.ts +12 -12
- package/utils/_/object-mapper.js +22 -22
- package/utils/_/string-formatter.d.ts +34 -34
- package/utils/_/string-formatter.js +49 -49
- package/utils/_/utc-date.d.ts +35 -35
- package/utils/_/utc-date.js +84 -84
- package/utils/index.d.ts +7 -7
- package/utils/index.js +15 -15
- package/validators/_/checker.d.ts +62 -62
- package/validators/_/checker.js +98 -98
- package/validators/_/regex.d.ts +98 -98
- package/validators/_/regex.js +142 -142
- package/validators/index.d.ts +3 -3
- package/validators/index.js +7 -7
package/chat/index.d.ts
CHANGED
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { IChatConfig } from "./stream/models";
|
|
2
|
-
import { ClientType } from "./stream/enum";
|
|
3
|
-
/**
|
|
4
|
-
* Chat declarations
|
|
5
|
-
*/
|
|
6
|
-
interface IChat<T> {
|
|
7
|
-
client: T;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Chat implementation
|
|
11
|
-
*/
|
|
12
|
-
export declare class Chat<T> implements IChat<T> {
|
|
13
|
-
private _client;
|
|
14
|
-
private _config;
|
|
15
|
-
private _clientType;
|
|
16
|
-
/**
|
|
17
|
-
* Chat constructor
|
|
18
|
-
*
|
|
19
|
-
* @param {ClientType} clientType client type
|
|
20
|
-
* @param {IChatConfig} config chat configuration
|
|
21
|
-
*/
|
|
22
|
-
constructor(clientType: ClientType, config: IChatConfig);
|
|
23
|
-
/**
|
|
24
|
-
* getter for client
|
|
25
|
-
*
|
|
26
|
-
* @returns {T} client of type T
|
|
27
|
-
*/
|
|
28
|
-
get client(): T;
|
|
29
|
-
/**
|
|
30
|
-
* initialize method
|
|
31
|
-
*
|
|
32
|
-
* @returns {void} promise of type void
|
|
33
|
-
*/
|
|
34
|
-
private init;
|
|
35
|
-
}
|
|
36
|
-
export {};
|
|
1
|
+
import { IChatConfig } from "./stream/models";
|
|
2
|
+
import { ClientType } from "./stream/enum";
|
|
3
|
+
/**
|
|
4
|
+
* Chat declarations
|
|
5
|
+
*/
|
|
6
|
+
interface IChat<T> {
|
|
7
|
+
client: T;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Chat implementation
|
|
11
|
+
*/
|
|
12
|
+
export declare class Chat<T> implements IChat<T> {
|
|
13
|
+
private _client;
|
|
14
|
+
private _config;
|
|
15
|
+
private _clientType;
|
|
16
|
+
/**
|
|
17
|
+
* Chat constructor
|
|
18
|
+
*
|
|
19
|
+
* @param {ClientType} clientType client type
|
|
20
|
+
* @param {IChatConfig} config chat configuration
|
|
21
|
+
*/
|
|
22
|
+
constructor(clientType: ClientType, config: IChatConfig);
|
|
23
|
+
/**
|
|
24
|
+
* getter for client
|
|
25
|
+
*
|
|
26
|
+
* @returns {T} client of type T
|
|
27
|
+
*/
|
|
28
|
+
get client(): T;
|
|
29
|
+
/**
|
|
30
|
+
* initialize method
|
|
31
|
+
*
|
|
32
|
+
* @returns {void} promise of type void
|
|
33
|
+
*/
|
|
34
|
+
private init;
|
|
35
|
+
}
|
|
36
|
+
export {};
|
package/chat/index.js
CHANGED
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.Chat = void 0;
|
|
13
|
-
const tsyringe_1 = require("tsyringe");
|
|
14
|
-
const enum_1 = require("./stream/enum");
|
|
15
|
-
const stream_1 = require("./stream");
|
|
16
|
-
/**
|
|
17
|
-
* Chat implementation
|
|
18
|
-
*/
|
|
19
|
-
let Chat = class Chat {
|
|
20
|
-
/**
|
|
21
|
-
* Chat constructor
|
|
22
|
-
*
|
|
23
|
-
* @param {ClientType} clientType client type
|
|
24
|
-
* @param {IChatConfig} config chat configuration
|
|
25
|
-
*/
|
|
26
|
-
constructor(clientType, config) {
|
|
27
|
-
this._clientType = clientType;
|
|
28
|
-
this._config = config;
|
|
29
|
-
this.init();
|
|
30
|
-
}
|
|
31
|
-
// getter / setter
|
|
32
|
-
/**
|
|
33
|
-
* getter for client
|
|
34
|
-
*
|
|
35
|
-
* @returns {T} client of type T
|
|
36
|
-
*/
|
|
37
|
-
get client() {
|
|
38
|
-
return this._client;
|
|
39
|
-
}
|
|
40
|
-
// methods
|
|
41
|
-
/**
|
|
42
|
-
* initialize method
|
|
43
|
-
*
|
|
44
|
-
* @returns {void} promise of type void
|
|
45
|
-
*/
|
|
46
|
-
init() {
|
|
47
|
-
// change to switch when adding new client types
|
|
48
|
-
//Create a new Stream Client
|
|
49
|
-
if (this._clientType == enum_1.ClientType.Stream) {
|
|
50
|
-
this._client = new stream_1.StreamApi(this._config);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
Chat = __decorate([
|
|
55
|
-
(0, tsyringe_1.injectable)(),
|
|
56
|
-
__metadata("design:paramtypes", [String, Object])
|
|
57
|
-
], Chat);
|
|
58
|
-
exports.Chat = Chat;
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.Chat = void 0;
|
|
13
|
+
const tsyringe_1 = require("tsyringe");
|
|
14
|
+
const enum_1 = require("./stream/enum");
|
|
15
|
+
const stream_1 = require("./stream");
|
|
16
|
+
/**
|
|
17
|
+
* Chat implementation
|
|
18
|
+
*/
|
|
19
|
+
let Chat = class Chat {
|
|
20
|
+
/**
|
|
21
|
+
* Chat constructor
|
|
22
|
+
*
|
|
23
|
+
* @param {ClientType} clientType client type
|
|
24
|
+
* @param {IChatConfig} config chat configuration
|
|
25
|
+
*/
|
|
26
|
+
constructor(clientType, config) {
|
|
27
|
+
this._clientType = clientType;
|
|
28
|
+
this._config = config;
|
|
29
|
+
this.init();
|
|
30
|
+
}
|
|
31
|
+
// getter / setter
|
|
32
|
+
/**
|
|
33
|
+
* getter for client
|
|
34
|
+
*
|
|
35
|
+
* @returns {T} client of type T
|
|
36
|
+
*/
|
|
37
|
+
get client() {
|
|
38
|
+
return this._client;
|
|
39
|
+
}
|
|
40
|
+
// methods
|
|
41
|
+
/**
|
|
42
|
+
* initialize method
|
|
43
|
+
*
|
|
44
|
+
* @returns {void} promise of type void
|
|
45
|
+
*/
|
|
46
|
+
init() {
|
|
47
|
+
// change to switch when adding new client types
|
|
48
|
+
//Create a new Stream Client
|
|
49
|
+
if (this._clientType == enum_1.ClientType.Stream) {
|
|
50
|
+
this._client = new stream_1.StreamApi(this._config);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
Chat = __decorate([
|
|
55
|
+
(0, tsyringe_1.injectable)(),
|
|
56
|
+
__metadata("design:paramtypes", [String, Object])
|
|
57
|
+
], Chat);
|
|
58
|
+
exports.Chat = Chat;
|
|
59
59
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,27 +1,33 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Client Type enum
|
|
3
|
-
*/
|
|
4
|
-
export declare enum ClientType {
|
|
5
|
-
Stream = "stream"
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Stream Code Api Error Codes
|
|
9
|
-
*/
|
|
10
|
-
export declare enum ResponseCode {
|
|
11
|
-
TokenExpired = 40
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Stream API Channel Types
|
|
15
|
-
*/
|
|
16
|
-
export declare enum ChannelType {
|
|
17
|
-
Team = "team"
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Stream API User Roles
|
|
21
|
-
*/
|
|
22
|
-
export declare enum UserRole {
|
|
23
|
-
User = "user",
|
|
24
|
-
Guest = "guest",
|
|
25
|
-
Anonymous = "anonymous",
|
|
26
|
-
Admin = "admin"
|
|
27
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Client Type enum
|
|
3
|
+
*/
|
|
4
|
+
export declare enum ClientType {
|
|
5
|
+
Stream = "stream"
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* Stream Code Api Error Codes
|
|
9
|
+
*/
|
|
10
|
+
export declare enum ResponseCode {
|
|
11
|
+
TokenExpired = 40
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Stream API Channel Types
|
|
15
|
+
*/
|
|
16
|
+
export declare enum ChannelType {
|
|
17
|
+
Team = "team"
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Stream API User Roles
|
|
21
|
+
*/
|
|
22
|
+
export declare enum UserRole {
|
|
23
|
+
User = "user",
|
|
24
|
+
Guest = "guest",
|
|
25
|
+
Anonymous = "anonymous",
|
|
26
|
+
Admin = "admin"
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Custom event types
|
|
30
|
+
*/
|
|
31
|
+
export declare enum CustomEventType {
|
|
32
|
+
TopicUpdated = "topic_updated"
|
|
33
|
+
}
|
|
@@ -1,35 +1,42 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserRole = exports.ChannelType = exports.ResponseCode = exports.ClientType = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Client Type enum
|
|
6
|
-
*/
|
|
7
|
-
var ClientType;
|
|
8
|
-
(function (ClientType) {
|
|
9
|
-
ClientType["Stream"] = "stream";
|
|
10
|
-
})(ClientType = exports.ClientType || (exports.ClientType = {}));
|
|
11
|
-
/**
|
|
12
|
-
* Stream Code Api Error Codes
|
|
13
|
-
*/
|
|
14
|
-
var ResponseCode;
|
|
15
|
-
(function (ResponseCode) {
|
|
16
|
-
ResponseCode[ResponseCode["TokenExpired"] = 40] = "TokenExpired";
|
|
17
|
-
})(ResponseCode = exports.ResponseCode || (exports.ResponseCode = {}));
|
|
18
|
-
/**
|
|
19
|
-
* Stream API Channel Types
|
|
20
|
-
*/
|
|
21
|
-
var ChannelType;
|
|
22
|
-
(function (ChannelType) {
|
|
23
|
-
ChannelType["Team"] = "team";
|
|
24
|
-
})(ChannelType = exports.ChannelType || (exports.ChannelType = {}));
|
|
25
|
-
/**
|
|
26
|
-
* Stream API User Roles
|
|
27
|
-
*/
|
|
28
|
-
var UserRole;
|
|
29
|
-
(function (UserRole) {
|
|
30
|
-
UserRole["User"] = "user";
|
|
31
|
-
UserRole["Guest"] = "guest";
|
|
32
|
-
UserRole["Anonymous"] = "anonymous";
|
|
33
|
-
UserRole["Admin"] = "admin";
|
|
34
|
-
})(UserRole = exports.UserRole || (exports.UserRole = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CustomEventType = exports.UserRole = exports.ChannelType = exports.ResponseCode = exports.ClientType = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Client Type enum
|
|
6
|
+
*/
|
|
7
|
+
var ClientType;
|
|
8
|
+
(function (ClientType) {
|
|
9
|
+
ClientType["Stream"] = "stream";
|
|
10
|
+
})(ClientType = exports.ClientType || (exports.ClientType = {}));
|
|
11
|
+
/**
|
|
12
|
+
* Stream Code Api Error Codes
|
|
13
|
+
*/
|
|
14
|
+
var ResponseCode;
|
|
15
|
+
(function (ResponseCode) {
|
|
16
|
+
ResponseCode[ResponseCode["TokenExpired"] = 40] = "TokenExpired";
|
|
17
|
+
})(ResponseCode = exports.ResponseCode || (exports.ResponseCode = {}));
|
|
18
|
+
/**
|
|
19
|
+
* Stream API Channel Types
|
|
20
|
+
*/
|
|
21
|
+
var ChannelType;
|
|
22
|
+
(function (ChannelType) {
|
|
23
|
+
ChannelType["Team"] = "team";
|
|
24
|
+
})(ChannelType = exports.ChannelType || (exports.ChannelType = {}));
|
|
25
|
+
/**
|
|
26
|
+
* Stream API User Roles
|
|
27
|
+
*/
|
|
28
|
+
var UserRole;
|
|
29
|
+
(function (UserRole) {
|
|
30
|
+
UserRole["User"] = "user";
|
|
31
|
+
UserRole["Guest"] = "guest";
|
|
32
|
+
UserRole["Anonymous"] = "anonymous";
|
|
33
|
+
UserRole["Admin"] = "admin";
|
|
34
|
+
})(UserRole = exports.UserRole || (exports.UserRole = {}));
|
|
35
|
+
/**
|
|
36
|
+
* Custom event types
|
|
37
|
+
*/
|
|
38
|
+
var CustomEventType;
|
|
39
|
+
(function (CustomEventType) {
|
|
40
|
+
CustomEventType["TopicUpdated"] = "topic_updated";
|
|
41
|
+
})(CustomEventType = exports.CustomEventType || (exports.CustomEventType = {}));
|
|
35
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../chat/stream/enum/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,UAEX;AAFD,WAAY,UAAU;IAClB,+BAAiB,CAAA;AACrB,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AAED;;GAEG;AACH,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,gEAAiB,CAAA;AACrB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED;;GAEG;AACH,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,4BAAa,CAAA;AACjB,CAAC,EAFW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAEtB;AAED;;GAEG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,2BAAe,CAAA;AACnB,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../chat/stream/enum/index.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,UAEX;AAFD,WAAY,UAAU;IAClB,+BAAiB,CAAA;AACrB,CAAC,EAFW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAErB;AAED;;GAEG;AACH,IAAY,YAEX;AAFD,WAAY,YAAY;IACpB,gEAAiB,CAAA;AACrB,CAAC,EAFW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QAEvB;AAED;;GAEG;AACH,IAAY,WAEX;AAFD,WAAY,WAAW;IACnB,4BAAa,CAAA;AACjB,CAAC,EAFW,WAAW,GAAX,mBAAW,KAAX,mBAAW,QAEtB;AAED;;GAEG;AACH,IAAY,QAKX;AALD,WAAY,QAAQ;IAChB,yBAAa,CAAA;IACb,2BAAe,CAAA;IACf,mCAAuB,CAAA;IACvB,2BAAe,CAAA;AACnB,CAAC,EALW,QAAQ,GAAR,gBAAQ,KAAR,gBAAQ,QAKnB;AAED;;GAEG;AACH,IAAY,eAEX;AAFD,WAAY,eAAe;IACvB,iDAA8B,CAAA;AAClC,CAAC,EAFW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAE1B"}
|
package/chat/stream/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { StreamApi } from "./stream.api";
|
|
2
|
-
import { StreamBase } from "./stream.base";
|
|
3
|
-
import { StreamAuth } from "./stream.auth";
|
|
4
|
-
import { StreamChannel } from "./stream.channel";
|
|
5
|
-
import { StreamErrorResponse } from "./stream.error";
|
|
6
|
-
import { StreamMember } from "./stream.member";
|
|
7
|
-
import { StreamMessage } from "./stream.message";
|
|
8
|
-
export { StreamBase, StreamApi };
|
|
9
|
-
export { StreamAuth, StreamChannel, StreamErrorResponse, StreamMember, StreamMessage };
|
|
1
|
+
import { StreamApi } from "./stream.api";
|
|
2
|
+
import { StreamBase } from "./stream.base";
|
|
3
|
+
import { StreamAuth } from "./stream.auth";
|
|
4
|
+
import { StreamChannel } from "./stream.channel";
|
|
5
|
+
import { StreamErrorResponse } from "./stream.error";
|
|
6
|
+
import { StreamMember } from "./stream.member";
|
|
7
|
+
import { StreamMessage } from "./stream.message";
|
|
8
|
+
export { StreamBase, StreamApi };
|
|
9
|
+
export { StreamAuth, StreamChannel, StreamErrorResponse, StreamMember, StreamMessage };
|
package/chat/stream/index.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamMessage = exports.StreamMember = exports.StreamErrorResponse = exports.StreamChannel = exports.StreamAuth = exports.StreamApi = exports.StreamBase = void 0;
|
|
4
|
-
const stream_api_1 = require("./stream.api");
|
|
5
|
-
Object.defineProperty(exports, "StreamApi", { enumerable: true, get: function () { return stream_api_1.StreamApi; } });
|
|
6
|
-
const stream_base_1 = require("./stream.base");
|
|
7
|
-
Object.defineProperty(exports, "StreamBase", { enumerable: true, get: function () { return stream_base_1.StreamBase; } });
|
|
8
|
-
const stream_auth_1 = require("./stream.auth");
|
|
9
|
-
Object.defineProperty(exports, "StreamAuth", { enumerable: true, get: function () { return stream_auth_1.StreamAuth; } });
|
|
10
|
-
const stream_channel_1 = require("./stream.channel");
|
|
11
|
-
Object.defineProperty(exports, "StreamChannel", { enumerable: true, get: function () { return stream_channel_1.StreamChannel; } });
|
|
12
|
-
const stream_error_1 = require("./stream.error");
|
|
13
|
-
Object.defineProperty(exports, "StreamErrorResponse", { enumerable: true, get: function () { return stream_error_1.StreamErrorResponse; } });
|
|
14
|
-
const stream_member_1 = require("./stream.member");
|
|
15
|
-
Object.defineProperty(exports, "StreamMember", { enumerable: true, get: function () { return stream_member_1.StreamMember; } });
|
|
16
|
-
const stream_message_1 = require("./stream.message");
|
|
17
|
-
Object.defineProperty(exports, "StreamMessage", { enumerable: true, get: function () { return stream_message_1.StreamMessage; } });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamMessage = exports.StreamMember = exports.StreamErrorResponse = exports.StreamChannel = exports.StreamAuth = exports.StreamApi = exports.StreamBase = void 0;
|
|
4
|
+
const stream_api_1 = require("./stream.api");
|
|
5
|
+
Object.defineProperty(exports, "StreamApi", { enumerable: true, get: function () { return stream_api_1.StreamApi; } });
|
|
6
|
+
const stream_base_1 = require("./stream.base");
|
|
7
|
+
Object.defineProperty(exports, "StreamBase", { enumerable: true, get: function () { return stream_base_1.StreamBase; } });
|
|
8
|
+
const stream_auth_1 = require("./stream.auth");
|
|
9
|
+
Object.defineProperty(exports, "StreamAuth", { enumerable: true, get: function () { return stream_auth_1.StreamAuth; } });
|
|
10
|
+
const stream_channel_1 = require("./stream.channel");
|
|
11
|
+
Object.defineProperty(exports, "StreamChannel", { enumerable: true, get: function () { return stream_channel_1.StreamChannel; } });
|
|
12
|
+
const stream_error_1 = require("./stream.error");
|
|
13
|
+
Object.defineProperty(exports, "StreamErrorResponse", { enumerable: true, get: function () { return stream_error_1.StreamErrorResponse; } });
|
|
14
|
+
const stream_member_1 = require("./stream.member");
|
|
15
|
+
Object.defineProperty(exports, "StreamMember", { enumerable: true, get: function () { return stream_member_1.StreamMember; } });
|
|
16
|
+
const stream_message_1 = require("./stream.message");
|
|
17
|
+
Object.defineProperty(exports, "StreamMessage", { enumerable: true, get: function () { return stream_message_1.StreamMessage; } });
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { ChannelData } from "stream-chat";
|
|
2
|
-
import { ChannelType } from "../../enum";
|
|
3
|
-
/**
|
|
4
|
-
* Channel alt data
|
|
5
|
-
*/
|
|
6
|
-
export interface IChannelData extends ChannelData {
|
|
7
|
-
type?: ChannelType;
|
|
8
|
-
subType?: string;
|
|
9
|
-
createdById?: string;
|
|
10
|
-
channelId?: string;
|
|
11
|
-
channelRef?: string;
|
|
12
|
-
inviteMessage?: string;
|
|
13
|
-
image?: string;
|
|
14
|
-
text?: string;
|
|
15
|
-
frozen?: boolean;
|
|
16
|
-
disabled?: boolean;
|
|
17
|
-
companyId?: number;
|
|
18
|
-
topicRef?: string;
|
|
19
|
-
}
|
|
1
|
+
import { ChannelData } from "stream-chat";
|
|
2
|
+
import { ChannelType } from "../../enum";
|
|
3
|
+
/**
|
|
4
|
+
* Channel alt data
|
|
5
|
+
*/
|
|
6
|
+
export interface IChannelData extends ChannelData {
|
|
7
|
+
type?: ChannelType;
|
|
8
|
+
subType?: string;
|
|
9
|
+
createdById?: string;
|
|
10
|
+
channelId?: string;
|
|
11
|
+
channelRef?: string;
|
|
12
|
+
inviteMessage?: string;
|
|
13
|
+
image?: string;
|
|
14
|
+
text?: string;
|
|
15
|
+
frozen?: boolean;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
companyId?: number;
|
|
18
|
+
topicRef?: string;
|
|
19
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=channel.data.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Member update interface
|
|
3
|
-
*/
|
|
4
|
-
export interface IMemberRole {
|
|
5
|
-
user_id: string;
|
|
6
|
-
channel_role: StreamDefaultChannelRole;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* Stream default channel roles
|
|
10
|
-
*/
|
|
11
|
-
export declare enum StreamDefaultChannelRole {
|
|
12
|
-
channel_member = "channel_member",
|
|
13
|
-
channel_moderator = "channel_moderator"
|
|
14
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Member update interface
|
|
3
|
+
*/
|
|
4
|
+
export interface IMemberRole {
|
|
5
|
+
user_id: string;
|
|
6
|
+
channel_role: StreamDefaultChannelRole;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Stream default channel roles
|
|
10
|
+
*/
|
|
11
|
+
export declare enum StreamDefaultChannelRole {
|
|
12
|
+
channel_member = "channel_member",
|
|
13
|
+
channel_moderator = "channel_moderator"
|
|
14
|
+
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.StreamDefaultChannelRole = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* Stream default channel roles
|
|
6
|
-
*/
|
|
7
|
-
var StreamDefaultChannelRole;
|
|
8
|
-
(function (StreamDefaultChannelRole) {
|
|
9
|
-
StreamDefaultChannelRole["channel_member"] = "channel_member";
|
|
10
|
-
StreamDefaultChannelRole["channel_moderator"] = "channel_moderator";
|
|
11
|
-
})(StreamDefaultChannelRole = exports.StreamDefaultChannelRole || (exports.StreamDefaultChannelRole = {}));
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StreamDefaultChannelRole = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Stream default channel roles
|
|
6
|
+
*/
|
|
7
|
+
var StreamDefaultChannelRole;
|
|
8
|
+
(function (StreamDefaultChannelRole) {
|
|
9
|
+
StreamDefaultChannelRole["channel_member"] = "channel_member";
|
|
10
|
+
StreamDefaultChannelRole["channel_moderator"] = "channel_moderator";
|
|
11
|
+
})(StreamDefaultChannelRole = exports.StreamDefaultChannelRole || (exports.StreamDefaultChannelRole = {}));
|
|
12
12
|
//# sourceMappingURL=channel.member.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { ChannelAPIResponse } from "stream-chat";
|
|
2
|
-
/**
|
|
3
|
-
* Channel response Api
|
|
4
|
-
*/
|
|
5
|
-
export interface IChannelAPIResponse extends ChannelAPIResponse {
|
|
6
|
-
channelId?: number;
|
|
7
|
-
channelRef?: string;
|
|
8
|
-
}
|
|
1
|
+
import { ChannelAPIResponse } from "stream-chat";
|
|
2
|
+
/**
|
|
3
|
+
* Channel response Api
|
|
4
|
+
*/
|
|
5
|
+
export interface IChannelAPIResponse extends ChannelAPIResponse {
|
|
6
|
+
channelId?: number;
|
|
7
|
+
channelRef?: string;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=channel.response.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { CustomEventType } from "../../enum";
|
|
2
|
+
import { EventTypes, Event, DefaultGenerics } from "stream-chat";
|
|
3
|
+
/**
|
|
4
|
+
* Event types
|
|
5
|
+
*/
|
|
6
|
+
export declare type IEventTypes = EventTypes | CustomEventType;
|
|
7
|
+
/**
|
|
8
|
+
* Event types data
|
|
9
|
+
*/
|
|
10
|
+
export interface IEventTypesData {
|
|
11
|
+
[event: string]: Partial<Event<DefaultGenerics>>;
|
|
12
|
+
[CustomEventType.TopicUpdated]: Partial<Event<DefaultGenerics>> & {
|
|
13
|
+
test: string;
|
|
14
|
+
newOne: boolean;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"event.data.js","sourceRoot":"","sources":["../../../../../chat/stream/models/_/event.data.ts"],"names":[],"mappings":";;AAAA,qCAA6C"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { MessageResponse } from "stream-chat";
|
|
2
|
-
/**
|
|
3
|
-
* Channel response Api
|
|
4
|
-
*/
|
|
5
|
-
export interface IMessageResponse extends MessageResponse {
|
|
6
|
-
messageId?: number;
|
|
7
|
-
messageRef?: string;
|
|
8
|
-
}
|
|
1
|
+
import { MessageResponse } from "stream-chat";
|
|
2
|
+
/**
|
|
3
|
+
* Channel response Api
|
|
4
|
+
*/
|
|
5
|
+
export interface IMessageResponse extends MessageResponse {
|
|
6
|
+
messageId?: number;
|
|
7
|
+
messageRef?: string;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=message.response.js.map
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Stream configuration declarations
|
|
3
|
-
*/
|
|
4
|
-
export interface IChatConfig {
|
|
5
|
-
key: string;
|
|
6
|
-
secret: string;
|
|
7
|
-
options: IStreamConfig;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* Stream config / type = option
|
|
11
|
-
*/
|
|
12
|
-
export interface IStreamConfig {
|
|
13
|
-
token: {
|
|
14
|
-
expiration: number;
|
|
15
|
-
};
|
|
16
|
-
message: {
|
|
17
|
-
format: object;
|
|
18
|
-
};
|
|
19
|
-
media: {
|
|
20
|
-
allowedExt: string[];
|
|
21
|
-
};
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* Stream configuration declarations
|
|
3
|
+
*/
|
|
4
|
+
export interface IChatConfig {
|
|
5
|
+
key: string;
|
|
6
|
+
secret: string;
|
|
7
|
+
options: IStreamConfig;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* Stream config / type = option
|
|
11
|
+
*/
|
|
12
|
+
export interface IStreamConfig {
|
|
13
|
+
token: {
|
|
14
|
+
expiration: number;
|
|
15
|
+
};
|
|
16
|
+
message: {
|
|
17
|
+
format: object;
|
|
18
|
+
};
|
|
19
|
+
media: {
|
|
20
|
+
allowedExt: string[];
|
|
21
|
+
};
|
|
22
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=stream.config.js.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UserResponse } from "stream-chat";
|
|
2
|
-
/**
|
|
3
|
-
* User response Api
|
|
4
|
-
*/
|
|
5
|
-
export interface IUserResponse extends UserResponse {
|
|
6
|
-
channelId?: number;
|
|
7
|
-
channelRef?: string;
|
|
8
|
-
}
|
|
1
|
+
import { UserResponse } from "stream-chat";
|
|
2
|
+
/**
|
|
3
|
+
* User response Api
|
|
4
|
+
*/
|
|
5
|
+
export interface IUserResponse extends UserResponse {
|
|
6
|
+
channelId?: number;
|
|
7
|
+
channelRef?: string;
|
|
8
|
+
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
//# sourceMappingURL=user.response.js.map
|