@sniipwebmaster/bill-service-client-grpcweb 26.8.15560 → 26.8.15581

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.
@@ -1176,6 +1176,67 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getBillDetails =
1176
1176
  };
1177
1177
 
1178
1178
 
1179
+ /**
1180
+ * @const
1181
+ * @type {!grpc.web.MethodDescriptor<
1182
+ * !proto.sniipbillapi.GetBillDetailsByTokenRequest,
1183
+ * !proto.sniipbillapi.BillDetailsResponse>}
1184
+ */
1185
+ const methodDescriptor_SniipBillAPIService_GetBillDetailsByToken = new grpc.web.MethodDescriptor(
1186
+ '/sniipbillapi.SniipBillAPIService/GetBillDetailsByToken',
1187
+ grpc.web.MethodType.UNARY,
1188
+ proto.sniipbillapi.GetBillDetailsByTokenRequest,
1189
+ proto.sniipbillapi.BillDetailsResponse,
1190
+ /**
1191
+ * @param {!proto.sniipbillapi.GetBillDetailsByTokenRequest} request
1192
+ * @return {!Uint8Array}
1193
+ */
1194
+ function(request) {
1195
+ return request.serializeBinary();
1196
+ },
1197
+ proto.sniipbillapi.BillDetailsResponse.deserializeBinary
1198
+ );
1199
+
1200
+
1201
+ /**
1202
+ * @param {!proto.sniipbillapi.GetBillDetailsByTokenRequest} request The
1203
+ * request proto
1204
+ * @param {?Object<string, string>} metadata User defined
1205
+ * call metadata
1206
+ * @param {function(?grpc.web.RpcError, ?proto.sniipbillapi.BillDetailsResponse)}
1207
+ * callback The callback function(error, response)
1208
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.BillDetailsResponse>|undefined}
1209
+ * The XHR Node Readable Stream
1210
+ */
1211
+ proto.sniipbillapi.SniipBillAPIServiceClient.prototype.getBillDetailsByToken =
1212
+ function(request, metadata, callback) {
1213
+ return this.client_.rpcCall(this.hostname_ +
1214
+ '/sniipbillapi.SniipBillAPIService/GetBillDetailsByToken',
1215
+ request,
1216
+ metadata || {},
1217
+ methodDescriptor_SniipBillAPIService_GetBillDetailsByToken,
1218
+ callback);
1219
+ };
1220
+
1221
+
1222
+ /**
1223
+ * @param {!proto.sniipbillapi.GetBillDetailsByTokenRequest} request The
1224
+ * request proto
1225
+ * @param {?Object<string, string>=} metadata User defined
1226
+ * call metadata
1227
+ * @return {!Promise<!proto.sniipbillapi.BillDetailsResponse>}
1228
+ * Promise that resolves to the response
1229
+ */
1230
+ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getBillDetailsByToken =
1231
+ function(request, metadata) {
1232
+ return this.client_.unaryCall(this.hostname_ +
1233
+ '/sniipbillapi.SniipBillAPIService/GetBillDetailsByToken',
1234
+ request,
1235
+ metadata || {},
1236
+ methodDescriptor_SniipBillAPIService_GetBillDetailsByToken);
1237
+ };
1238
+
1239
+
1179
1240
  /**
1180
1241
  * @const
1181
1242
  * @type {!grpc.web.MethodDescriptor<
@@ -107,6 +107,7 @@ goog.exportSymbol('proto.sniipbillapi.GetBadgeCountRequest', null, global);
107
107
  goog.exportSymbol('proto.sniipbillapi.GetBillAttachmentsByBillConfigIdsRequest', null, global);
108
108
  goog.exportSymbol('proto.sniipbillapi.GetBillByBillConfigIdRequest', null, global);
109
109
  goog.exportSymbol('proto.sniipbillapi.GetBillConfigsByBillIdsRequest', null, global);
110
+ goog.exportSymbol('proto.sniipbillapi.GetBillDetailsByTokenRequest', null, global);
110
111
  goog.exportSymbol('proto.sniipbillapi.GetBillDetailsRequest', null, global);
111
112
  goog.exportSymbol('proto.sniipbillapi.GetBillSummaryForUserDashboardInternalRequest', null, global);
112
113
  goog.exportSymbol('proto.sniipbillapi.GetBillsByBillerIdAndUserIdRequest', null, global);
@@ -2039,6 +2040,27 @@ if (goog.DEBUG && !COMPILED) {
2039
2040
  */
