@sniipwebmaster/kyc-client-grpcweb 21.8.17 → 21.8.31

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.
@@ -90,6 +90,61 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient =
90
90
  };
91
91
 
92
92
 
93
+ /**
94
+ * @const
95
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
96
+ * !proto.kycserviceapi.GetDocumentRequest,
97
+ * !proto.kycserviceapi.DocumentResponse>}
98
+ */
99
+ const methodInfo_KYCServiceAPIService_GetDocument = new grpc.web.AbstractClientBase.MethodInfo(
100
+ proto.kycserviceapi.DocumentResponse,
101
+ /** @param {!proto.kycserviceapi.GetDocumentRequest} request */
102
+ function(request) {
103
+ return request.serializeBinary();
104
+ },
105
+ proto.kycserviceapi.DocumentResponse.deserializeBinary
106
+ );
107
+
108
+
109
+ /**
110
+ * @param {!proto.kycserviceapi.GetDocumentRequest} request The
111
+ * request proto
112
+ * @param {?Object<string, string>} metadata User defined
113
+ * call metadata
114
+ * @param {function(?grpc.web.Error, ?proto.kycserviceapi.DocumentResponse)}
115
+ * callback The callback function(error, response)
116
+ * @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.DocumentResponse>|undefined}
117
+ * The XHR Node Readable Stream
118
+ */
119
+ proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getDocument =
120
+ function(request, metadata, callback) {
121
+ return this.client_.rpcCall(this.hostname_ +
122
+ '/kycserviceapi.KYCServiceAPIService/GetDocument',
123
+ request,
124
+ metadata || {},
125
+ methodInfo_KYCServiceAPIService_GetDocument,
126
+ callback);
127
+ };
128
+
129
+
130
+ /**
131
+ * @param {!proto.kycserviceapi.GetDocumentRequest} request The
132
+ * request proto
133
+ * @param {?Object<string, string>} metadata User defined
134
+ * call metadata
135
+ * @return {!Promise<!proto.kycserviceapi.DocumentResponse>}
136
+ * A native promise that resolves to the response
137
+ */
138
+ proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.getDocument =
139
+ function(request, metadata) {
140
+ return this.client_.unaryCall(this.hostname_ +
141
+ '/kycserviceapi.KYCServiceAPIService/GetDocument',
142
+ request,
143
+ metadata || {},
144
+ methodInfo_KYCServiceAPIService_GetDocument);
145
+ };
146
+
147
+
93
148
  /**
94
149
  * @const
95
150
  * @type {!grpc.web.AbstractClientBase.MethodInfo<