@fatehan/tsrp 1.5.3 → 1.5.4
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/dist/fatehan/activities/workflow.d.ts +8 -0
- package/dist/fatehan/activities/workflow.d.ts.map +1 -1
- package/dist/fatehan/activities/workflow.js +66 -3
- package/dist/fatehan/apis/client.d.ts +1 -1
- package/dist/fatehan/apis/client.js +3 -3
- package/dist/fatehan/areas/area.js +2 -2
- package/dist/fatehan/devices/devices.js +2 -2
- package/dist/fatehan/devices/maintenance.js +2 -2
- package/dist/fatehan/financial/financial.js +2 -2
- package/dist/fatehan/google/protobuf/descriptor.d.ts +470 -39
- package/dist/fatehan/google/protobuf/descriptor.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/descriptor.js +1070 -57
- package/dist/fatehan/google/protobuf/duration.js +2 -2
- package/dist/fatehan/google/protobuf/field_mask.d.ts +16 -18
- package/dist/fatehan/google/protobuf/field_mask.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/field_mask.js +2 -2
- package/dist/fatehan/google/protobuf/timestamp.d.ts +10 -9
- package/dist/fatehan/google/protobuf/timestamp.d.ts.map +1 -1
- package/dist/fatehan/google/protobuf/timestamp.js +2 -2
- package/dist/fatehan/identities/authentication.d.ts +82 -6
- package/dist/fatehan/identities/authentication.d.ts.map +1 -1
- package/dist/fatehan/identities/authentication.js +575 -47
- package/dist/fatehan/identities/identities.d.ts +13 -1
- package/dist/fatehan/identities/identities.d.ts.map +1 -1
- package/dist/fatehan/identities/identities.js +15 -3
- package/dist/fatehan/models/fusion.js +2 -2
- package/dist/fatehan/models/models.js +2 -2
- package/dist/fatehan/notifies/notify.js +2 -2
- package/dist/fatehan/packets/{messages.d.ts → commands.d.ts} +58 -1
- package/dist/fatehan/packets/commands.d.ts.map +1 -0
- package/dist/fatehan/packets/{messages.js → commands.js} +588 -3
- package/dist/fatehan/packets/dataModel.d.ts +188 -127
- package/dist/fatehan/packets/dataModel.d.ts.map +1 -1
- package/dist/fatehan/packets/dataModel.js +1641 -1005
- package/dist/fatehan/packets/dataModule.js +2 -2
- package/dist/fatehan/packets/forge.d.ts +117 -0
- package/dist/fatehan/packets/forge.d.ts.map +1 -0
- package/dist/fatehan/packets/forge.js +1079 -0
- package/dist/fatehan/services/api.d.ts +812 -26
- package/dist/fatehan/services/api.d.ts.map +1 -1
- package/dist/fatehan/services/api.js +8438 -244
- package/dist/fatehan/services/repositories.js +2 -2
- package/dist/fatehan/stream/stream.d.ts +224 -0
- package/dist/fatehan/stream/stream.d.ts.map +1 -0
- package/dist/fatehan/stream/stream.js +1416 -0
- package/dist/fatehan/trips/trip.d.ts +159 -159
- package/dist/fatehan/trips/trip.d.ts.map +1 -1
- package/dist/fatehan/trips/trip.js +169 -169
- package/dist/fatehan/utils/buf/validate/validate.js +2 -2
- package/dist/services.d.ts +65 -0
- package/dist/services.d.ts.map +1 -0
- package/dist/services.js +205 -0
- package/package.json +12 -12
- package/dist/api.d.ts +0 -36
- package/dist/api.d.ts.map +0 -1
- package/dist/api.js +0 -146
- package/dist/fatehan/activities/camera.d.ts +0 -95
- package/dist/fatehan/activities/camera.d.ts.map +0 -1
- package/dist/fatehan/activities/camera.js +0 -811
- package/dist/fatehan/google/protobuf/any.d.ts +0 -146
- package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
- package/dist/fatehan/google/protobuf/any.js +0 -104
- package/dist/fatehan/google/status.d.ts +0 -53
- package/dist/fatehan/google/status.d.ts.map +0 -1
- package/dist/fatehan/google/status.js +0 -95
- package/dist/fatehan/packets/messages.d.ts.map +0 -1
- package/dist/fatehan/reports/report.d.ts +0 -830
- package/dist/fatehan/reports/report.d.ts.map +0 -1
- package/dist/fatehan/reports/report.js +0 -8380
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1
- package/dist/report.d.ts +0 -29
- package/dist/report.d.ts.map +0 -1
- package/dist/report.js +0 -139
- package/readme.md +0 -26
package/dist/services.js
ADDED
|
@@ -0,0 +1,205 @@
|
|
|
1
|
+
import { CommandAction } from "./fatehan/devices/devices";
|
|
2
|
+
import { EventTemplate, Event } from "./fatehan/notifies/notify";
|
|
3
|
+
import { AreaIndexRequest, AreaIndexResponse, AreaSplitterRequest, AreaSplitterResponse, AreaSummaryReviewRequest, AreaSummaryReviewResponse, AttendanceRequest, AttendanceResponse, AttendanceXRequest, AuthRequest, AuthResponse, ChartRequest, ChartResponse, CommandActionIndexRequest, CommandActionIndexResponse, CommandActionListRequest, CommandActionListResponse, CommandActionShowRequest, CommandHistoryRequest, CommandHistoryResponse, ConfigRequest, ConfigResponse, DailyTrafficRequest, DailyTrafficResponse, DashboardIndividualRequest, DashboardIndividualResponse, DeviceDataRequest, DeviceDataResponse, DeviceRequest, DeviceResponse, DeviceShowRequest, DeviceShowResponse, DriverBehaviorReportRequest, DriverBehaviorReportResponse, EventDestroyRequest, EventDestroyResponse, EventIndexRequest, EventIndexResponse, EventShowRequest, EventTemplateDestroyRequest, EventTemplateDestroyResponse, EventTemplateIndexRequest, EventTemplateIndexResponse, EventTemplateShowRequest, IoRequest, IoResponse, LogRequest, LogResponse, MaintenanceIndexRequest, MaintenanceIndexResponse, MeRequest, MeResponse, RouteReviewRequest, RouteReviewResponse, RouteStopRequest, RouteStopResponse, ShiftRequest, ShiftResponse, ShiftSummaryRequest, ShiftSummaryResponse, SubscriptionMethodIndexRequest, TrafficRequest, TrafficResponse, TraffixRequest, TraffixResponse, TripPerformanceRequest, TripPerformanceResponse, TripReportRequest, TripReportResponse, TripsRequest, TripsResponse, TripsSummaryRequest, TripsSummaryResponse, UserRequest, UserResponse, WorkCycleRequest, WorkCycleResponse, WorkflowRequest, WorkflowResponse, } from "./fatehan/services/api";
|
|
4
|
+
import { SubscriptionRepo } from "./fatehan/services/repositories";
|
|
5
|
+
import { getDeviceIoCache, getSystemIoCache, setDeviceIoCache, setSystemIoCache, } from "./store/system.io";
|
|
6
|
+
import SystemIoCast from "./system.io";
|
|
7
|
+
export class ApiError extends Error {
|
|
8
|
+
status;
|
|
9
|
+
constructor(status, message) {
|
|
10
|
+
super(message);
|
|
11
|
+
this.status = status;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ApiService {
|
|
15
|
+
url;
|
|
16
|
+
namespace = "com.fatehan.services.ApiService";
|
|
17
|
+
getDynamicHeaders;
|
|
18
|
+
constructor(url, headerProvider) {
|
|
19
|
+
this.url = url;
|
|
20
|
+
this.getDynamicHeaders = headerProvider;
|
|
21
|
+
}
|
|
22
|
+
async _call(methodName, request, encoder, decoder) {
|
|
23
|
+
const dynamicHeaders = await this.getDynamicHeaders();
|
|
24
|
+
const headers = {
|
|
25
|
+
"Content-Type": "application/octet-stream",
|
|
26
|
+
Accept: "application/octet-stream",
|
|
27
|
+
...dynamicHeaders,
|
|
28
|
+
};
|
|
29
|
+
const response = await fetch(`${this.url}/${this.namespace}/${methodName}`, {
|
|
30
|
+
method: "POST",
|
|
31
|
+
headers: headers,
|
|
32
|
+
body: new Uint8Array(encoder.encode(request).finish()),
|
|
33
|
+
});
|
|
34
|
+
if (response.ok) {
|
|
35
|
+
const buffer = await response.arrayBuffer();
|
|
36
|
+
return decoder.decode(new Uint8Array(buffer));
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
const errorText = await response.text();
|
|
40
|
+
throw new ApiError(response.status, errorText || response.statusText);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
async MeIndex(request) {
|
|
44
|
+
return this._call("MeIndex", request, MeRequest, MeResponse);
|
|
45
|
+
}
|
|
46
|
+
async Authentication(request) {
|
|
47
|
+
return this._call("Authentication", request, AuthRequest, AuthResponse);
|
|
48
|
+
}
|
|
49
|
+
async AreaIndex(request) {
|
|
50
|
+
return this._call("AreaIndex", request, AreaIndexRequest, AreaIndexResponse);
|
|
51
|
+
}
|
|
52
|
+
async DeviceIndex(request) {
|
|
53
|
+
return this._call("DeviceIndex", request, DeviceRequest, DeviceResponse);
|
|
54
|
+
}
|
|
55
|
+
async DeviceShow(request) {
|
|
56
|
+
return this._call("DeviceShow", request, DeviceShowRequest, DeviceShowResponse);
|
|
57
|
+
}
|
|
58
|
+
async ConfigIndex(request) {
|
|
59
|
+
return this._call("ConfigIndex", request, ConfigRequest, ConfigResponse);
|
|
60
|
+
}
|
|
61
|
+
async UserIndex(request) {
|
|
62
|
+
return this._call("UserIndex", request, UserRequest, UserResponse);
|
|
63
|
+
}
|
|
64
|
+
async MaintenanceIndex(request) {
|
|
65
|
+
return this._call("MaintenanceIndex", request, MaintenanceIndexRequest, MaintenanceIndexResponse);
|
|
66
|
+
}
|
|
67
|
+
async SubscriptionMethodIndex(request) {
|
|
68
|
+
return this._call("SubscriptionMethodIndex", request, SubscriptionMethodIndexRequest, SubscriptionRepo);
|
|
69
|
+
}
|
|
70
|
+
async EventTemplateIndex(request) {
|
|
71
|
+
return this._call("EventTemplateIndex", request, EventTemplateIndexRequest, EventTemplateIndexResponse);
|
|
72
|
+
}
|
|
73
|
+
async EventTemplateStore(request) {
|
|
74
|
+
return this._call("EventTemplateStore", request, EventTemplate, EventTemplate);
|
|
75
|
+
}
|
|
76
|
+
async EventTemplateUpdate(request) {
|
|
77
|
+
return this._call("EventTemplateUpdate", request, EventTemplate, EventTemplate);
|
|
78
|
+
}
|
|
79
|
+
async EventTemplateDestroy(request) {
|
|
80
|
+
return this._call("EventTemplateDestroy", request, EventTemplateDestroyRequest, EventTemplateDestroyResponse);
|
|
81
|
+
}
|
|
82
|
+
async EventTemplateShow(request) {
|
|
83
|
+
return this._call("EventTemplateShow", request, EventTemplateShowRequest, EventTemplate);
|
|
84
|
+
}
|
|
85
|
+
async EventStore(request) {
|
|
86
|
+
return this._call("EventStore", request, Event, Event);
|
|
87
|
+
}
|
|
88
|
+
async EventUpdate(request) {
|
|
89
|
+
return this._call("EventUpdate", request, Event, Event);
|
|
90
|
+
}
|
|
91
|
+
async EventDestroy(request) {
|
|
92
|
+
return this._call("EventDestroy", request, EventDestroyRequest, EventDestroyResponse);
|
|
93
|
+
}
|
|
94
|
+
async EventIndex(request) {
|
|
95
|
+
return this._call("EventIndex", request, EventIndexRequest, EventIndexResponse);
|
|
96
|
+
}
|
|
97
|
+
async EventShow(request) {
|
|
98
|
+
return this._call("EventShow", request, EventShowRequest, Event);
|
|
99
|
+
}
|
|
100
|
+
async CommandActionIndex(request) {
|
|
101
|
+
return this._call("CommandActionIndex", request, CommandActionIndexRequest, CommandActionIndexResponse);
|
|
102
|
+
}
|
|
103
|
+
async CommandActionShow(request) {
|
|
104
|
+
return this._call("CommandActionShow", request, CommandActionShowRequest, CommandAction);
|
|
105
|
+
}
|
|
106
|
+
async CommandActionList(request) {
|
|
107
|
+
return this._call("CommandActionList", request, CommandActionListRequest, CommandActionListResponse);
|
|
108
|
+
}
|
|
109
|
+
async TraffixReport(request) {
|
|
110
|
+
return this._call("TraffixReport", request, TraffixRequest, TraffixResponse);
|
|
111
|
+
}
|
|
112
|
+
async AreaSummaryReviewReport(request) {
|
|
113
|
+
return this._call("AreaSummaryReviewReport", request, AreaSummaryReviewRequest, AreaSummaryReviewResponse);
|
|
114
|
+
}
|
|
115
|
+
async AreaSplitterReport(request) {
|
|
116
|
+
return this._call("AreaSplitterReport", request, AreaSplitterRequest, AreaSplitterResponse);
|
|
117
|
+
}
|
|
118
|
+
async LogReport(request) {
|
|
119
|
+
return this._call("LogReport", request, LogRequest, LogResponse);
|
|
120
|
+
}
|
|
121
|
+
async ShiftReport(request) {
|
|
122
|
+
return this._call("ShiftReport", request, ShiftRequest, ShiftResponse);
|
|
123
|
+
}
|
|
124
|
+
async TripsReport(request) {
|
|
125
|
+
return this._call("TripsReport", request, TripsRequest, TripsResponse);
|
|
126
|
+
}
|
|
127
|
+
async TrafficReport(request) {
|
|
128
|
+
return this._call("TrafficReport", request, TrafficRequest, TrafficResponse);
|
|
129
|
+
}
|
|
130
|
+
async AttendanceReport(request) {
|
|
131
|
+
return this._call("AttendanceReport", request, AttendanceRequest, AttendanceResponse);
|
|
132
|
+
}
|
|
133
|
+
async AttendanceXReport(request) {
|
|
134
|
+
return this._call("AttendanceXReport", request, AttendanceXRequest, AttendanceResponse);
|
|
135
|
+
}
|
|
136
|
+
async DailyTrafficReport(request) {
|
|
137
|
+
return this._call("DailyTrafficReport", request, DailyTrafficRequest, DailyTrafficResponse);
|
|
138
|
+
}
|
|
139
|
+
async TripsSummaryReport(request) {
|
|
140
|
+
return this._call("TripsSummaryReport", request, TripsSummaryRequest, TripsSummaryResponse);
|
|
141
|
+
}
|
|
142
|
+
async ShiftSummaryReport(request) {
|
|
143
|
+
return this._call("ShiftSummaryReport", request, ShiftSummaryRequest, ShiftSummaryResponse);
|
|
144
|
+
}
|
|
145
|
+
async WorkCycleReport(request) {
|
|
146
|
+
return this._call("WorkCycleReport", request, WorkCycleRequest, WorkCycleResponse);
|
|
147
|
+
}
|
|
148
|
+
async TripReport(request) {
|
|
149
|
+
return this._call("TripReport", request, TripReportRequest, TripReportResponse);
|
|
150
|
+
}
|
|
151
|
+
async DeviceDataReport(request) {
|
|
152
|
+
return this._call("DeviceDataReport", request, DeviceDataRequest, DeviceDataResponse);
|
|
153
|
+
}
|
|
154
|
+
async RouteReviewReport(request) {
|
|
155
|
+
return this._call("RouteReviewReport", request, RouteReviewRequest, RouteReviewResponse);
|
|
156
|
+
}
|
|
157
|
+
async TripPerformanceReport(request) {
|
|
158
|
+
return this._call("TripPerformanceReport", request, TripPerformanceRequest, TripPerformanceResponse);
|
|
159
|
+
}
|
|
160
|
+
async DashboardIndividual(request) {
|
|
161
|
+
return this._call("DashboardIndividual", request, DashboardIndividualRequest, DashboardIndividualResponse);
|
|
162
|
+
}
|
|
163
|
+
async RouteStopReport(request) {
|
|
164
|
+
return this._call("RouteStopReport", request, RouteStopRequest, RouteStopResponse);
|
|
165
|
+
}
|
|
166
|
+
async CommandHistoryReport(request) {
|
|
167
|
+
return this._call("CommandHistoryReport", request, CommandHistoryRequest, CommandHistoryResponse);
|
|
168
|
+
}
|
|
169
|
+
async ChartReport(request) {
|
|
170
|
+
return this._call("ChartReport", request, ChartRequest, ChartResponse);
|
|
171
|
+
}
|
|
172
|
+
async WorkflowReport(request) {
|
|
173
|
+
return this._call("WorkflowReport", request, WorkflowRequest, WorkflowResponse);
|
|
174
|
+
}
|
|
175
|
+
async DriverBehaviorReport(request) {
|
|
176
|
+
return this._call("DriverBehaviorReport", request, DriverBehaviorReportRequest, DriverBehaviorReportResponse);
|
|
177
|
+
}
|
|
178
|
+
async IoIndex(request) {
|
|
179
|
+
if (request.deviceId != null) {
|
|
180
|
+
const cachedIo = getDeviceIoCache(request.deviceId.toString());
|
|
181
|
+
if (cachedIo != null) {
|
|
182
|
+
return { cost: 0, ios: cachedIo, records: cachedIo.length };
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
const cachedIo = getSystemIoCache();
|
|
187
|
+
if (cachedIo != null) {
|
|
188
|
+
return { cost: 0, ios: cachedIo, records: cachedIo.length };
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
const response = await this._call("IoIndex", request, IoRequest, IoResponse);
|
|
192
|
+
if (request.deviceId != null) {
|
|
193
|
+
setDeviceIoCache(request.deviceId.toString(), response.ios);
|
|
194
|
+
}
|
|
195
|
+
else {
|
|
196
|
+
setSystemIoCache(response.ios);
|
|
197
|
+
}
|
|
198
|
+
return response;
|
|
199
|
+
}
|
|
200
|
+
async IoCast(data) {
|
|
201
|
+
const ioData = await this.IoIndex({});
|
|
202
|
+
const deviceIo = await this.IoIndex({ deviceId: data.deviceId });
|
|
203
|
+
return SystemIoCast(ioData.ios, deviceIo.ios, data);
|
|
204
|
+
}
|
|
205
|
+
}
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fatehan/tsrp",
|
|
3
|
-
"version": "1.5.
|
|
4
|
-
"description": "fatehan
|
|
5
|
-
"
|
|
3
|
+
"version": "1.5.4",
|
|
4
|
+
"description": "fatehan communication protocol",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://git.myavl.ir/fatehan/tsrp"
|
|
8
|
+
},
|
|
6
9
|
"type": "module",
|
|
10
|
+
"main": "dist/services.js",
|
|
7
11
|
"files": [
|
|
8
12
|
"dist"
|
|
9
13
|
],
|
|
10
|
-
"repository": {
|
|
11
|
-
"type": "git",
|
|
12
|
-
"url": "git+ssh://git@github.com:FatehanNew/tsrp.git"
|
|
13
|
-
},
|
|
14
14
|
"keywords": [
|
|
15
15
|
"fatehan",
|
|
16
16
|
"protobuf",
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"@types/google-protobuf": "^3.15.12",
|
|
34
34
|
"@types/long": "^5.0.0",
|
|
35
|
-
"@types/node": "^25.0
|
|
35
|
+
"@types/node": "^25.6.0",
|
|
36
36
|
"ts-node": "^10.9.2",
|
|
37
|
-
"ts-proto": "^2.
|
|
38
|
-
"typescript": "^
|
|
39
|
-
"vitest": "^4.
|
|
37
|
+
"ts-proto": "^2.11.6",
|
|
38
|
+
"typescript": "^6.0.3",
|
|
39
|
+
"vitest": "^4.1.4"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@bufbuild/protobuf": "^2.4.0",
|
|
43
43
|
"google-protobuf": "^3.21.4",
|
|
44
44
|
"long": "^5.3.2"
|
|
45
45
|
}
|
|
46
|
-
}
|
|
46
|
+
}
|
package/dist/api.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { HeaderProvider } from ".";
|
|
2
|
-
import { ShownIo } from "./fatehan/devices/devices";
|
|
3
|
-
import { Data } from "./fatehan/packets/dataModel";
|
|
4
|
-
export declare class ApiError extends Error {
|
|
5
|
-
status: number;
|
|
6
|
-
constructor(status: number, message: string);
|
|
7
|
-
}
|
|
8
|
-
export declare class ApiService {
|
|
9
|
-
private readonly url;
|
|
10
|
-
private readonly namespace;
|
|
11
|
-
private readonly getDynamicHeaders;
|
|
12
|
-
constructor(url: string, headerProvider: HeaderProvider);
|
|
13
|
-
private _call;
|
|
14
|
-
MeIndex(request: import("./fatehan/services/api").MeRequest): Promise<import("./fatehan/services/api").MeResponse>;
|
|
15
|
-
DeviceIndex(request: import("./fatehan/services/api").DeviceRequest): Promise<import("./fatehan/services/api").DeviceResponse>;
|
|
16
|
-
DeviceShow(request: import("./fatehan/services/api").DeviceShowRequest): Promise<import("./fatehan/services/api").DeviceShowResponse>;
|
|
17
|
-
AreaIndex(request: import("./fatehan/services/api").AreaIndexRequest): Promise<import("./fatehan/services/api").AreaIndexResponse>;
|
|
18
|
-
ConfigIndex(request: import("./fatehan/services/api").ConfigRequest): Promise<import("./fatehan/services/api").ConfigResponse>;
|
|
19
|
-
UserIndex(request: import("./fatehan/services/api").UserRequest): Promise<import("./fatehan/services/api").UserResponse>;
|
|
20
|
-
EventTemplateIndex(request: import("./fatehan/services/api").EventTemplateIndexRequest): Promise<import("./fatehan/services/api").EventTemplateIndexResponse>;
|
|
21
|
-
EventTemplateShow(request: import("./fatehan/services/api").EventTemplateShowRequest): Promise<import("./fatehan/notifies/notify").EventTemplate>;
|
|
22
|
-
EventTemplateStore(request: import("./fatehan/notifies/notify").EventTemplate): Promise<import("./fatehan/notifies/notify").EventTemplate>;
|
|
23
|
-
EventTemplateUpdate(request: import("./fatehan/notifies/notify").EventTemplate): Promise<import("./fatehan/notifies/notify").EventTemplate>;
|
|
24
|
-
EventTemplateDestroy(request: import("./fatehan/services/api").EventTemplateDestroyRequest): Promise<import("./fatehan/services/api").EventTemplateDestroyResponse>;
|
|
25
|
-
EventIndex(request: import("./fatehan/services/api").EventIndexRequest): Promise<import("./fatehan/services/api").EventIndexResponse>;
|
|
26
|
-
EventShow(request: import("./fatehan/services/api").EventShowRequest): Promise<import("./fatehan/notifies/notify").Event>;
|
|
27
|
-
EventStore(request: import("./fatehan/notifies/notify").Event): Promise<import("./fatehan/notifies/notify").Event>;
|
|
28
|
-
EventUpdate(request: import("./fatehan/notifies/notify").Event): Promise<import("./fatehan/notifies/notify").Event>;
|
|
29
|
-
EventDestroy(request: import("./fatehan/services/api").EventDestroyRequest): Promise<import("./fatehan/services/api").EventDestroyResponse>;
|
|
30
|
-
IoIndex(request: import("./fatehan/services/api").IoRequest): Promise<import("./fatehan/services/api").IoResponse>;
|
|
31
|
-
IoCast(data: Data): Promise<ShownIo[]>;
|
|
32
|
-
CommandActionIndex(request: import("./fatehan/services/api").CommandActionIndexRequest): Promise<import("./fatehan/services/api").CommandActionIndexResponse>;
|
|
33
|
-
CommandActionShow(request: import("./fatehan/services/api").CommandActionShowRequest): Promise<import("./fatehan/devices/devices").CommandAction>;
|
|
34
|
-
CommandActionList(request: import("./fatehan/services/api").CommandActionListRequest): Promise<import("./fatehan/services/api").CommandActionListResponse>;
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=api.d.ts.map
|
package/dist/api.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,GAAG,CAAC;AACnC,OAAO,EAAE,OAAO,EAAE,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AASnD,qBAAa,QAAS,SAAQ,KAAK;IAC1B,MAAM,EAAE,MAAM,CAAC;gBAEV,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;CAI5C;AAED,qBAAa,UAAU;IACrB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA6C;IACvE,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAiB;gBAEvC,GAAG,EAAE,MAAM,EAAE,cAAc,EAAE,cAAc;YAKzC,KAAK;IA6BN,OAAO,CAClB,OAAO,EAAE,OAAO,wB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AAwB,EAAE,iBAAiB,GAC1D,OAAO,CAAC,OAAO,wBAAwB,EAAE,kBAAkB,CAAC;IAYlD,SAAS,CACpB,OAAO,EAAE,OAAO,wBAAwB,EAAE,gBAAgB,GACzD,OAAO,CAAC,OAAO,2BAA2B,EAAE,KAAK,CAAC;IAMxC,UAAU,CACrB,OAAO,EAAE,OAAO,2BAA2B,EAAE,KAAK,GACjD,OAAO,CAAC,OAAO,2BAA2B,EAAE,KAAK,CAAC;IAKxC,WAAW,CACtB,OAAO,EAAE,OAAO,2BAA2B,EAAE,KAAK,GACjD,OAAO,CAAC,OAAO,2BAA2B,EAAE,KAAK,CAAC;IAKxC,YAAY,CACvB,OAAO,EAAE,OAAO,wBAAwB,EAAE,mBAAmB,GAC5D,OAAO,CAAC,OAAO,wBAAwB,EAAE,oBAAoB,CAAC;IAYpD,OAAO,CAClB,OAAO,EAAE,OAAO,wBAAwB,EAAE,SAAS,GAClD,OAAO,CAAC,OAAO,wBAAwB,EAAE,UAAU,CAAC;IA6B1C,MAAM,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAAC,OAAO,EAAE,CAAC;IAMtC,kBAAkB,CAC7B,OAAO,EAAE,OAAO,wBAAwB,EAAE,yBAAyB,GAClE,OAAO,CAAC,OAAO,wBAAwB,EAAE,0BAA0B,CAAC;IAa1D,iBAAiB,CAC5B,OAAO,EAAE,OAAO,wBAAwB,EAAE,wBAAwB,GACjE,OAAO,CAAC,OAAO,2BAA2B,EAAE,aAAa,CAAC;IAgBhD,iBAAiB,CAC5B,OAAO,EAAE,OAAO,wBAAwB,EAAE,wBAAwB,GACjE,OAAO,CAAC,OAAO,wBAAwB,EAAE,yBAAyB,CAAC;CAYvE"}
|
package/dist/api.js
DELETED
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { getDeviceIoCache, getSystemIoCache, setDeviceIoCache, setSystemIoCache, } from "./store/system.io";
|
|
2
|
-
import SystemIoCast from "./system.io";
|
|
3
|
-
export class ApiError extends Error {
|
|
4
|
-
status;
|
|
5
|
-
constructor(status, message) {
|
|
6
|
-
super(message);
|
|
7
|
-
this.status = status;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
export class ApiService {
|
|
11
|
-
url;
|
|
12
|
-
namespace = "com.fatehan.services.ApiService";
|
|
13
|
-
getDynamicHeaders;
|
|
14
|
-
constructor(url, headerProvider) {
|
|
15
|
-
this.url = url;
|
|
16
|
-
this.getDynamicHeaders = headerProvider;
|
|
17
|
-
}
|
|
18
|
-
async _call(methodName, request, encoder, decoder) {
|
|
19
|
-
const dynamicHeaders = await this.getDynamicHeaders();
|
|
20
|
-
const headers = {
|
|
21
|
-
"Content-Type": "application/octet-stream",
|
|
22
|
-
Accept: "application/octet-stream",
|
|
23
|
-
...dynamicHeaders,
|
|
24
|
-
};
|
|
25
|
-
const response = await fetch(`${this.url}/${this.namespace}/${methodName}`, {
|
|
26
|
-
method: "POST",
|
|
27
|
-
headers: headers,
|
|
28
|
-
body: new Uint8Array(encoder.encode(request).finish()),
|
|
29
|
-
});
|
|
30
|
-
if (response.ok) {
|
|
31
|
-
const buffer = await response.arrayBuffer();
|
|
32
|
-
return decoder.decode(new Uint8Array(buffer));
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
const errorText = await response.text();
|
|
36
|
-
throw new ApiError(response.status, errorText || response.statusText);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
async MeIndex(request) {
|
|
40
|
-
const { MeRequest, MeResponse } = await import("./fatehan/services/api");
|
|
41
|
-
return this._call("MeIndex", request, MeRequest, MeResponse);
|
|
42
|
-
}
|
|
43
|
-
async DeviceIndex(request) {
|
|
44
|
-
const { DeviceRequest, DeviceResponse } = await import("./fatehan/services/api");
|
|
45
|
-
return this._call("DeviceIndex", request, DeviceRequest, DeviceResponse);
|
|
46
|
-
}
|
|
47
|
-
async DeviceShow(request) {
|
|
48
|
-
const { DeviceShowRequest, DeviceShowResponse } = await import("./fatehan/services/api");
|
|
49
|
-
return this._call("DeviceShow", request, DeviceShowRequest, DeviceShowResponse);
|
|
50
|
-
}
|
|
51
|
-
async AreaIndex(request) {
|
|
52
|
-
const { AreaIndexRequest, AreaIndexResponse } = await import("./fatehan/services/api");
|
|
53
|
-
return this._call("AreaIndex", request, AreaIndexRequest, AreaIndexResponse);
|
|
54
|
-
}
|
|
55
|
-
async ConfigIndex(request) {
|
|
56
|
-
const { ConfigRequest, ConfigResponse } = await import("./fatehan/services/api");
|
|
57
|
-
return this._call("ConfigIndex", request, ConfigRequest, ConfigResponse);
|
|
58
|
-
}
|
|
59
|
-
async UserIndex(request) {
|
|
60
|
-
const { UserRequest, UserResponse } = await import("./fatehan/services/api");
|
|
61
|
-
return this._call("UserIndex", request, UserRequest, UserResponse);
|
|
62
|
-
}
|
|
63
|
-
async EventTemplateIndex(request) {
|
|
64
|
-
const { EventTemplateIndexRequest, EventTemplateIndexResponse } = await import("./fatehan/services/api");
|
|
65
|
-
return this._call("EventTemplateIndex", request, EventTemplateIndexRequest, EventTemplateIndexResponse);
|
|
66
|
-
}
|
|
67
|
-
async EventTemplateShow(request) {
|
|
68
|
-
const { EventTemplateShowRequest } = await import("./fatehan/services/api");
|
|
69
|
-
const { EventTemplate } = await import("./fatehan/notifies/notify");
|
|
70
|
-
return this._call("EventTemplateShow", request, EventTemplateShowRequest, EventTemplate);
|
|
71
|
-
}
|
|
72
|
-
async EventTemplateStore(request) {
|
|
73
|
-
const { EventTemplate } = await import("./fatehan/notifies/notify");
|
|
74
|
-
return this._call("EventTemplateStore", request, EventTemplate, EventTemplate);
|
|
75
|
-
}
|
|
76
|
-
async EventTemplateUpdate(request) {
|
|
77
|
-
const { EventTemplate } = await import("./fatehan/notifies/notify");
|
|
78
|
-
return this._call("EventTemplateUpdate", request, EventTemplate, EventTemplate);
|
|
79
|
-
}
|
|
80
|
-
async EventTemplateDestroy(request) {
|
|
81
|
-
const { EventTemplateDestroyRequest, EventTemplateDestroyResponse } = await import("./fatehan/services/api");
|
|
82
|
-
return this._call("EventTemplateDestroy", request, EventTemplateDestroyRequest, EventTemplateDestroyResponse);
|
|
83
|
-
}
|
|
84
|
-
async EventIndex(request) {
|
|
85
|
-
const { EventIndexRequest, EventIndexResponse } = await import("./fatehan/services/api");
|
|
86
|
-
return this._call("EventIndex", request, EventIndexRequest, EventIndexResponse);
|
|
87
|
-
}
|
|
88
|
-
async EventShow(request) {
|
|
89
|
-
const { EventShowRequest } = await import("./fatehan/services/api");
|
|
90
|
-
const { Event } = await import("./fatehan/notifies/notify");
|
|
91
|
-
return this._call("EventShow", request, EventShowRequest, Event);
|
|
92
|
-
}
|
|
93
|
-
async EventStore(request) {
|
|
94
|
-
const { Event } = await import("./fatehan/notifies/notify");
|
|
95
|
-
return this._call("EventStore", request, Event, Event);
|
|
96
|
-
}
|
|
97
|
-
async EventUpdate(request) {
|
|
98
|
-
const { Event } = await import("./fatehan/notifies/notify");
|
|
99
|
-
return this._call("EventUpdate", request, Event, Event);
|
|
100
|
-
}
|
|
101
|
-
async EventDestroy(request) {
|
|
102
|
-
const { EventDestroyRequest, EventDestroyResponse } = await import("./fatehan/services/api");
|
|
103
|
-
return this._call("EventDestroy", request, EventDestroyRequest, EventDestroyResponse);
|
|
104
|
-
}
|
|
105
|
-
async IoIndex(request) {
|
|
106
|
-
if (request.deviceId != null) {
|
|
107
|
-
const cachedIo = getDeviceIoCache(request.deviceId.toString());
|
|
108
|
-
if (cachedIo != null) {
|
|
109
|
-
return { cost: 0, ios: cachedIo, records: cachedIo.length };
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
const cachedIo = getSystemIoCache();
|
|
114
|
-
if (cachedIo != null) {
|
|
115
|
-
return { cost: 0, ios: cachedIo, records: cachedIo.length };
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
const { IoRequest, IoResponse } = await import("./fatehan/services/api");
|
|
119
|
-
const response = await this._call("IoIndex", request, IoRequest, IoResponse);
|
|
120
|
-
if (request.deviceId != null) {
|
|
121
|
-
setDeviceIoCache(request.deviceId.toString(), response.ios);
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
setSystemIoCache(response.ios);
|
|
125
|
-
}
|
|
126
|
-
return response;
|
|
127
|
-
}
|
|
128
|
-
async IoCast(data) {
|
|
129
|
-
const ioData = await this.IoIndex({});
|
|
130
|
-
const deviceIo = await this.IoIndex({ deviceId: data.deviceId });
|
|
131
|
-
return SystemIoCast(ioData.ios, deviceIo.ios, data);
|
|
132
|
-
}
|
|
133
|
-
async CommandActionIndex(request) {
|
|
134
|
-
const { CommandActionIndexRequest, CommandActionIndexResponse } = await import("./fatehan/services/api");
|
|
135
|
-
return this._call("CommandActionIndex", request, CommandActionIndexRequest, CommandActionIndexResponse);
|
|
136
|
-
}
|
|
137
|
-
async CommandActionShow(request) {
|
|
138
|
-
const { CommandActionShowRequest } = await import("./fatehan/services/api");
|
|
139
|
-
const { CommandAction } = await import("./fatehan/devices/devices");
|
|
140
|
-
return this._call("CommandActionShow", request, CommandActionShowRequest, CommandAction);
|
|
141
|
-
}
|
|
142
|
-
async CommandActionList(request) {
|
|
143
|
-
const { CommandActionListRequest, CommandActionListResponse } = await import("./fatehan/services/api");
|
|
144
|
-
return this._call("CommandActionList", request, CommandActionListRequest, CommandActionListResponse);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import Long from "long";
|
|
3
|
-
export declare const protobufPackage = "com.fatehan.activities";
|
|
4
|
-
/** CameraRequest is used to request camera stream attachment or detachment. */
|
|
5
|
-
export interface CameraRequest {
|
|
6
|
-
deviceId: Long;
|
|
7
|
-
serialNumber: number;
|
|
8
|
-
attachRequest?: CameraRequest_Attach | undefined;
|
|
9
|
-
detachRequest?: CameraRequest_Detach | undefined;
|
|
10
|
-
}
|
|
11
|
-
export interface CameraRequest_Attach {
|
|
12
|
-
channelNumber: number;
|
|
13
|
-
dataType: number;
|
|
14
|
-
streamType: number;
|
|
15
|
-
}
|
|
16
|
-
export interface CameraRequest_Detach {
|
|
17
|
-
control: number;
|
|
18
|
-
channelNumber: number;
|
|
19
|
-
disabler: number;
|
|
20
|
-
streamType: number;
|
|
21
|
-
}
|
|
22
|
-
export interface CameraEvent {
|
|
23
|
-
deviceId: Long;
|
|
24
|
-
serialNumber: number;
|
|
25
|
-
started?: CameraEvent_Started | undefined;
|
|
26
|
-
publish?: CameraEvent_Publish | undefined;
|
|
27
|
-
publishDone?: CameraEvent_PublishDone | undefined;
|
|
28
|
-
record?: CameraEvent_Record | undefined;
|
|
29
|
-
idleTimeout?: CameraEvent_IdleTimeout | undefined;
|
|
30
|
-
receiveTimeout?: CameraEvent_ReceiveTimeout | undefined;
|
|
31
|
-
}
|
|
32
|
-
export interface CameraEvent_Started {
|
|
33
|
-
stream?: string | undefined;
|
|
34
|
-
protocol?: number | undefined;
|
|
35
|
-
remoteAddr?: string | undefined;
|
|
36
|
-
sink?: string | undefined;
|
|
37
|
-
}
|
|
38
|
-
export interface CameraEvent_Publish {
|
|
39
|
-
stream?: string | undefined;
|
|
40
|
-
protocol?: number | undefined;
|
|
41
|
-
remoteAddr?: string | undefined;
|
|
42
|
-
sink?: string | undefined;
|
|
43
|
-
}
|
|
44
|
-
export interface CameraEvent_PublishDone {
|
|
45
|
-
stream?: string | undefined;
|
|
46
|
-
protocol?: number | undefined;
|
|
47
|
-
remoteAddr?: string | undefined;
|
|
48
|
-
sink?: string | undefined;
|
|
49
|
-
}
|
|
50
|
-
export interface CameraEvent_Record {
|
|
51
|
-
stream?: string | undefined;
|
|
52
|
-
protocol?: number | undefined;
|
|
53
|
-
remoteAddr?: string | undefined;
|
|
54
|
-
sink?: string | undefined;
|
|
55
|
-
}
|
|
56
|
-
export interface CameraEvent_IdleTimeout {
|
|
57
|
-
stream?: string | undefined;
|
|
58
|
-
protocol?: number | undefined;
|
|
59
|
-
remoteAddr?: string | undefined;
|
|
60
|
-
sink?: string | undefined;
|
|
61
|
-
}
|
|
62
|
-
export interface CameraEvent_ReceiveTimeout {
|
|
63
|
-
stream?: string | undefined;
|
|
64
|
-
protocol?: number | undefined;
|
|
65
|
-
remoteAddr?: string | undefined;
|
|
66
|
-
sink?: string | undefined;
|
|
67
|
-
}
|
|
68
|
-
export declare const CameraRequest: MessageFns<CameraRequest>;
|
|
69
|
-
export declare const CameraRequest_Attach: MessageFns<CameraRequest_Attach>;
|
|
70
|
-
export declare const CameraRequest_Detach: MessageFns<CameraRequest_Detach>;
|
|
71
|
-
export declare const CameraEvent: MessageFns<CameraEvent>;
|
|
72
|
-
export declare const CameraEvent_Started: MessageFns<CameraEvent_Started>;
|
|
73
|
-
export declare const CameraEvent_Publish: MessageFns<CameraEvent_Publish>;
|
|
74
|
-
export declare const CameraEvent_PublishDone: MessageFns<CameraEvent_PublishDone>;
|
|
75
|
-
export declare const CameraEvent_Record: MessageFns<CameraEvent_Record>;
|
|
76
|
-
export declare const CameraEvent_IdleTimeout: MessageFns<CameraEvent_IdleTimeout>;
|
|
77
|
-
export declare const CameraEvent_ReceiveTimeout: MessageFns<CameraEvent_ReceiveTimeout>;
|
|
78
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
79
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
80
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
81
|
-
} : Partial<T>;
|
|
82
|
-
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
83
|
-
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
84
|
-
[K in keyof P]: Exact<P[K], I[K]>;
|
|
85
|
-
} & {
|
|
86
|
-
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
87
|
-
};
|
|
88
|
-
export interface MessageFns<T> {
|
|
89
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
90
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
91
|
-
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
92
|
-
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
93
|
-
}
|
|
94
|
-
export {};
|
|
95
|
-
//# sourceMappingURL=camera.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"camera.d.ts","sourceRoot":"","sources":["../../../src/fatehan/activities/camera.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,eAAO,MAAM,eAAe,2BAA2B,CAAC;AAExD,+EAA+E;AAC/E,MAAM,WAAW,aAAa;IAC5B,QAAQ,EAAE,IAAI,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACjD,aAAa,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,WAAW,oBAAoB;IACnC,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,aAAa,EAAE,MAAM,CAAC;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,IAAI,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC1C,OAAO,CAAC,EAAE,mBAAmB,GAAG,SAAS,CAAC;IAC1C,WAAW,CAAC,EAAE,uBAAuB,GAAG,SA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