2040
2041
  proto.sniipbillapi.GetBillDetailsRequest.displayName = 'proto.sniipbillapi.GetBillDetailsRequest';
2041
2042
  }
2043
+ /**
2044
+ * Generated by JsPbCodeGenerator.
2045
+ * @param {Array=} opt_data Optional initial data array, typically from a
2046
+ * server response, or constructed directly in Javascript. The array is used
2047
+ * in place and becomes part of the constructed object. It is not cloned.
2048
+ * If no data is provided, the constructed object will be empty, but still
2049
+ * valid.
2050
+ * @extends {jspb.Message}
2051
+ * @constructor
2052
+ */
2053
+ proto.sniipbillapi.GetBillDetailsByTokenRequest = function(opt_data) {
2054
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2055
+ };
2056
+ goog.inherits(proto.sniipbillapi.GetBillDetailsByTokenRequest, jspb.Message);
2057
+ if (goog.DEBUG && !COMPILED) {
2058
+ /**
2059
+ * @public
2060
+ * @override
2061
+ */
2062
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.displayName = 'proto.sniipbillapi.GetBillDetailsByTokenRequest';
2063
+ }
2042
2064
  /**
2043
2065
  * Generated by JsPbCodeGenerator.
2044
2066
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -28757,6 +28779,166 @@ proto.sniipbillapi.GetBillDetailsRequest.prototype.hasData = function() {
28757
28779
 
28758
28780
 
28759
28781
 
28782
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28783
+ /**
28784
+ * Creates an object representation of this proto.
28785
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28786
+ * Optional fields that are not set will be set to undefined.
28787
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28788
+ * For the list of reserved names please see:
28789
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28790
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28791
+ * JSPB instance for transitional soy proto support:
28792
+ * http://goto/soy-param-migration
28793
+ * @return {!Object}
28794
+ */
28795
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.prototype.toObject = function(opt_includeInstance) {
28796
+ return proto.sniipbillapi.GetBillDetailsByTokenRequest.toObject(opt_includeInstance, this);
28797
+ };
28798
+
28799
+
28800
+ /**
28801
+ * Static version of the {@see toObject} method.
28802
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28803
+ * the JSPB instance for transitional soy proto support:
28804
+ * http://goto/soy-param-migration
28805
+ * @param {!proto.sniipbillapi.GetBillDetailsByTokenRequest} msg The msg instance to transform.
28806
+ * @return {!Object}
28807
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28808
+ */
28809
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.toObject = function(includeInstance, msg) {
28810
+ var f, obj = {
28811
+ billid: jspb.Message.getFieldWithDefault(msg, 1, 0),
28812
+ readtoken: jspb.Message.getFieldWithDefault(msg, 2, "")
28813
+ };
28814
+
28815
+ if (includeInstance) {
28816
+ obj.$jspbMessageInstance = msg;
28817
+ }
28818
+ return obj;
28819
+ };
28820
+ }
28821
+
28822
+
28823
+ /**
28824
+ * Deserializes binary data (in protobuf wire format).
28825
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28826
+ * @return {!proto.sniipbillapi.GetBillDetailsByTokenRequest}
28827
+ */
28828
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.deserializeBinary = function(bytes) {
28829
+ var reader = new jspb.BinaryReader(bytes);
28830
+ var msg = new proto.sniipbillapi.GetBillDetailsByTokenRequest;
28831
+ return proto.sniipbillapi.GetBillDetailsByTokenRequest.deserializeBinaryFromReader(msg, reader);
28832
+ };
28833
+
28834
+
28835
+ /**
28836
+ * Deserializes binary data (in protobuf wire format) from the
28837
+ * given reader into the given message object.
28838
+ * @param {!proto.sniipbillapi.GetBillDetailsByTokenRequest} msg The message object to deserialize into.
28839
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28840
+ * @return {!proto.sniipbillapi.GetBillDetailsByTokenRequest}
28841
+ */
28842
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.deserializeBinaryFromReader = function(msg, reader) {
28843
+ while (reader.nextField()) {
28844
+ if (reader.isEndGroup()) {
28845
+ break;
28846
+ }
28847
+ var field = reader.getFieldNumber();
28848
+ switch (field) {
28849
+ case 1:
28850
+ var value = /** @type {number} */ (reader.readInt64());
28851
+ msg.setBillid(value);
28852
+ break;
28853
+ case 2:
28854
+ var value = /** @type {string} */ (reader.readString());
28855
+ msg.setReadtoken(value);
28856
+ break;
28857
+ default:
28858
+ reader.skipField();
28859
+ break;
28860
+ }
28861
+ }
28862
+ return msg;
28863
+ };
28864
+
28865
+
28866
+ /**
28867
+ * Serializes the message to binary data (in protobuf wire format).
28868
+ * @return {!Uint8Array}
28869
+ */
28870
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.prototype.serializeBinary = function() {
28871
+ var writer = new jspb.BinaryWriter();
28872
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.serializeBinaryToWriter(this, writer);
28873
+ return writer.getResultBuffer();
28874
+ };
28875
+
28876
+
28877
+ /**
28878
+ * Serializes the given message to binary data (in protobuf wire
28879
+ * format), writing to the given BinaryWriter.
28880
+ * @param {!proto.sniipbillapi.GetBillDetailsByTokenRequest} message
28881
+ * @param {!jspb.BinaryWriter} writer
28882
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28883
+ */
28884
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.serializeBinaryToWriter = function(message, writer) {
28885
+ var f = undefined;
28886
+ f = message.getBillid();
28887
+ if (f !== 0) {
28888
+ writer.writeInt64(
28889
+ 1,
28890
+ f
28891
+ );
28892
+ }
28893
+ f = message.getReadtoken();
28894
+ if (f.length > 0) {
28895
+ writer.writeString(
28896
+ 2,
28897
+ f
28898
+ );
28899
+ }
28900
+ };
28901
+
28902
+
28903
+ /**
28904
+ * optional int64 billId = 1;
28905
+ * @return {number}
28906
+ */
28907
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.prototype.getBillid = function() {
28908
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
28909
+ };
28910
+
28911
+
28912
+ /**
28913
+ * @param {number} value
28914
+ * @return {!proto.sniipbillapi.GetBillDetailsByTokenRequest} returns this
28915
+ */
28916
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.prototype.setBillid = function(value) {
28917
+ return jspb.Message.setProto3IntField(this, 1, value);
28918
+ };
28919
+
28920
+
28921
+ /**
28922
+ * optional string readToken = 2;
28923
+ * @return {string}
28924
+ */
28925
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.prototype.getReadtoken = function() {
28926
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28927
+ };
28928
+
28929
+
28930
+ /**
28931
+ * @param {string} value
28932
+ * @return {!proto.sniipbillapi.GetBillDetailsByTokenRequest} returns this
28933
+ */
28934
+ proto.sniipbillapi.GetBillDetailsByTokenRequest.prototype.setReadtoken = function(value) {
28935
+ return jspb.Message.setProto3StringField(this, 2, value);
28936
+ };
28937
+
28938
+
28939
+
28940
+
28941
+
28760
28942
  if (jspb.Message.GENERATE_TO_OBJECT) {
28761
28943
  /**
28762
28944
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "26.8.15560",
3
+ "version": "26.8.15581",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",