@sniipwebmaster/kyc-client-grpcweb 21.8.3

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,11 @@
1
+ This is the location of the generated grpcweb libraries
2
+
3
+ attachment_pb.js
4
+ attachment_grpc_web_pb.js
5
+
6
+
7
+ protoc -I=. ./proto/attachment.proto \
8
+ -I$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis \
9
+ --proto_path=$GOPATH/src/github.com/grpc-ecosystem/grpc-gateway/third_party/googleapis/google/api/ \
10
+ --js_out=import_style=commonjs:src \
11
+ --grpc-web_out=import_style=commonjs,mode=grpcwebtext:src
@@ -0,0 +1,5 @@
1
+ ## GENERATE JC GRPCWEB
2
+ cd $GOPATH/.go/src/github.com/golang/protobuf/ptypes/empty
3
+ protoc -I=. ./empty.proto \
4
+ --js_out=import_style=commonjs:. \
5
+ --grpc-web_out=import_style=commonjs,mode=grpcwebtext:.
@@ -0,0 +1,131 @@
1
+ /**
2
+ * @fileoverview
3
+ * @enhanceable
4
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
5
+ * field starts with 'MSG_' and isn't a translatable message.
6
+ * @public
7
+ */
8
+ // GENERATED CODE -- DO NOT EDIT!
9
+
10
+ var jspb = require('google-protobuf');
11
+ var goog = jspb;
12
+ var global = Function('return this')();
13
+
14
+ goog.exportSymbol('proto.google.protobuf.Empty', null, global);
15
+
16
+ /**
17
+ * Generated by JsPbCodeGenerator.
18
+ * @param {Array=} opt_data Optional initial data array, typically from a
19
+ * server response, or constructed directly in Javascript. The array is used
20
+ * in place and becomes part of the constructed object. It is not cloned.
21
+ * If no data is provided, the constructed object will be empty, but still
22
+ * valid.
23
+ * @extends {jspb.Message}
24
+ * @constructor
25
+ */
26
+ proto.google.protobuf.Empty = function(opt_data) {
27
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
28
+ };
29
+ goog.inherits(proto.google.protobuf.Empty, jspb.Message);
30
+ if (goog.DEBUG && !COMPILED) {
31
+ proto.google.protobuf.Empty.displayName = 'proto.google.protobuf.Empty';
32
+ }
33
+
34
+
35
+ if (jspb.Message.GENERATE_TO_OBJECT) {
36
+ /**
37
+ * Creates an object representation of this proto suitable for use in Soy templates.
38
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
39
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
40
+ * For the list of reserved names please see:
41
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
42
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
43
+ * for transitional soy proto support: http://goto/soy-param-migration
44
+ * @return {!Object}
45
+ */
46
+ proto.google.protobuf.Empty.prototype.toObject = function(opt_includeInstance) {
47
+ return proto.google.protobuf.Empty.toObject(opt_includeInstance, this);
48
+ };
49
+
50
+
51
+ /**
52
+ * Static version of the {@see toObject} method.
53
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
54
+ * instance for transitional soy proto support:
55
+ * http://goto/soy-param-migration
56
+ * @param {!proto.google.protobuf.Empty} msg The msg instance to transform.
57
+ * @return {!Object}
58
+ * @suppress {unusedLocalVariables} f is only used for nested messages
59
+ */
60
+ proto.google.protobuf.Empty.toObject = function(includeInstance, msg) {
61
+ var f, obj = {
62
+
63
+ };
64
+
65
+ if (includeInstance) {
66
+ obj.$jspbMessageInstance = msg;
67
+ }
68
+ return obj;
69
+ };
70
+ }
71
+
72
+
73
+ /**
74
+ * Deserializes binary data (in protobuf wire format).
75
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
76
+ * @return {!proto.google.protobuf.Empty}
77
+ */
78
+ proto.google.protobuf.Empty.deserializeBinary = function(bytes) {
79
+ var reader = new jspb.BinaryReader(bytes);
80
+ var msg = new proto.google.protobuf.Empty;
81
+ return proto.google.protobuf.Empty.deserializeBinaryFromReader(msg, reader);
82
+ };
83
+
84
+
85
+ /**
86
+ * Deserializes binary data (in protobuf wire format) from the
87
+ * given reader into the given message object.
88
+ * @param {!proto.google.protobuf.Empty} msg The message object to deserialize into.
89
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
90
+ * @return {!proto.google.protobuf.Empty}
91
+ */
92
+ proto.google.protobuf.Empty.deserializeBinaryFromReader = function(msg, reader) {
93
+ while (reader.nextField()) {
94
+ if (reader.isEndGroup()) {
95
+ break;
96
+ }
97
+ var field = reader.getFieldNumber();
98
+ switch (field) {
99
+ default:
100
+ reader.skipField();
101
+ break;
102
+ }
103
+ }
104
+ return msg;
105
+ };
106
+
107
+
108
+ /**
109
+ * Serializes the message to binary data (in protobuf wire format).
110
+ * @return {!Uint8Array}
111
+ */
112
+ proto.google.protobuf.Empty.prototype.serializeBinary = function() {
113
+ var writer = new jspb.BinaryWriter();
114
+ proto.google.protobuf.Empty.serializeBinaryToWriter(this, writer);
115
+ return writer.getResultBuffer();
116
+ };
117
+
118
+
119
+ /**
120
+ * Serializes the given message to binary data (in protobuf wire
121
+ * format), writing to the given BinaryWriter.
122
+ * @param {!proto.google.protobuf.Empty} message
123
+ * @param {!jspb.BinaryWriter} writer
124
+ * @suppress {unusedLocalVariables} f is only used for nested messages
125
+ */
126
+ proto.google.protobuf.Empty.serializeBinaryToWriter = function(message, writer) {
127
+ var f = undefined;
128
+ };
129
+
130
+
131
+ goog.object.extend(exports, proto.google.protobuf);
@@ -0,0 +1,204 @@
1
+ /**
2
+ * @fileoverview gRPC-Web generated client stub for kycserviceapi
3
+ * @enhanceable
4
+ * @public
5
+ */
6
+
7
+ // GENERATED CODE -- DO NOT EDIT!
8
+
9
+
10
+
11
+ const grpc = {};
12
+ grpc.web = require('grpc-web');
13
+
14
+
15
+ var google_api_annotations_pb = require('./google/api/annotations_pb.js')
16
+
17
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js')
18
+ const proto = {};
19
+ proto.kycserviceapi = require('./service_pb.js');
20
+
21
+ /**
22
+ * @param {string} hostname
23
+ * @param {?Object} credentials
24
+ * @param {?Object} options
25
+ * @constructor
26
+ * @struct
27
+ * @final
28
+ */
29
+ proto.kycserviceapi.KYCServiceAPIServiceClient =
30
+ function(hostname, credentials, options) {
31
+ if (!options) options = {};
32
+ options['format'] = 'text';
33
+
34
+ /**
35
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
36
+ */
37
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
38
+
39
+ /**
40
+ * @private @const {string} The hostname
41
+ */
42
+ this.hostname_ = hostname;
43
+
44
+ /**
45
+ * @private @const {?Object} The credentials to be used to connect
46
+ * to the server
47
+ */
48
+ this.credentials_ = credentials;
49
+
50
+ /**
51
+ * @private @const {?Object} Options for the client
52
+ */
53
+ this.options_ = options;
54
+ };
55
+
56
+
57
+ /**
58
+ * @param {string} hostname
59
+ * @param {?Object} credentials
60
+ * @param {?Object} options
61
+ * @constructor
62
+ * @struct
63
+ * @final
64
+ */
65
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient =
66
+ function(hostname, credentials, options) {
67
+ if (!options) options = {};
68
+ options['format'] = 'text';
69
+
70
+ /**
71
+ * @private @const {!grpc.web.GrpcWebClientBase} The client
72
+ */
73
+ this.client_ = new grpc.web.GrpcWebClientBase(options);
74
+
75
+ /**
76
+ * @private @const {string} The hostname
77
+ */
78
+ this.hostname_ = hostname;
79
+
80
+ /**
81
+ * @private @const {?Object} The credentials to be used to connect
82
+ * to the server
83
+ */
84
+ this.credentials_ = credentials;
85
+
86
+ /**
87
+ * @private @const {?Object} Options for the client
88
+ */
89
+ this.options_ = options;
90
+ };
91
+
92
+
93
+ /**
94
+ * @const
95
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
96
+ * !proto.google.protobuf.Empty,
97
+ * !proto.kycserviceapi.ResponseCode>}
98
+ */
99
+ const methodInfo_KYCServiceAPIService_HealthCheck = new grpc.web.AbstractClientBase.MethodInfo(
100
+ proto.kycserviceapi.ResponseCode,
101
+ /** @param {!proto.google.protobuf.Empty} request */
102
+ function(request) {
103
+ return request.serializeBinary();
104
+ },
105
+ proto.kycserviceapi.ResponseCode.deserializeBinary
106
+ );
107
+
108
+
109
+ /**
110
+ * @param {!proto.google.protobuf.Empty} request The
111
+ * request proto
112
+ * @param {?Object<string, string>} metadata User defined
113
+ * call metadata
114
+ * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
115
+ * callback The callback function(error, response)
116
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
117
+ * The XHR Node Readable Stream
118
+ */
119
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.healthCheck =
120
+ function(request, metadata, callback) {
121
+ return this.client_.rpcCall(this.hostname_ +
122
+ '/kycserviceapi.KYCServiceAPIService/HealthCheck',
123
+ request,
124
+ metadata || {},
125
+ methodInfo_KYCServiceAPIService_HealthCheck,
126
+ callback);
127
+ };
128
+
129
+
130
+ /**
131
+ * @param {!proto.google.protobuf.Empty} request The
132
+ * request proto
133
+ * @param {?Object<string, string>} metadata User defined
134
+ * call metadata
135
+ * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
136
+ * A native promise that resolves to the response
137
+ */
138
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.healthCheck =
139
+ function(request, metadata) {
140
+ return this.client_.unaryCall(this.hostname_ +
141
+ '/kycserviceapi.KYCServiceAPIService/HealthCheck',
142
+ request,
143
+ metadata || {},
144
+ methodInfo_KYCServiceAPIService_HealthCheck);
145
+ };
146
+
147
+
148
+ /**
149
+ * @const
150
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
151
+ * !proto.kycserviceapi.RequestUserKycRequest,
152
+ * !proto.kycserviceapi.ResponseCode>}
153
+ */
154
+ const methodInfo_KYCServiceAPIService_RequestUserKyc = new grpc.web.AbstractClientBase.MethodInfo(
155
+ proto.kycserviceapi.ResponseCode,
156
+ /** @param {!proto.kycserviceapi.RequestUserKycRequest} request */
157
+ function(request) {
158
+ return request.serializeBinary();
159
+ },
160
+ proto.kycserviceapi.ResponseCode.deserializeBinary
161
+ );
162
+
163
+
164
+ /**
165
+ * @param {!proto.kycserviceapi.RequestUserKycRequest} request The
166
+ * request proto
167
+ * @param {?Object<string, string>} metadata User defined
168
+ * call metadata
169
+ * @param {function(?grpc.web.Error, ?proto.kycserviceapi.ResponseCode)}
170
+ * callback The callback function(error, response)
171
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.ResponseCode>|undefined}
172
+ * The XHR Node Readable Stream
173
+ */
174
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.requestUserKyc =
175
+ function(request, metadata, callback) {
176
+ return this.client_.rpcCall(this.hostname_ +
177
+ '/kycserviceapi.KYCServiceAPIService/RequestUserKyc',
178
+ request,
179
+ metadata || {},
180
+ methodInfo_KYCServiceAPIService_RequestUserKyc,
181
+ callback);
182
+ };
183
+
184
+
185
+ /**
186
+ * @param {!proto.kycserviceapi.RequestUserKycRequest} request The
187
+ * request proto
188
+ * @param {?Object<string, string>} metadata User defined
189
+ * call metadata
190
+ * @return {!Promise<!proto.kycserviceapi.ResponseCode>}
191
+ * A native promise that resolves to the response
192
+ */
193
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.requestUserKyc =
194
+ function(request, metadata) {
195
+ return this.client_.unaryCall(this.hostname_ +
196
+ '/kycserviceapi.KYCServiceAPIService/RequestUserKyc',
197
+ request,
198
+ metadata || {},
199
+ methodInfo_KYCServiceAPIService_RequestUserKyc);
200
+ };
201
+
202
+
203
+ module.exports = proto.kycserviceapi;
204
+