@fatehan/tsrp 1.0.45 → 1.1.1

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.
Files changed (55) hide show
  1. package/dist/api.d.ts +10 -0
  2. package/dist/api.d.ts.map +1 -0
  3. package/dist/api.js +51 -0
  4. package/dist/api.test.d.ts +2 -0
  5. package/dist/api.test.d.ts.map +1 -0
  6. package/dist/api.test.js +20 -0
  7. package/dist/fatehan/apis/client.d.ts +213 -266
  8. package/dist/fatehan/apis/client.d.ts.map +1 -1
  9. package/dist/fatehan/apis/client.js +2277 -3223
  10. package/dist/fatehan/areas/area.d.ts +14 -0
  11. package/dist/fatehan/areas/area.d.ts.map +1 -1
  12. package/dist/fatehan/areas/area.js +212 -1
  13. package/dist/fatehan/devices/devices.d.ts +278 -0
  14. package/dist/fatehan/devices/devices.d.ts.map +1 -0
  15. package/dist/fatehan/devices/devices.js +3564 -0
  16. package/dist/fatehan/financial/financial.d.ts +45 -0
  17. package/dist/fatehan/financial/financial.d.ts.map +1 -0
  18. package/dist/fatehan/financial/financial.js +385 -0
  19. package/dist/fatehan/identities/identities.d.ts +154 -0
  20. package/dist/fatehan/identities/identities.d.ts.map +1 -0
  21. package/dist/fatehan/identities/identities.js +2068 -0
  22. package/dist/fatehan/models/models.d.ts +14 -80
  23. package/dist/fatehan/models/models.d.ts.map +1 -1
  24. package/dist/fatehan/models/models.js +478 -1401
  25. package/dist/fatehan/notifies/notify.d.ts +27 -0
  26. package/dist/fatehan/notifies/notify.d.ts.map +1 -1
  27. package/dist/fatehan/notifies/notify.js +419 -7
  28. package/dist/fatehan/reports/report.d.ts +1 -1
  29. package/dist/fatehan/reports/report.d.ts.map +1 -1
  30. package/dist/fatehan/reports/report.js +6 -6
  31. package/dist/fatehan/services/api.d.ts +60 -0
  32. package/dist/fatehan/services/api.d.ts.map +1 -0
  33. package/dist/fatehan/services/api.js +529 -0
  34. package/dist/fatehan/services/repositories.d.ts +49 -0
  35. package/dist/fatehan/services/repositories.d.ts.map +1 -0
  36. package/dist/fatehan/services/repositories.js +358 -0
  37. package/dist/{index.d.ts → report.d.ts} +2 -2
  38. package/dist/report.d.ts.map +1 -0
  39. package/dist/{index.js → report.js} +12 -12
  40. package/dist/report.test.d.ts +2 -0
  41. package/dist/report.test.d.ts.map +1 -0
  42. package/dist/{index.test.js → report.test.js} +14 -16
  43. package/dist/store/system.io.d.ts +1 -1
  44. package/dist/store/system.io.d.ts.map +1 -1
  45. package/dist/system.io.d.ts +1 -1
  46. package/dist/system.io.d.ts.map +1 -1
  47. package/dist/system.io.js +10 -14
  48. package/package.json +4 -4
  49. package/dist/fatehan/google/protobuf/any.d.ts +0 -146
  50. package/dist/fatehan/google/protobuf/any.d.ts.map +0 -1
  51. package/dist/fatehan/google/protobuf/any.js +0 -108
  52. package/dist/fatehan/reports/ReportServiceClientPb.js +0 -265
  53. package/dist/index.d.ts.map +0 -1
  54. package/dist/index.test.d.ts +0 -2
  55. package/dist/index.test.d.ts.map +0 -1
