@uug-ai/models 1.0.8
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/README.md +36 -0
- package/dist/types.d.ts +1590 -0
- package/dist/types.js +6 -0
- package/package.json +24 -0
package/README.md
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# Models
|
|
2
|
+
|
|
3
|
+
TypeScript type definitions for Go models.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @uug-ai/models
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Device, Media, Location } from '@uug-ai/models';
|
|
15
|
+
|
|
16
|
+
const device: Device = {
|
|
17
|
+
id: "507f1f77bcf86cd799439011",
|
|
18
|
+
name: "Front Door Camera",
|
|
19
|
+
deviceId: "camera-001",
|
|
20
|
+
deviceType: "camera"
|
|
21
|
+
// ... other properties
|
|
22
|
+
};
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## API Response Types
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { ApiResponse, Metadata } from '@uug-ai/models';
|
|
29
|
+
|
|
30
|
+
const response: ApiResponse<Device[]> = {
|
|
31
|
+
httpStatusCode: 200,
|
|
32
|
+
applicationStatusCode: 100,
|
|
33
|
+
message: "Devices retrieved successfully",
|
|
34
|
+
data: devices
|
|
35
|
+
};
|
|
36
|
+
```
|