@pulsecharterconnect/types 0.1.32 → 0.1.34

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.
@@ -6,3 +6,20 @@ export declare enum CommunicationsChannelType {
6
6
  SURGICAL = "Surgical",
7
7
  ADMIN = "Admin"
8
8
  }
9
+ export interface ICommunicationsChannel {
10
+ id: string;
11
+ channelDisplayName: CommunicationsChannelType;
12
+ unosId?: string;
13
+ channelName: string;
14
+ messageCount: number;
15
+ usersCount: number;
16
+ }
17
+ export declare class CommunicationsChannel implements ICommunicationsChannel {
18
+ id: string;
19
+ channelDisplayName: CommunicationsChannelType;
20
+ unosId?: string;
21
+ channelName: string;
22
+ messageCount: number;
23
+ usersCount: number;
24
+ constructor(channel: ICommunicationsChannel);
25
+ }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CommunicationsChannelType = void 0;
3
+ exports.CommunicationsChannel = exports.CommunicationsChannelType = void 0;
4
4
  var CommunicationsChannelType;
5
5
  (function (CommunicationsChannelType) {
6
6
  CommunicationsChannelType["ALL"] = "All";
@@ -10,3 +10,14 @@ var CommunicationsChannelType;
10
10
  CommunicationsChannelType["SURGICAL"] = "Surgical";
11
11
  CommunicationsChannelType["ADMIN"] = "Admin";
12
12
  })(CommunicationsChannelType = exports.CommunicationsChannelType || (exports.CommunicationsChannelType = {}));
13
+ class CommunicationsChannel {
14
+ constructor(channel) {
15
+ this.id = channel.id;
16
+ this.channelDisplayName = channel.channelDisplayName;
17
+ this.unosId = channel.unosId || undefined;
18
+ this.channelName = channel.channelName;
19
+ this.messageCount = channel.messageCount || 0;
20
+ this.usersCount = channel.usersCount || 0;
21
+ }
22
+ }
23
+ exports.CommunicationsChannel = CommunicationsChannel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pulsecharterconnect/types",
3
- "version": "0.1.32",
3
+ "version": "0.1.34",
4
4
  "description": "A TypeScript library for enhanced type safety.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",