@fatehan/tsrp 1.0.2

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.
@@ -0,0 +1,265 @@
1
+ "use strict";
2
+ /**
3
+ * @fileoverview gRPC-Web generated client stub for fatehan
4
+ * @enhanceable
5
+ * @public
6
+ */
7
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
8
+ if (k2 === undefined) k2 = k;
9
+ var desc = Object.getOwnPropertyDescriptor(m, k);
10
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
11
+ desc = { enumerable: true, get: function() { return m[k]; } };
12
+ }
13
+ Object.defineProperty(o, k2, desc);
14
+ }) : (function(o, m, k, k2) {
15
+ if (k2 === undefined) k2 = k;
16
+ o[k2] = m[k];
17
+ }));
18
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
19
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
20
+ }) : function(o, v) {
21
+ o["default"] = v;
22
+ });
23
+ var __importStar = (this && this.__importStar) || (function () {
24
+ var ownKeys = function(o) {
25
+ ownKeys = Object.getOwnPropertyNames || function (o) {
26
+ var ar = [];
27
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
28
+ return ar;
29
+ };
30
+ return ownKeys(o);
31
+ };
32
+ return function (mod) {
33
+ if (mod && mod.__esModule) return mod;
34
+ var result = {};
35
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
36
+ __setModuleDefault(result, mod);
37
+ return result;
38
+ };
39
+ })();
40
+ Object.defineProperty(exports, "__esModule", { value: true });
41
+ exports.ReportServiceClient = void 0;
42
+ // Code generated by protoc-gen-grpc-web. DO NOT EDIT.
43
+ // versions:
44
+ // protoc-gen-grpc-web v1.5.0
45
+ // protoc v3.21.12
46
+ // source: reports/report.proto
47
+ /* eslint-disable */
48
+ // @ts-nocheck
49
+ const grpcWeb = __importStar(require("grpc-web"));
50
+ const reports_report_pb = __importStar(require("../reports/report_pb")); // proto import: "reports/report.proto"
51
+ const packets_dataModel_pb = __importStar(require("../packets/dataModel_pb")); // proto import: "packets/dataModel.proto"
52
+ class ReportServiceClient {
53
+ constructor(hostname, credentials, options) {
54
+ this.methodDescriptorTraffixReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/TraffixReport', grpcWeb.MethodType.UNARY, reports_report_pb.TraffixRequest, reports_report_pb.TraffixResponse, (request) => {
55
+ return request.serializeBinary();
56
+ }, reports_report_pb.TraffixResponse.deserializeBinary);
57
+ this.methodDescriptorAreaSummaryReviewReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/AreaSummaryReviewReport', grpcWeb.MethodType.SERVER_STREAMING, reports_report_pb.AreaSummaryReviewRequest, reports_report_pb.AreaSummaryReviewResponse, (request) => {
58
+ return request.serializeBinary();
59
+ }, reports_report_pb.AreaSummaryReviewResponse.deserializeBinary);
60
+ this.methodDescriptorAreaSplitterReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/AreaSplitterReport', grpcWeb.MethodType.UNARY, reports_report_pb.AreaSplitterRequest, reports_report_pb.AreaSplitterResponse, (request) => {
61
+ return request.serializeBinary();
62
+ }, reports_report_pb.AreaSplitterResponse.deserializeBinary);
63
+ this.methodDescriptorShiftReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/ShiftReport', grpcWeb.MethodType.UNARY, reports_report_pb.ShiftRequest, reports_report_pb.ShiftResponse, (request) => {
64
+ return request.serializeBinary();
65
+ }, reports_report_pb.ShiftResponse.deserializeBinary);
66
+ this.methodDescriptorTripsReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/TripsReport', grpcWeb.MethodType.UNARY, reports_report_pb.TripsRequest, reports_report_pb.TripsResponse, (request) => {
67
+ return request.serializeBinary();
68
+ }, reports_report_pb.TripsResponse.deserializeBinary);
69
+ this.methodDescriptorTrafficReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/TrafficReport', grpcWeb.MethodType.UNARY, reports_report_pb.TrafficRequest, reports_report_pb.TrafficResponse, (request) => {
70
+ return request.serializeBinary();
71
+ }, reports_report_pb.TrafficResponse.deserializeBinary);
72
+ this.methodDescriptorAttendanceReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/AttendanceReport', grpcWeb.MethodType.UNARY, reports_report_pb.AttendanceRequest, reports_report_pb.AttendanceResponse, (request) => {
73
+ return request.serializeBinary();
74
+ }, reports_report_pb.AttendanceResponse.deserializeBinary);
75
+ this.methodDescriptorAttendanceXReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/AttendanceXReport', grpcWeb.MethodType.UNARY, reports_report_pb.AttendanceXRequest, reports_report_pb.AttendanceResponse, (request) => {
76
+ return request.serializeBinary();
77
+ }, reports_report_pb.AttendanceResponse.deserializeBinary);
78
+ this.methodDescriptorDailyTrafficReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/DailyTrafficReport', grpcWeb.MethodType.UNARY, reports_report_pb.DailyTrafficRequest, reports_report_pb.DailyTrafficResponse, (request) => {
79
+ return request.serializeBinary();
80
+ }, reports_report_pb.DailyTrafficResponse.deserializeBinary);
81
+ this.methodDescriptorTripsSummaryReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/TripsSummaryReport', grpcWeb.MethodType.UNARY, reports_report_pb.TripsSummaryRequest, reports_report_pb.TripsSummaryResponse, (request) => {
82
+ return request.serializeBinary();
83
+ }, reports_report_pb.TripsSummaryResponse.deserializeBinary);
84
+ this.methodDescriptorShiftSummaryReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/ShiftSummaryReport', grpcWeb.MethodType.UNARY, reports_report_pb.ShiftSummaryRequest, reports_report_pb.ShiftSummaryResponse, (request) => {
85
+ return request.serializeBinary();
86
+ }, reports_report_pb.ShiftSummaryResponse.deserializeBinary);
87
+ this.methodDescriptorDeviceDataCountReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/DeviceDataCountReport', grpcWeb.MethodType.UNARY, reports_report_pb.DeviceDataCountRequest, reports_report_pb.DeviceDataCountResponse, (request) => {
88
+ return request.serializeBinary();
89
+ }, reports_report_pb.DeviceDataCountResponse.deserializeBinary);
90
+ this.methodDescriptorTripReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/TripReport', grpcWeb.MethodType.UNARY, reports_report_pb.TripReportRequest, reports_report_pb.TripReportResponse, (request) => {
91
+ return request.serializeBinary();
92
+ }, reports_report_pb.TripReportResponse.deserializeBinary);
93
+ this.methodDescriptorLatestDataModel = new grpcWeb.MethodDescriptor('/fatehan.ReportService/LatestDataModel', grpcWeb.MethodType.UNARY, reports_report_pb.LatestDataModelRequest, packets_dataModel_pb.Data, (request) => {
94
+ return request.serializeBinary();
95
+ }, packets_dataModel_pb.Data.deserializeBinary);
96
+ this.methodDescriptorMaintenanceReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/MaintenanceReport', grpcWeb.MethodType.UNARY, reports_report_pb.MaintenanceRequest, reports_report_pb.MaintenanceResponse, (request) => {
97
+ return request.serializeBinary();
98
+ }, reports_report_pb.MaintenanceResponse.deserializeBinary);
99
+ this.methodDescriptorDeviceDataReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/DeviceDataReport', grpcWeb.MethodType.SERVER_STREAMING, reports_report_pb.DeviceDataRequest, reports_report_pb.DeviceDataResponse, (request) => {
100
+ return request.serializeBinary();
101
+ }, reports_report_pb.DeviceDataResponse.deserializeBinary);
102
+ this.methodDescriptorRouteReviewReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/RouteReviewReport', grpcWeb.MethodType.SERVER_STREAMING, reports_report_pb.RouteReviewRequest, reports_report_pb.RouteReviewResponse, (request) => {
103
+ return request.serializeBinary();
104
+ }, reports_report_pb.RouteReviewResponse.deserializeBinary);
105
+ this.methodDescriptorTripPerformanceReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/TripPerformanceReport', grpcWeb.MethodType.UNARY, reports_report_pb.TripPerformanceRequest, reports_report_pb.TripPerformanceResponse, (request) => {
106
+ return request.serializeBinary();
107
+ }, reports_report_pb.TripPerformanceResponse.deserializeBinary);
108
+ this.methodDescriptorEnvironmentalReport = new grpcWeb.MethodDescriptor('/fatehan.ReportService/EnvironmentalReport', grpcWeb.MethodType.SERVER_STREAMING, reports_report_pb.EnvironmentalRequest, reports_report_pb.EnvironmentalResponse, (request) => {
109
+ return request.serializeBinary();
110
+ }, reports_report_pb.EnvironmentalResponse.deserializeBinary);
111
+ this.methodDescriptorDashboardIndividual = new grpcWeb.MethodDescriptor('/fatehan.ReportService/DashboardIndividual', grpcWeb.MethodType.SERVER_STREAMING, reports_report_pb.DashboardIndividualRequest, reports_report_pb.DashboardIndividualResponse, (request) => {
112
+ return request.serializeBinary();
113
+ }, reports_report_pb.DashboardIndividualResponse.deserializeBinary);
114
+ if (!options)
115
+ options = {};
116
+ if (!credentials)
117
+ credentials = {};
118
+ options['format'] = 'text';
119
+ this.client_ = new grpcWeb.GrpcWebClientBase(options);
120
+ this.hostname_ = hostname.replace(/\/+$/, '');
121
+ this.credentials_ = credentials;
122
+ this.options_ = options;
123
+ }
124
+ traffixReport(request, metadata, callback) {
125
+ if (callback !== undefined) {
126
+ return this.client_.rpcCall(this.hostname_ +
127
+ '/fatehan.ReportService/TraffixReport', request, metadata || {}, this.methodDescriptorTraffixReport, callback);
128
+ }
129
+ return this.client_.unaryCall(this.hostname_ +
130
+ '/fatehan.ReportService/TraffixReport', request, metadata || {}, this.methodDescriptorTraffixReport);
131
+ }
132
+ areaSummaryReviewReport(request, metadata) {
133
+ return this.client_.serverStreaming(this.hostname_ +
134
+ '/fatehan.ReportService/AreaSummaryReviewReport', request, metadata || {}, this.methodDescriptorAreaSummaryReviewReport);
135
+ }
136
+ areaSplitterReport(request, metadata, callback) {
137
+ if (callback !== undefined) {
138
+ return this.client_.rpcCall(this.hostname_ +
139
+ '/fatehan.ReportService/AreaSplitterReport', request, metadata || {}, this.methodDescriptorAreaSplitterReport, callback);
140
+ }
141
+ return this.client_.unaryCall(this.hostname_ +
142
+ '/fatehan.ReportService/AreaSplitterReport', request, metadata || {}, this.methodDescriptorAreaSplitterReport);
143
+ }
144
+ shiftReport(request, metadata, callback) {
145
+ if (callback !== undefined) {
146
+ return this.client_.rpcCall(this.hostname_ +
147
+ '/fatehan.ReportService/ShiftReport', request, metadata || {}, this.methodDescriptorShiftReport, callback);
148
+ }
149
+ return this.client_.unaryCall(this.hostname_ +
150
+ '/fatehan.ReportService/ShiftReport', request, metadata || {}, this.methodDescriptorShiftReport);
151
+ }
152
+ tripsReport(request, metadata, callback) {
153
+ if (callback !== undefined) {
154
+ return this.client_.rpcCall(this.hostname_ +
155
+ '/fatehan.ReportService/TripsReport', request, metadata || {}, this.methodDescriptorTripsReport, callback);
156
+ }
157
+ return this.client_.unaryCall(this.hostname_ +
158
+ '/fatehan.ReportService/TripsReport', request, metadata || {}, this.methodDescriptorTripsReport);
159
+ }
160
+ trafficReport(request, metadata, callback) {
161
+ if (callback !== undefined) {
162
+ return this.client_.rpcCall(this.hostname_ +
163
+ '/fatehan.ReportService/TrafficReport', request, metadata || {}, this.methodDescriptorTrafficReport, callback);
164
+ }
165
+ return this.client_.unaryCall(this.hostname_ +
166
+ '/fatehan.ReportService/TrafficReport', request, metadata || {}, this.methodDescriptorTrafficReport);
167
+ }
168
+ attendanceReport(request, metadata, callback) {
169
+ if (callback !== undefined) {
170
+ return this.client_.rpcCall(this.hostname_ +
171
+ '/fatehan.ReportService/AttendanceReport', request, metadata || {}, this.methodDescriptorAttendanceReport, callback);
172
+ }
173
+ return this.client_.unaryCall(this.hostname_ +
174
+ '/fatehan.ReportService/AttendanceReport', request, metadata || {}, this.methodDescriptorAttendanceReport);
175
+ }
176
+ attendanceXReport(request, metadata, callback) {
177
+ if (callback !== undefined) {
178
+ return this.client_.rpcCall(this.hostname_ +
179
+ '/fatehan.ReportService/AttendanceXReport', request, metadata || {}, this.methodDescriptorAttendanceXReport, callback);
180
+ }
181
+ return this.client_.unaryCall(this.hostname_ +
182
+ '/fatehan.ReportService/AttendanceXReport', request, metadata || {}, this.methodDescriptorAttendanceXReport);
183
+ }
184
+ dailyTrafficReport(request, metadata, callback) {
185
+ if (callback !== undefined) {
186
+ return this.client_.rpcCall(this.hostname_ +
187
+ '/fatehan.ReportService/DailyTrafficReport', request, metadata || {}, this.methodDescriptorDailyTrafficReport, callback);
188
+ }
189
+ return this.client_.unaryCall(this.hostname_ +
190
+ '/fatehan.ReportService/DailyTrafficReport', request, metadata || {}, this.methodDescriptorDailyTrafficReport);
191
+ }
192
+ tripsSummaryReport(request, metadata, callback) {
193
+ if (callback !== undefined) {
194
+ return this.client_.rpcCall(this.hostname_ +
195
+ '/fatehan.ReportService/TripsSummaryReport', request, metadata || {}, this.methodDescriptorTripsSummaryReport, callback);
196
+ }
197
+ return this.client_.unaryCall(this.hostname_ +
198
+ '/fatehan.ReportService/TripsSummaryReport', request, metadata || {}, this.methodDescriptorTripsSummaryReport);
199
+ }
200
+ shiftSummaryReport(request, metadata, callback) {
201
+ if (callback !== undefined) {
202
+ return this.client_.rpcCall(this.hostname_ +
203
+ '/fatehan.ReportService/ShiftSummaryReport', request, metadata || {}, this.methodDescriptorShiftSummaryReport, callback);
204
+ }
205
+ return this.client_.unaryCall(this.hostname_ +
206
+ '/fatehan.ReportService/ShiftSummaryReport', request, metadata || {}, this.methodDescriptorShiftSummaryReport);
207
+ }
208
+ deviceDataCountReport(request, metadata, callback) {
209
+ if (callback !== undefined) {
210
+ return this.client_.rpcCall(this.hostname_ +
211
+ '/fatehan.ReportService/DeviceDataCountReport', request, metadata || {}, this.methodDescriptorDeviceDataCountReport, callback);
212
+ }
213
+ return this.client_.unaryCall(this.hostname_ +
214
+ '/fatehan.ReportService/DeviceDataCountReport', request, metadata || {}, this.methodDescriptorDeviceDataCountReport);
215
+ }
216
+ tripReport(request, metadata, callback) {
217
+ if (callback !== undefined) {
218
+ return this.client_.rpcCall(this.hostname_ +
219
+ '/fatehan.ReportService/TripReport', request, metadata || {}, this.methodDescriptorTripReport, callback);
220
+ }
221
+ return this.client_.unaryCall(this.hostname_ +
222
+ '/fatehan.ReportService/TripReport', request, metadata || {}, this.methodDescriptorTripReport);
223
+ }
224
+ latestDataModel(request, metadata, callback) {
225
+ if (callback !== undefined) {
226
+ return this.client_.rpcCall(this.hostname_ +
227
+ '/fatehan.ReportService/LatestDataModel', request, metadata || {}, this.methodDescriptorLatestDataModel, callback);
228
+ }
229
+ return this.client_.unaryCall(this.hostname_ +
230
+ '/fatehan.ReportService/LatestDataModel', request, metadata || {}, this.methodDescriptorLatestDataModel);
231
+ }
232
+ maintenanceReport(request, metadata, callback) {
233
+ if (callback !== undefined) {
234
+ return this.client_.rpcCall(this.hostname_ +
235
+ '/fatehan.ReportService/MaintenanceReport', request, metadata || {}, this.methodDescriptorMaintenanceReport, callback);
236
+ }
237
+ return this.client_.unaryCall(this.hostname_ +
238
+ '/fatehan.ReportService/MaintenanceReport', request, metadata || {}, this.methodDescriptorMaintenanceReport);
239
+ }
240
+ deviceDataReport(request, metadata) {
241
+ return this.client_.serverStreaming(this.hostname_ +
242
+ '/fatehan.ReportService/DeviceDataReport', request, metadata || {}, this.methodDescriptorDeviceDataReport);
243
+ }
244
+ routeReviewReport(request, metadata) {
245
+ return this.client_.serverStreaming(this.hostname_ +
246
+ '/fatehan.ReportService/RouteReviewReport', request, metadata || {}, this.methodDescriptorRouteReviewReport);
247
+ }
248
+ tripPerformanceReport(request, metadata, callback) {
249
+ if (callback !== undefined) {
250
+ return this.client_.rpcCall(this.hostname_ +
251
+ '/fatehan.ReportService/TripPerformanceReport', request, metadata || {}, this.methodDescriptorTripPerformanceReport, callback);
252
+ }
253
+ return this.client_.unaryCall(this.hostname_ +
254
+ '/fatehan.ReportService/TripPerformanceReport', request, metadata || {}, this.methodDescriptorTripPerformanceReport);
255
+ }
256
+ environmentalReport(request, metadata) {
257
+ return this.client_.serverStreaming(this.hostname_ +
258
+ '/fatehan.ReportService/EnvironmentalReport', request, metadata || {}, this.methodDescriptorEnvironmentalReport);
259
+ }
260
+ dashboardIndividual(request, metadata) {
261
+ return this.client_.serverStreaming(this.hostname_ +
262
+ '/fatehan.ReportService/DashboardIndividual', request, metadata || {}, this.methodDescriptorDashboardIndividual);
263
+ }
264
+ }
265
+ exports.ReportServiceClient = ReportServiceClient;