dt-common-device 1.0.2 → 1.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.
@@ -3,6 +3,10 @@
3
3
  * WARNING: Do not log or expose sensitive fields (accessToken, clientSecret).
4
4
  */
5
5
  export interface IConnection {
6
+ id?: string;
7
+ createdAt?: Date;
8
+ updatedAt?: Date;
9
+ isDeleted?: boolean;
6
10
  connectionName: string;
7
11
  connectionRefId: string;
8
12
  propertyId: string;
@@ -92,13 +96,13 @@ export interface IConnectionConnectParams {
92
96
  propertyId?: string;
93
97
  [key: string]: unknown;
94
98
  }
95
- export interface ConnectionProvider {
96
- Smartthings: "Smartthings";
97
- SaltoKS: "SaltoKS";
98
- Tuya: "Tuya";
99
- TTLock: "TTLock";
100
- Schlage: "Schlage";
101
- YaleWifi: "YaleWifi";
102
- Devicethread: "Devicethread";
103
- Sensibo: "Sensibo";
99
+ export declare enum ConnectionProvider {
100
+ Smartthings = "Smartthings",
101
+ SaltoKS = "SaltoKS",
102
+ Tuya = "Tuya",
103
+ TTLock = "TTLock",
104
+ Schlage = "Schlage",
105
+ YaleWifi = "YaleWifi",
106
+ Devicethread = "Devicethread",
107
+ Sensibo = "Sensibo"
104
108
  }
@@ -1,3 +1,15 @@
1
1
  "use strict";
2
2
  // Device Cloud Type Interfaces for DeviceThread Common Library
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.ConnectionProvider = void 0;
5
+ var ConnectionProvider;
6
+ (function (ConnectionProvider) {
7
+ ConnectionProvider["Smartthings"] = "Smartthings";
8
+ ConnectionProvider["SaltoKS"] = "SaltoKS";
9
+ ConnectionProvider["Tuya"] = "Tuya";
10
+ ConnectionProvider["TTLock"] = "TTLock";
11
+ ConnectionProvider["Schlage"] = "Schlage";
12
+ ConnectionProvider["YaleWifi"] = "YaleWifi";
13
+ ConnectionProvider["Devicethread"] = "Devicethread";
14
+ ConnectionProvider["Sensibo"] = "Sensibo";
15
+ })(ConnectionProvider || (exports.ConnectionProvider = ConnectionProvider = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dt-common-device",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {
@@ -5,6 +5,10 @@
5
5
  * WARNING: Do not log or expose sensitive fields (accessToken, clientSecret).
6
6
  */
7
7
  export interface IConnection {
8
+ id?: string;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ isDeleted?: boolean;
8
12
  connectionName: string;
9
13
  connectionRefId: string;
10
14
  propertyId: string;
@@ -93,13 +97,13 @@ export interface IConnectionConnectParams {
93
97
  [key: string]: unknown;
94
98
  }
95
99
 
96
- export interface ConnectionProvider {
97
- Smartthings: "Smartthings";
98
- SaltoKS: "SaltoKS";
99
- Tuya: "Tuya";
100
- TTLock: "TTLock";
101
- Schlage: "Schlage";
102
- YaleWifi: "YaleWifi";
103
- Devicethread: "Devicethread";
104
- Sensibo: "Sensibo";
100
+ export enum ConnectionProvider {
101
+ Smartthings = "Smartthings",
102
+ SaltoKS = "SaltoKS",
103
+ Tuya = "Tuya",
104
+ TTLock = "TTLock",
105
+ Schlage = "Schlage",
106
+ YaleWifi = "YaleWifi",
107
+ Devicethread = "Devicethread",
108
+ Sensibo = "Sensibo",
105
109
  }