skyeye-sdk-js 1.4.15 → 1.4.16
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/src/SkyEyeClient.d.ts +1 -1
- package/dist/src/SkyEyeClient.js +8 -6
- package/dist/test.js +15 -397
- package/package.json +1 -1
- package/src/SkyEyeClient.ts +8 -6
- package/src/proto/line_chart_pb.js +681 -681
- package/src/proto/protoc.bat +4 -4
- package/src/proto/skyeye_rpc_grpc_pb.js +99 -99
- package/src/proto/skyeye_rpc_pb.js +328 -328
- package/test.ts +21 -476
- package/dist/src/proto/line_chart.proto +0 -25
- package/dist/src/proto/line_chart_grpc_pb.js +0 -1
- package/dist/src/proto/line_chart_pb.js +0 -681
- package/dist/src/proto/protoc.bat +0 -37
- package/dist/src/proto/protoc.sh +0 -32
- package/dist/src/proto/skyeye_rpc.proto +0 -16
- package/dist/src/proto/skyeye_rpc_grpc_pb.js +0 -99
- package/dist/src/proto/skyeye_rpc_pb.d.ts +0 -47
- package/dist/src/proto/skyeye_rpc_pb.js +0 -328
- package/dist/src/proto/tsconfig.json +0 -118
- package/dist/test.dat +0 -0
- package/test.dat +0 -0
- package/test_111.dat +0 -0
package/dist/src/proto/protoc.sh
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env bash
|
|
2
|
-
|
|
3
|
-
BASEDIR=$(dirname "$0")
|
|
4
|
-
cd "${BASEDIR}"/../
|
|
5
|
-
|
|
6
|
-
PROTOC_GEN_TS_PATH="./node_modules/.bin/protoc-gen-ts"
|
|
7
|
-
GRPC_TOOLS_NODE_PROTOC_PLUGIN="./node_modules/.bin/grpc_tools_node_protoc_plugin"
|
|
8
|
-
GRPC_TOOLS_NODE_PROTOC="./node_modules/.bin/grpc_tools_node_protoc"
|
|
9
|
-
|
|
10
|
-
for f in ./src/proto/*; do
|
|
11
|
-
|
|
12
|
-
# skip the non proto files
|
|
13
|
-
if [ "$(basename "$f")" == "index.ts" ]; then
|
|
14
|
-
continue
|
|
15
|
-
fi
|
|
16
|
-
|
|
17
|
-
# loop over all the available proto files and compile them into respective dir
|
|
18
|
-
# JavaScript code generating
|
|
19
|
-
${GRPC_TOOLS_NODE_PROTOC} \
|
|
20
|
-
--js_out=import_style=commonjs,binary:"${f}" \
|
|
21
|
-
--grpc_out="${f}" \
|
|
22
|
-
--plugin=protoc-gen-grpc="${GRPC_TOOLS_NODE_PROTOC_PLUGIN}" \
|
|
23
|
-
-I "${f}" \
|
|
24
|
-
"${f}"/*.proto
|
|
25
|
-
|
|
26
|
-
${GRPC_TOOLS_NODE_PROTOC} \
|
|
27
|
-
--plugin=protoc-gen-ts="${PROTOC_GEN_TS_PATH}" \
|
|
28
|
-
--ts_out="${f}" \
|
|
29
|
-
-I "${f}" \
|
|
30
|
-
"${f}"/*.proto
|
|
31
|
-
|
|
32
|
-
done
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
service JSONTransmission {
|
|
4
|
-
rpc CallSkyEye (JSONRequest) returns (JSONResponse){}
|
|
5
|
-
rpc SkyEyeLogReport (JSONRequest) returns (stream JSONResponse){};
|
|
6
|
-
rpc RunTestcase (JSONRequest) returns (stream JSONResponse){};
|
|
7
|
-
rpc Monitor (JSONRequest) returns (stream JSONResponse){};
|
|
8
|
-
rpc stopRunTest (JSONRequest) returns (stream JSONResponse){};
|
|
9
|
-
rpc TimeDataReceive (JSONRequest) returns (stream JSONResponse){};
|
|
10
|
-
}
|
|
11
|
-
message JSONRequest {
|
|
12
|
-
string request = 1;
|
|
13
|
-
}
|
|
14
|
-
message JSONResponse {
|
|
15
|
-
string response = 1;
|
|
16
|
-
}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
2
|
-
|
|
3
|
-
'use strict';
|
|
4
|
-
var grpc = require('@grpc/grpc-js');
|
|
5
|
-
var skyeye_rpc_pb = require('./skyeye_rpc_pb.js');
|
|
6
|
-
|
|
7
|
-
function serialize_JSONRequest(arg) {
|
|
8
|
-
if (!(arg instanceof skyeye_rpc_pb.JSONRequest)) {
|
|
9
|
-
throw new Error('Expected argument of type JSONRequest');
|
|
10
|
-
}
|
|
11
|
-
return Buffer.from(arg.serializeBinary());
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
function deserialize_JSONRequest(buffer_arg) {
|
|
15
|
-
return skyeye_rpc_pb.JSONRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
function serialize_JSONResponse(arg) {
|
|
19
|
-
if (!(arg instanceof skyeye_rpc_pb.JSONResponse)) {
|
|
20
|
-
throw new Error('Expected argument of type JSONResponse');
|
|
21
|
-
}
|
|
22
|
-
return Buffer.from(arg.serializeBinary());
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
function deserialize_JSONResponse(buffer_arg) {
|
|
26
|
-
return skyeye_rpc_pb.JSONResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var JSONTransmissionService = exports.JSONTransmissionService = {
|
|
31
|
-
callSkyEye: {
|
|
32
|
-
path: '/JSONTransmission/CallSkyEye',
|
|
33
|
-
requestStream: false,
|
|
34
|
-
responseStream: false,
|
|
35
|
-
requestType: skyeye_rpc_pb.JSONRequest,
|
|
36
|
-
responseType: skyeye_rpc_pb.JSONResponse,
|
|
37
|
-
requestSerialize: serialize_JSONRequest,
|
|
38
|
-
requestDeserialize: deserialize_JSONRequest,
|
|
39
|
-
responseSerialize: serialize_JSONResponse,
|
|
40
|
-
responseDeserialize: deserialize_JSONResponse,
|
|
41
|
-
},
|
|
42
|
-
skyEyeLogReport: {
|
|
43
|
-
path: '/JSONTransmission/SkyEyeLogReport',
|
|
44
|
-
requestStream: false,
|
|
45
|
-
responseStream: true,
|
|
46
|
-
requestType: skyeye_rpc_pb.JSONRequest,
|
|
47
|
-
responseType: skyeye_rpc_pb.JSONResponse,
|
|
48
|
-
requestSerialize: serialize_JSONRequest,
|
|
49
|
-
requestDeserialize: deserialize_JSONRequest,
|
|
50
|
-
responseSerialize: serialize_JSONResponse,
|
|
51
|
-
responseDeserialize: deserialize_JSONResponse,
|
|
52
|
-
},
|
|
53
|
-
runTestcase: {
|
|
54
|
-
path: '/JSONTransmission/RunTestcase',
|
|
55
|
-
requestStream: false,
|
|
56
|
-
responseStream: true,
|
|
57
|
-
requestType: skyeye_rpc_pb.JSONRequest,
|
|
58
|
-
responseType: skyeye_rpc_pb.JSONResponse,
|
|
59
|
-
requestSerialize: serialize_JSONRequest,
|
|
60
|
-
requestDeserialize: deserialize_JSONRequest,
|
|
61
|
-
responseSerialize: serialize_JSONResponse,
|
|
62
|
-
responseDeserialize: deserialize_JSONResponse,
|
|
63
|
-
},
|
|
64
|
-
monitor: {
|
|
65
|
-
path: '/JSONTransmission/Monitor',
|
|
66
|
-
requestStream: false,
|
|
67
|
-
responseStream: true,
|
|
68
|
-
requestType: skyeye_rpc_pb.JSONRequest,
|
|
69
|
-
responseType: skyeye_rpc_pb.JSONResponse,
|
|
70
|
-
requestSerialize: serialize_JSONRequest,
|
|
71
|
-
requestDeserialize: deserialize_JSONRequest,
|
|
72
|
-
responseSerialize: serialize_JSONResponse,
|
|
73
|
-
responseDeserialize: deserialize_JSONResponse,
|
|
74
|
-
},
|
|
75
|
-
stopRunTest: {
|
|
76
|
-
path: '/JSONTransmission/stopRunTest',
|
|
77
|
-
requestStream: false,
|
|
78
|
-
responseStream: true,
|
|
79
|
-
requestType: skyeye_rpc_pb.JSONRequest,
|
|
80
|
-
responseType: skyeye_rpc_pb.JSONResponse,
|
|
81
|
-
requestSerialize: serialize_JSONRequest,
|
|
82
|
-
requestDeserialize: deserialize_JSONRequest,
|
|
83
|
-
responseSerialize: serialize_JSONResponse,
|
|
84
|
-
responseDeserialize: deserialize_JSONResponse,
|
|
85
|
-
},
|
|
86
|
-
timeDataReceive: {
|
|
87
|
-
path: '/JSONTransmission/TimeDataReceive',
|
|
88
|
-
requestStream: false,
|
|
89
|
-
responseStream: true,
|
|
90
|
-
requestType: skyeye_rpc_pb.JSONRequest,
|
|
91
|
-
responseType: skyeye_rpc_pb.JSONResponse,
|
|
92
|
-
requestSerialize: serialize_JSONRequest,
|
|
93
|
-
requestDeserialize: deserialize_JSONRequest,
|
|
94
|
-
responseSerialize: serialize_JSONResponse,
|
|
95
|
-
responseDeserialize: deserialize_JSONResponse,
|
|
96
|
-
},
|
|
97
|
-
};
|
|
98
|
-
|
|
99
|
-
exports.JSONTransmissionClient = grpc.makeGenericClientConstructor(JSONTransmissionService);
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
// package:
|
|
2
|
-
// file: skyeye_rpc.proto
|
|
3
|
-
|
|
4
|
-
/* tslint:disable */
|
|
5
|
-
/* eslint-disable */
|
|
6
|
-
|
|
7
|
-
import * as jspb from "google-protobuf";
|
|
8
|
-
|
|
9
|
-
export class JSONRequest extends jspb.Message {
|
|
10
|
-
getRequest(): string;
|
|
11
|
-
setRequest(value: string): JSONRequest;
|
|
12
|
-
|
|
13
|
-
serializeBinary(): Uint8Array;
|
|
14
|
-
toObject(includeInstance?: boolean): JSONRequest.AsObject;
|
|
15
|
-
static toObject(includeInstance: boolean, msg: JSONRequest): JSONRequest.AsObject;
|
|
16
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
17
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
18
|
-
static serializeBinaryToWriter(message: JSONRequest, writer: jspb.BinaryWriter): void;
|
|
19
|
-
static deserializeBinary(bytes: Uint8Array): JSONRequest;
|
|
20
|
-
static deserializeBinaryFromReader(message: JSONRequest, reader: jspb.BinaryReader): JSONRequest;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export namespace JSONRequest {
|
|
24
|
-
export type AsObject = {
|
|
25
|
-
request: string,
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export class JSONResponse extends jspb.Message {
|
|
30
|
-
getResponse(): string;
|
|
31
|
-
setResponse(value: string): JSONResponse;
|
|
32
|
-
|
|
33
|
-
serializeBinary(): Uint8Array;
|
|
34
|
-
toObject(includeInstance?: boolean): JSONResponse.AsObject;
|
|
35
|
-
static toObject(includeInstance: boolean, msg: JSONResponse): JSONResponse.AsObject;
|
|
36
|
-
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
37
|
-
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
38
|
-
static serializeBinaryToWriter(message: JSONResponse, writer: jspb.BinaryWriter): void;
|
|
39
|
-
static deserializeBinary(bytes: Uint8Array): JSONResponse;
|
|
40
|
-
static deserializeBinaryFromReader(message: JSONResponse, reader: jspb.BinaryReader): JSONResponse;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
export namespace JSONResponse {
|
|
44
|
-
export type AsObject = {
|
|
45
|
-
response: string,
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,328 +0,0 @@
|
|
|
1
|
-
// source: skyeye_rpc.proto
|
|
2
|
-
/**
|
|
3
|
-
* @fileoverview
|
|
4
|
-
* @enhanceable
|
|
5
|
-
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
-
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
-
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
-
/* eslint-disable */
|
|
12
|
-
// @ts-nocheck
|
|
13
|
-
|
|
14
|
-
var jspb = require('google-protobuf');
|
|
15
|
-
var goog = jspb;
|
|
16
|
-
var global = (function() {
|
|
17
|
-
if (this) { return this; }
|
|
18
|
-
if (typeof window !== 'undefined') { return window; }
|
|
19
|
-
if (typeof global !== 'undefined') { return global; }
|
|
20
|
-
if (typeof self !== 'undefined') { return self; }
|
|
21
|
-
return Function('return this')();
|
|
22
|
-
}.call(null));
|
|
23
|
-
|
|
24
|
-
goog.exportSymbol('proto.JSONRequest', null, global);
|
|
25
|
-
goog.exportSymbol('proto.JSONResponse', null, global);
|
|
26
|
-
/**
|
|
27
|
-
* Generated by JsPbCodeGenerator.
|
|
28
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
29
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
30
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
31
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
32
|
-
* valid.
|
|
33
|
-
* @extends {jspb.Message}
|
|
34
|
-
* @constructor
|
|
35
|
-
*/
|
|
36
|
-
proto.JSONRequest = function(opt_data) {
|
|
37
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
38
|
-
};
|
|
39
|
-
goog.inherits(proto.JSONRequest, jspb.Message);
|
|
40
|
-
if (goog.DEBUG && !COMPILED) {
|
|
41
|
-
/**
|
|
42
|
-
* @public
|
|
43
|
-
* @override
|
|
44
|
-
*/
|
|
45
|
-
proto.JSONRequest.displayName = 'proto.JSONRequest';
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Generated by JsPbCodeGenerator.
|
|
49
|
-
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
50
|
-
* server response, or constructed directly in Javascript. The array is used
|
|
51
|
-
* in place and becomes part of the constructed object. It is not cloned.
|
|
52
|
-
* If no data is provided, the constructed object will be empty, but still
|
|
53
|
-
* valid.
|
|
54
|
-
* @extends {jspb.Message}
|
|
55
|
-
* @constructor
|
|
56
|
-
*/
|
|
57
|
-
proto.JSONResponse = function(opt_data) {
|
|
58
|
-
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
59
|
-
};
|
|
60
|
-
goog.inherits(proto.JSONResponse, jspb.Message);
|
|
61
|
-
if (goog.DEBUG && !COMPILED) {
|
|
62
|
-
/**
|
|
63
|
-
* @public
|
|
64
|
-
* @override
|
|
65
|
-
*/
|
|
66
|
-
proto.JSONResponse.displayName = 'proto.JSONResponse';
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
72
|
-
/**
|
|
73
|
-
* Creates an object representation of this proto.
|
|
74
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
75
|
-
* Optional fields that are not set will be set to undefined.
|
|
76
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
77
|
-
* For the list of reserved names please see:
|
|
78
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
79
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
80
|
-
* JSPB instance for transitional soy proto support:
|
|
81
|
-
* http://goto/soy-param-migration
|
|
82
|
-
* @return {!Object}
|
|
83
|
-
*/
|
|
84
|
-
proto.JSONRequest.prototype.toObject = function(opt_includeInstance) {
|
|
85
|
-
return proto.JSONRequest.toObject(opt_includeInstance, this);
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* Static version of the {@see toObject} method.
|
|
91
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
92
|
-
* the JSPB instance for transitional soy proto support:
|
|
93
|
-
* http://goto/soy-param-migration
|
|
94
|
-
* @param {!proto.JSONRequest} msg The msg instance to transform.
|
|
95
|
-
* @return {!Object}
|
|
96
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
97
|
-
*/
|
|
98
|
-
proto.JSONRequest.toObject = function(includeInstance, msg) {
|
|
99
|
-
var f, obj = {
|
|
100
|
-
request: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
if (includeInstance) {
|
|
104
|
-
obj.$jspbMessageInstance = msg;
|
|
105
|
-
}
|
|
106
|
-
return obj;
|
|
107
|
-
};
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
/**
|
|
112
|
-
* Deserializes binary data (in protobuf wire format).
|
|
113
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
114
|
-
* @return {!proto.JSONRequest}
|
|
115
|
-
*/
|
|
116
|
-
proto.JSONRequest.deserializeBinary = function(bytes) {
|
|
117
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
118
|
-
var msg = new proto.JSONRequest;
|
|
119
|
-
return proto.JSONRequest.deserializeBinaryFromReader(msg, reader);
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
125
|
-
* given reader into the given message object.
|
|
126
|
-
* @param {!proto.JSONRequest} msg The message object to deserialize into.
|
|
127
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
128
|
-
* @return {!proto.JSONRequest}
|
|
129
|
-
*/
|
|
130
|
-
proto.JSONRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
131
|
-
while (reader.nextField()) {
|
|
132
|
-
if (reader.isEndGroup()) {
|
|
133
|
-
break;
|
|
134
|
-
}
|
|
135
|
-
var field = reader.getFieldNumber();
|
|
136
|
-
switch (field) {
|
|
137
|
-
case 1:
|
|
138
|
-
var value = /** @type {string} */ (reader.readString());
|
|
139
|
-
msg.setRequest(value);
|
|
140
|
-
break;
|
|
141
|
-
default:
|
|
142
|
-
reader.skipField();
|
|
143
|
-
break;
|
|
144
|
-
}
|
|
145
|
-
}
|
|
146
|
-
return msg;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
152
|
-
* @return {!Uint8Array}
|
|
153
|
-
*/
|
|
154
|
-
proto.JSONRequest.prototype.serializeBinary = function() {
|
|
155
|
-
var writer = new jspb.BinaryWriter();
|
|
156
|
-
proto.JSONRequest.serializeBinaryToWriter(this, writer);
|
|
157
|
-
return writer.getResultBuffer();
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
163
|
-
* format), writing to the given BinaryWriter.
|
|
164
|
-
* @param {!proto.JSONRequest} message
|
|
165
|
-
* @param {!jspb.BinaryWriter} writer
|
|
166
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
167
|
-
*/
|
|
168
|
-
proto.JSONRequest.serializeBinaryToWriter = function(message, writer) {
|
|
169
|
-
var f = undefined;
|
|
170
|
-
f = message.getRequest();
|
|
171
|
-
if (f.length > 0) {
|
|
172
|
-
writer.writeString(
|
|
173
|
-
1,
|
|
174
|
-
f
|
|
175
|
-
);
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* optional string request = 1;
|
|
182
|
-
* @return {string}
|
|
183
|
-
*/
|
|
184
|
-
proto.JSONRequest.prototype.getRequest = function() {
|
|
185
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
186
|
-
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
/**
|
|
190
|
-
* @param {string} value
|
|
191
|
-
* @return {!proto.JSONRequest} returns this
|
|
192
|
-
*/
|
|
193
|
-
proto.JSONRequest.prototype.setRequest = function(value) {
|
|
194
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
195
|
-
};
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
202
|
-
/**
|
|
203
|
-
* Creates an object representation of this proto.
|
|
204
|
-
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
205
|
-
* Optional fields that are not set will be set to undefined.
|
|
206
|
-
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
207
|
-
* For the list of reserved names please see:
|
|
208
|
-
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
209
|
-
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
210
|
-
* JSPB instance for transitional soy proto support:
|
|
211
|
-
* http://goto/soy-param-migration
|
|
212
|
-
* @return {!Object}
|
|
213
|
-
*/
|
|
214
|
-
proto.JSONResponse.prototype.toObject = function(opt_includeInstance) {
|
|
215
|
-
return proto.JSONResponse.toObject(opt_includeInstance, this);
|
|
216
|
-
};
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
/**
|
|
220
|
-
* Static version of the {@see toObject} method.
|
|
221
|
-
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
222
|
-
* the JSPB instance for transitional soy proto support:
|
|
223
|
-
* http://goto/soy-param-migration
|
|
224
|
-
* @param {!proto.JSONResponse} msg The msg instance to transform.
|
|
225
|
-
* @return {!Object}
|
|
226
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
227
|
-
*/
|
|
228
|
-
proto.JSONResponse.toObject = function(includeInstance, msg) {
|
|
229
|
-
var f, obj = {
|
|
230
|
-
response: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
if (includeInstance) {
|
|
234
|
-
obj.$jspbMessageInstance = msg;
|
|
235
|
-
}
|
|
236
|
-
return obj;
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
/**
|
|
242
|
-
* Deserializes binary data (in protobuf wire format).
|
|
243
|
-
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
244
|
-
* @return {!proto.JSONResponse}
|
|
245
|
-
*/
|
|
246
|
-
proto.JSONResponse.deserializeBinary = function(bytes) {
|
|
247
|
-
var reader = new jspb.BinaryReader(bytes);
|
|
248
|
-
var msg = new proto.JSONResponse;
|
|
249
|
-
return proto.JSONResponse.deserializeBinaryFromReader(msg, reader);
|
|
250
|
-
};
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
/**
|
|
254
|
-
* Deserializes binary data (in protobuf wire format) from the
|
|
255
|
-
* given reader into the given message object.
|
|
256
|
-
* @param {!proto.JSONResponse} msg The message object to deserialize into.
|
|
257
|
-
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
258
|
-
* @return {!proto.JSONResponse}
|
|
259
|
-
*/
|
|
260
|
-
proto.JSONResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
261
|
-
while (reader.nextField()) {
|
|
262
|
-
if (reader.isEndGroup()) {
|
|
263
|
-
break;
|
|
264
|
-
}
|
|
265
|
-
var field = reader.getFieldNumber();
|
|
266
|
-
switch (field) {
|
|
267
|
-
case 1:
|
|
268
|
-
var value = /** @type {string} */ (reader.readString());
|
|
269
|
-
msg.setResponse(value);
|
|
270
|
-
break;
|
|
271
|
-
default:
|
|
272
|
-
reader.skipField();
|
|
273
|
-
break;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
return msg;
|
|
277
|
-
};
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
/**
|
|
281
|
-
* Serializes the message to binary data (in protobuf wire format).
|
|
282
|
-
* @return {!Uint8Array}
|
|
283
|
-
*/
|
|
284
|
-
proto.JSONResponse.prototype.serializeBinary = function() {
|
|
285
|
-
var writer = new jspb.BinaryWriter();
|
|
286
|
-
proto.JSONResponse.serializeBinaryToWriter(this, writer);
|
|
287
|
-
return writer.getResultBuffer();
|
|
288
|
-
};
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
/**
|
|
292
|
-
* Serializes the given message to binary data (in protobuf wire
|
|
293
|
-
* format), writing to the given BinaryWriter.
|
|
294
|
-
* @param {!proto.JSONResponse} message
|
|
295
|
-
* @param {!jspb.BinaryWriter} writer
|
|
296
|
-
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
297
|
-
*/
|
|
298
|
-
proto.JSONResponse.serializeBinaryToWriter = function(message, writer) {
|
|
299
|
-
var f = undefined;
|
|
300
|
-
f = message.getResponse();
|
|
301
|
-
if (f.length > 0) {
|
|
302
|
-
writer.writeString(
|
|
303
|
-
1,
|
|
304
|
-
f
|
|
305
|
-
);
|
|
306
|
-
}
|
|
307
|
-
};
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
/**
|
|
311
|
-
* optional string response = 1;
|
|
312
|
-
* @return {string}
|
|
313
|
-
*/
|
|
314
|
-
proto.JSONResponse.prototype.getResponse = function() {
|
|
315
|
-
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
316
|
-
};
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
/**
|
|
320
|
-
* @param {string} value
|
|
321
|
-
* @return {!proto.JSONResponse} returns this
|
|
322
|
-
*/
|
|
323
|
-
proto.JSONResponse.prototype.setResponse = function(value) {
|
|
324
|
-
return jspb.Message.setProto3StringField(this, 1, value);
|
|
325
|
-
};
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
goog.object.extend(exports, proto);
|
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "./dist/",
|
|
4
|
-
"module": "commonjs",
|
|
5
|
-
"noImplicitAny": true,
|
|
6
|
-
"allowJs": true,
|
|
7
|
-
"esModuleInterop": true,
|
|
8
|
-
"target": "es6",
|
|
9
|
-
"sourceMap": true,
|
|
10
|
-
/* Visit https://aka.ms/tsconfig to read more about this file */
|
|
11
|
-
|
|
12
|
-
/* Projects */
|
|
13
|
-
// "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */
|
|
14
|
-
// "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */
|
|
15
|
-
// "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */
|
|
16
|
-
// "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */
|
|
17
|
-
// "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */
|
|
18
|
-
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
|
19
|
-
|
|
20
|
-
/* Language and Environment */
|
|
21
|
-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
|
22
|
-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
|
23
|
-
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
|
24
|
-
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
|
25
|
-
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
|
26
|
-
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
|
27
|
-
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
|
|
28
|
-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
|
|
29
|
-
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
|
30
|
-
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
|
31
|
-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
|
|
32
|
-
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
|
33
|
-
|
|
34
|
-
/* Modules */
|
|
35
|
-
"module": "commonjs", /* Specify what module code is generated. */
|
|
36
|
-
// "rootDir": "./", /* Specify the root folder within your source files. */
|
|
37
|
-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
|
|
38
|
-
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
|
|
39
|
-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
|
|
40
|
-
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
|
41
|
-
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
|
|
42
|
-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
|
|
43
|
-
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
|
44
|
-
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
|
45
|
-
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
46
|
-
// "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */
|
|
47
|
-
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
|
48
|
-
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
|
49
|
-
// "resolveJsonModule": true, /* Enable importing .json files. */
|
|
50
|
-
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
|
51
|
-
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
|
52
|
-
|
|
53
|
-
/* JavaScript Support */
|
|
54
|
-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
|
|
55
|
-
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
|
56
|
-
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
|
57
|
-
|
|
58
|
-
/* Emit */
|
|
59
|
-
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
|
60
|
-
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
|
61
|
-
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
|
|
62
|
-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
|
|
63
|
-
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
|
|
64
|
-
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
|
|
65
|
-
// "outDir": "./", /* Specify an output folder for all emitted files. */
|
|
66
|
-
// "removeComments": true, /* Disable emitting comments. */
|
|
67
|
-
// "noEmit": true, /* Disable emitting files from a compilation. */
|
|
68
|
-
// "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
|
|
69
|
-
// "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
|
|
70
|
-
// "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
|
|
71
|
-
// "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
|
|
72
|
-
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
|
|
73
|
-
// "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */
|
|
74
|
-
// "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */
|
|
75
|
-
// "newLine": "crlf", /* Set the newline character for emitting files. */
|
|
76
|
-
// "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */
|
|
77
|
-
// "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */
|
|
78
|
-
// "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */
|
|
79
|
-
// "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */
|
|
80
|
-
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
|
81
|
-
// "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */
|
|
82
|
-
|
|
83
|
-
/* Interop Constraints */
|
|
84
|
-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
|
|
85
|
-
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
|
|
86
|
-
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
87
|
-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */
|
|
88
|
-
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
|
|
89
|
-
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
|
|
90
|
-
|
|
91
|
-
/* Type Checking */
|
|
92
|
-
"strict": true, /* Enable all strict type-checking options. */
|
|
93
|
-
// "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */
|
|
94
|
-
// "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */
|
|
95
|
-
// "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */
|
|
96
|
-
// "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */
|
|
97
|
-
// "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */
|
|
98
|
-
// "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */
|
|
99
|
-
// "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */
|
|
100
|
-
// "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */
|
|
101
|
-
// "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */
|
|
102
|
-
// "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */
|
|
103
|
-
// "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */
|
|
104
|
-
// "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */
|
|
105
|
-
// "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */
|
|
106
|
-
// "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */
|
|
107
|
-
// "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */
|
|
108
|
-
// "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */
|
|
109
|
-
// "allowUnusedLabels": true, /* Disable error reporting for unused labels. */
|
|
110
|
-
// "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */
|
|
111
|
-
|
|
112
|
-
/* Completeness */
|
|
113
|
-
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
|
114
|
-
"skipLibCheck": true /* Skip type checking all .d.ts files. */
|
|
115
|
-
},
|
|
116
|
-
"include": ["./src/**/*"],
|
|
117
|
-
"exclude": ["node_modules"]
|
|
118
|
-
}
|
package/dist/test.dat
DELETED
|
Binary file
|
package/test.dat
DELETED
|
Binary file
|
package/test_111.dat
DELETED
|
Binary file
|