@@ -1,146 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import Long from "long";
3
- export declare const protobufPackage = "google.protobuf";
4
- /**
5
- * `Any` contains an arbitrary serialized protocol buffer message along with a
6
- * URL that describes the type of the serialized message.
7
- *
8
- * Protobuf library provides support to pack/unpack Any values in the form
9
- * of utility functions or additional generated methods of the Any type.
10
- *
11
- * Example 1: Pack and unpack a message in C++.
12
- *
13
- * Foo foo = ...;
14
- * Any any;
15
- * any.PackFrom(foo);
16
- * ...
17
- * if (any.UnpackTo(&foo)) {
18
- * ...
19
- * }
20
- *
21
- * Example 2: Pack and unpack a message in Java.
22
- *
23
- * Foo foo = ...;
24
- * Any any = Any.pack(foo);
25
- * ...
26
- * if (any.is(Foo.class)) {
27
- * foo = any.unpack(Foo.class);
28
- * }
29
- * // or ...
30
- * if (any.isSameTypeAs(Foo.getDefaultInstance())) {
31
- * foo = any.unpack(Foo.getDefaultInstance());
32
- * }
33
- *
34
- * Example 3: Pack and unpack a message in Python.
35
- *
36
- * foo = Foo(...)
37
- * any = Any()
38
- * any.Pack(foo)
39
- * ...
40
- * if any.Is(Foo.DESCRIPTOR):
41
- * any.Unpack(foo)
42
- * ...
43
- *
44
- * Example 4: Pack and unpack a message in Go
45
- *
46
- * foo := &pb.Foo{...}
47
- * any, err := anypb.New(foo)
48
- * if err != nil {
49
- * ...
50
- * }
51
- * ...
52
- * foo := &pb.Foo{}
53
- * if err := any.UnmarshalTo(foo); err != nil {
54
- * ...
55
- * }
56
- *
57
- * The pack methods provided by protobuf library will by default use
58
- * 'type.googleapis.com/full.type.name' as the type URL and the unpack
59
- * methods only use the fully qualified type name after the last '/'
60
- * in the type URL, for example "foo.bar.com/x/y.z" will yield type
61
- * name "y.z".
62
- *
63
- * JSON
64
- * ====
65
- * The JSON representation of an `Any` value uses the regular
66
- * representation of the deserialized, embedded message, with an
67
- * additional field `@type` which contains the type URL. Example:
68
- *
69
- * package google.profile;
70
- * message Person {
71
- * string first_name = 1;
72
- * string last_name = 2;
73
- * }
74
- *
75
- * {
76
- * "@type": "type.googleapis.com/google.profile.Person",
77
- * "firstName": <string>,
78
- * "lastName": <string>
79
- * }
80
- *
81
- * If the embedded message type is well-known and has a custom JSON
82
- * representation, that representation will be embedded adding a field
83
- * `value` which holds the custom JSON in addition to the `@type`
84
- * field. Example (for message [google.protobuf.Duration][]):
85
- *
86
- * {
87
- * "@type": "type.googleapis.com/google.protobuf.Duration",
88
- * "value": "1.212s"
89
- * }
90
- */
91
- export interface Any {
92
- /**
93
- * A URL/resource name that uniquely identifies the type of the serialized
94
- * protocol buffer message. This string must contain at least
95
- * one "/" character. The last segment of the URL's path must represent
96
- * the fully qualified name of the type (as in
97
- * `path/google.protobuf.Duration`). The name should be in a canonical form
98
- * (e.g., leading "." is not accepted).
99
- *
100
- * In practice, teams usually precompile into the binary all types that they
101
- * expect it to use in the context of Any. However, for URLs which use the
102
- * scheme `http`, `https`, or no scheme, one can optionally set up a type
103
- * server that maps type URLs to message definitions as follows:
104
- *
105
- * * If no scheme is provided, `https` is assumed.
106
- * * An HTTP GET on the URL must yield a [google.protobuf.Type][]
107
- * value in binary format, or produce an error.
108
- * * Applications are allowed to cache lookup results based on the
109
- * URL, or have them precompiled into a binary to avoid any
110
- * lookup. Therefore, binary compatibility needs to be preserved
111
- * on changes to types. (Use versioned type names to manage
112
- * breaking changes.)
113
- *
114
- * Note: this functionality is not currently available in the official
115
- * protobuf release, and it is not used for type URLs beginning with
116
- * type.googleapis.com. As of May 2023, there are no widely used type server
117
- * implementations and no plans to implement one.
118
- *
119
- * Schemes other than `http`, `https` (or the empty scheme) might be
120
- * used with implementation specific semantics.
121
- */
122
- typeUrl: string;
123
- /** Must be a valid serialized protocol buffer of the above specified type. */
124
- value: Uint8Array;
125
- }
126
- export declare const Any: MessageFns<Any>;
127
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
128
- 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 {} ? {
129
- [K in keyof T]?: DeepPartial<T[K]>;
130
- } : Partial<T>;
131
- type KeysOfUnion<T> = T extends T ? keyof T : never;
132
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
133
- [K in keyof P]: Exact<P[K], I[K]>;
134
- } & {
135
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
136
- };
137
- export interface MessageFns<T> {
138
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
139
- decode(input: BinaryReader | Uint8Array, length?: number): T;
140
- fromJSON(object: any): T;
141
- toJSON(message: T): unknown;
142
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
143
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
144
- }
145
- export {};
146
- //# sourceMappingURL=any.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"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AG,KAAK,CAAC;AACpD,MAAM,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GACrD,CAAC,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,GAAG,KAAK;CAAE,CAAC;AAMnG,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;IACxD,WAAW,CAAC,CAAC,SAAS,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC;CAC/D"}
@@ -1,108 +0,0 @@
1
- "use strict";
2
- // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
- // versions:
4
- // protoc-gen-ts_proto v2.7.0
5
- // protoc v6.31.1
6
- // source: google/protobuf/any.proto
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.Any = exports.protobufPackage = void 0;
9
- /* eslint-disable */
10
- const wire_1 = require("@bufbuild/protobuf/wire");
11
- exports.protobufPackage = "google.protobuf";
12
- function createBaseAny() {
13
- return { typeUrl: "", value: new Uint8Array(0) };
14
- }
15
- exports.Any = {
16
- encode(message, writer = new wire_1.BinaryWriter()) {
17
- if (message.typeUrl !== "") {
18
- writer.uint32(10).string(message.typeUrl);
19
- }
20
- if (message.value.length !== 0) {
21
- writer.uint32(18).bytes(message.value);
22
- }
23
- return writer;
24
- },
25
- decode(input, length) {
26
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
- let end = length === undefined ? reader.len : reader.pos + length;
28
- const message = createBaseAny();
29
- while (reader.pos < end) {
30
- const tag = reader.uint32();
31
- switch (tag >>> 3) {
32
- case 1: {
33
- if (tag !== 10) {
34
- break;
35
- }
36
- message.typeUrl = reader.string();
37
- continue;
38
- }
39
- case 2: {
40
- if (tag !== 18) {
41
- break;
42
- }
43
- message.value = reader.bytes();
44
- continue;
45
- }
46
- }
47
- if ((tag & 7) === 4 || tag === 0) {
48
- break;
49
- }
50
- reader.skip(tag & 7);
51
- }
52
- return message;
53
- },
54
- fromJSON(object) {
55
- return {
56
- typeUrl: isSet(object.typeUrl) ? globalThis.String(object.typeUrl) : "",
57
- value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(0),
58
- };
59
- },
60
- toJSON(message) {
61
- const obj = {};
62
- if (message.typeUrl !== "") {
63
- obj.typeUrl = message.typeUrl;
64
- }
65
- if (message.value.length !== 0) {
66
- obj.value = base64FromBytes(message.value);
67
- }
68
- return obj;
69
- },
70
- create(base) {
71
- return exports.Any.fromPartial(base !== null && base !== void 0 ? base : {});
72
- },
73
- fromPartial(object) {
74
- var _a, _b;
75
- const message = createBaseAny();
76
- message.typeUrl = (_a = object.typeUrl) !== null && _a !== void 0 ? _a : "";
77
- message.value = (_b = object.value) !== null && _b !== void 0 ? _b : new Uint8Array(0);
78
- return message;
79
- },
80
- };
81
- function bytesFromBase64(b64) {
82
- if (globalThis.Buffer) {
83
- return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
84
- }
85
- else {
86
- const bin = globalThis.atob(b64);
87
- const arr = new Uint8Array(bin.length);
88
- for (let i = 0; i < bin.length; ++i) {
89
- arr[i] = bin.charCodeAt(i);
90
- }
91
- return arr;
92
- }
93
- }
94
- function base64FromBytes(arr) {
95
- if (globalThis.Buffer) {
96
- return globalThis.Buffer.from(arr).toString("base64");
97
- }
98
- else {
99
- const bin = [];
100
- arr.forEach((byte) => {
101
- bin.push(globalThis.String.fromCharCode(byte));
102
- });
103
- return globalThis.btoa(bin.join(""));
104
- }
105
- }
106
- function isSet(value) {
107
- return value !== null && value !== undefined;
108
- }
@@ -1,265 +0,0 @@
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;
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,wBAAwB,EACxB,yBAAyB,EACzB,YAAY,EACZ,aAAa,EACb,qBAAqB,EACrB,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,EAC3B,iBAAiB,EACjB,kBAAkB,EAClB,UAAU,EACV,WAAW,EACX,kBAAkB,EAClB,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EACtB,uBAAuB,EACvB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,iBAAiB,EAClB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAE5D,OAAO,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AAGnD,qBAAa,aAAa;IACxB,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAS;IAC7B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAA+C;IACzE,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAc;gBAE1B,GAAG,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,MAAM,EAAE,cAAc,CAAC,EAAE,MAAM;IAcjE,eAAe,CACpB,OAAO,EAAE,gBAAgB,GACxB,OAAO,CAAC,iBAAiB,CAAC;IAyBtB,qBAAqB,CAC1B,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,uBAAuB,CAAC;IAyB5B,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAyBnE,iBAAiB,CACtB,OAA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