@sniipwebmaster/bill-service-client-grpcweb 26.11.15933 → 26.11.15951

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.
@@ -2457,6 +2457,67 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.linkAnonymousBill
2457
2457
  };
2458
2458
 
2459
2459
 
2460
+ /**
2461
+ * @const
2462
+ * @type {!grpc.web.MethodDescriptor<
2463
+ * !proto.sniipbillapi.TakeOverGuestBillRequest,
2464
+ * !proto.sniipbillapi.LinkedAnomymousBillResponse>}
2465
+ */
2466
+ const methodDescriptor_SniipBillAPIService_TakeOverGuestBill = new grpc.web.MethodDescriptor(
2467
+ '/sniipbillapi.SniipBillAPIService/TakeOverGuestBill',
2468
+ grpc.web.MethodType.UNARY,
2469
+ proto.sniipbillapi.TakeOverGuestBillRequest,
2470
+ proto.sniipbillapi.LinkedAnomymousBillResponse,
2471
+ /**
2472
+ * @param {!proto.sniipbillapi.TakeOverGuestBillRequest} request
2473
+ * @return {!Uint8Array}
2474
+ */
2475
+ function(request) {
2476
+ return request.serializeBinary();
2477
+ },
2478
+ proto.sniipbillapi.LinkedAnomymousBillResponse.deserializeBinary
2479
+ );
2480
+
2481
+
2482
+ /**
2483
+ * @param {!proto.sniipbillapi.TakeOverGuestBillRequest} request The
2484
+ * request proto
2485
+ * @param {?Object<string, string>} metadata User defined
2486
+ * call metadata
2487
+ * @param {function(?grpc.web.RpcError, ?proto.sniipbillapi.LinkedAnomymousBillResponse)}
2488
+ * callback The callback function(error, response)
2489
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.LinkedAnomymousBillResponse>|undefined}
2490
+ * The XHR Node Readable Stream
2491
+ */
2492
+ proto.sniipbillapi.SniipBillAPIServiceClient.prototype.takeOverGuestBill =
2493
+ function(request, metadata, callback) {
2494
+ return this.client_.rpcCall(this.hostname_ +
2495
+ '/sniipbillapi.SniipBillAPIService/TakeOverGuestBill',
2496
+ request,
2497
+ metadata || {},
2498
+ methodDescriptor_SniipBillAPIService_TakeOverGuestBill,
2499
+ callback);
2500
+ };
2501
+
2502
+
2503
+ /**
2504
+ * @param {!proto.sniipbillapi.TakeOverGuestBillRequest} request The
2505
+ * request proto
2506
+ * @param {?Object<string, string>=} metadata User defined
2507
+ * call metadata
2508
+ * @return {!Promise<!proto.sniipbillapi.LinkedAnomymousBillResponse>}
2509
+ * Promise that resolves to the response
2510
+ */
2511
+ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.takeOverGuestBill =
2512
+ function(request, metadata) {
2513
+ return this.client_.unaryCall(this.hostname_ +
2514
+ '/sniipbillapi.SniipBillAPIService/TakeOverGuestBill',
2515
+ request,
2516
+ metadata || {},
2517
+ methodDescriptor_SniipBillAPIService_TakeOverGuestBill);
2518
+ };
2519
+
2520
+
2460
2521
  /**
2461
2522
  * @const
2462
2523
  * @type {!grpc.web.MethodDescriptor<
@@ -177,6 +177,7 @@ goog.exportSymbol('proto.sniipbillapi.ShareBillEmailRequest', null, global);
177
177
  goog.exportSymbol('proto.sniipbillapi.SimpleBillDetail', null, global);
178
178
  goog.exportSymbol('proto.sniipbillapi.SimpleBillResponse', null, global);
179
179
  goog.exportSymbol('proto.sniipbillapi.SmeBillerReviewBillDetails', null, global);
180
+ goog.exportSymbol('proto.sniipbillapi.TakeOverGuestBillRequest', null, global);
180
181
  goog.exportSymbol('proto.sniipbillapi.ToDoList', null, global);
181
182
  goog.exportSymbol('proto.sniipbillapi.ToDoList.DataMessage', null, global);
182
183
  goog.exportSymbol('proto.sniipbillapi.TodoFilter', null, global);
@@ -2628,6 +2629,27 @@ if (goog.DEBUG && !COMPILED) {
2628
2629
  */
2629
2630
  proto.sniipbillapi.LinkedAnomymousBillResponse.displayName = 'proto.sniipbillapi.LinkedAnomymousBillResponse';
2630
2631
  }
2632
+ /**
2633
+ * Generated by JsPbCodeGenerator.
2634
+ * @param {Array=} opt_data Optional initial data array, typically from a
2635
+ * server response, or constructed directly in Javascript. The array is used
2636
+ * in place and becomes part of the constructed object. It is not cloned.
2637
+ * If no data is provided, the constructed object will be empty, but still
2638
+ * valid.
2639
+ * @extends {jspb.Message}
2640
+ * @constructor
2641
+ */
2642
+ proto.sniipbillapi.TakeOverGuestBillRequest = function(opt_data) {
2643
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2644
+ };
2645
+ goog.inherits(proto.sniipbillapi.TakeOverGuestBillRequest, jspb.Message);
2646
+ if (goog.DEBUG && !COMPILED) {
2647
+ /**
2648
+ * @public
2649
+ * @override
2650
+ */
2651
+ proto.sniipbillapi.TakeOverGuestBillRequest.displayName = 'proto.sniipbillapi.TakeOverGuestBillRequest';
2652
+ }
2631
2653
  /**
2632
2654
  * Generated by JsPbCodeGenerator.
2633
2655
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -34768,6 +34790,166 @@ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.setObjecttype = functio
34768
34790
 
34769
34791
 
34770
34792
 
34793
+ if (jspb.Message.GENERATE_TO_OBJECT) {
34794
+ /**
34795
+ * Creates an object representation of this proto.
34796
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
34797
+ * Optional fields that are not set will be set to undefined.
34798
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
34799
+ * For the list of reserved names please see:
34800
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
34801
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
34802
+ * JSPB instance for transitional soy proto support:
34803
+ * http://goto/soy-param-migration
34804
+ * @return {!Object}
34805
+ */
34806
+ proto.sniipbillapi.TakeOverGuestBillRequest.prototype.toObject = function(opt_includeInstance) {
34807
+ return proto.sniipbillapi.TakeOverGuestBillRequest.toObject(opt_includeInstance, this);
34808
+ };
34809
+
34810
+
34811
+ /**
34812
+ * Static version of the {@see toObject} method.
34813
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
34814
+ * the JSPB instance for transitional soy proto support:
34815
+ * http://goto/soy-param-migration
34816
+ * @param {!proto.sniipbillapi.TakeOverGuestBillRequest} msg The msg instance to transform.
34817
+ * @return {!Object}
34818
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34819
+ */
34820
+ proto.sniipbillapi.TakeOverGuestBillRequest.toObject = function(includeInstance, msg) {
34821
+ var f, obj = {
34822
+ billid: jspb.Message.getFieldWithDefault(msg, 1, 0),
34823
+ readtoken: jspb.Message.getFieldWithDefault(msg, 2, "")
34824
+ };
34825
+
34826
+ if (includeInstance) {
34827
+ obj.$jspbMessageInstance = msg;
34828
+ }
34829
+ return obj;
34830
+ };
34831
+ }
34832
+
34833
+
34834
+ /**
34835
+ * Deserializes binary data (in protobuf wire format).
34836
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
34837
+ * @return {!proto.sniipbillapi.TakeOverGuestBillRequest}
34838
+ */
34839
+ proto.sniipbillapi.TakeOverGuestBillRequest.deserializeBinary = function(bytes) {
34840
+ var reader = new jspb.BinaryReader(bytes);
34841
+ var msg = new proto.sniipbillapi.TakeOverGuestBillRequest;
34842
+ return proto.sniipbillapi.TakeOverGuestBillRequest.deserializeBinaryFromReader(msg, reader);
34843
+ };
34844
+
34845
+
34846
+ /**
34847
+ * Deserializes binary data (in protobuf wire format) from the
34848
+ * given reader into the given message object.
34849
+ * @param {!proto.sniipbillapi.TakeOverGuestBillRequest} msg The message object to deserialize into.
34850
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
34851
+ * @return {!proto.sniipbillapi.TakeOverGuestBillRequest}
34852
+ */
34853
+ proto.sniipbillapi.TakeOverGuestBillRequest.deserializeBinaryFromReader = function(msg, reader) {
34854
+ while (reader.nextField()) {
34855
+ if (reader.isEndGroup()) {
34856
+ break;
34857
+ }
34858
+ var field = reader.getFieldNumber();
34859
+ switch (field) {
34860
+ case 1:
34861
+ var value = /** @type {number} */ (reader.readInt64());
34862
+ msg.setBillid(value);
34863
+ break;
34864
+ case 2:
34865
+ var value = /** @type {string} */ (reader.readString());
34866
+ msg.setReadtoken(value);
34867
+ break;
34868
+ default:
34869
+ reader.skipField();
34870
+ break;
34871
+ }
34872
+ }
34873
+ return msg;
34874
+ };
34875
+
34876
+
34877
+ /**
34878
+ * Serializes the message to binary data (in protobuf wire format).
34879
+ * @return {!Uint8Array}
34880
+ */
34881
+ proto.sniipbillapi.TakeOverGuestBillRequest.prototype.serializeBinary = function() {
34882
+ var writer = new jspb.BinaryWriter();
34883
+ proto.sniipbillapi.TakeOverGuestBillRequest.serializeBinaryToWriter(this, writer);
34884
+ return writer.getResultBuffer();
34885
+ };
34886
+
34887
+
34888
+ /**
34889
+ * Serializes the given message to binary data (in protobuf wire
34890
+ * format), writing to the given BinaryWriter.
34891
+ * @param {!proto.sniipbillapi.TakeOverGuestBillRequest} message
34892
+ * @param {!jspb.BinaryWriter} writer
34893
+ * @suppress {unusedLocalVariables} f is only used for nested messages
34894
+ */
34895
+ proto.sniipbillapi.TakeOverGuestBillRequest.serializeBinaryToWriter = function(message, writer) {
34896
+ var f = undefined;
34897
+ f = message.getBillid();
34898
+ if (f !== 0) {
34899
+ writer.writeInt64(
34900
+ 1,
34901
+ f
34902
+ );
34903
+ }
34904
+ f = message.getReadtoken();
34905
+ if (f.length > 0) {
34906
+ writer.writeString(
34907
+ 2,
34908
+ f
34909
+ );
34910
+ }
34911
+ };
34912
+
34913
+
34914
+ /**
34915
+ * optional int64 billId = 1;
34916
+ * @return {number}
34917
+ */
34918
+ proto.sniipbillapi.TakeOverGuestBillRequest.prototype.getBillid = function() {
34919
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
34920
+ };
34921
+
34922
+
34923
+ /**
34924
+ * @param {number} value
34925
+ * @return {!proto.sniipbillapi.TakeOverGuestBillRequest} returns this
34926
+ */
34927
+ proto.sniipbillapi.TakeOverGuestBillRequest.prototype.setBillid = function(value) {
34928
+ return jspb.Message.setProto3IntField(this, 1, value);
34929
+ };
34930
+
34931
+
34932
+ /**
34933
+ * optional string readToken = 2;
34934
+ * @return {string}
34935
+ */
34936
+ proto.sniipbillapi.TakeOverGuestBillRequest.prototype.getReadtoken = function() {
34937
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
34938
+ };
34939
+
34940
+
34941
+ /**
34942
+ * @param {string} value
34943
+ * @return {!proto.sniipbillapi.TakeOverGuestBillRequest} returns this
34944
+ */
34945
+ proto.sniipbillapi.TakeOverGuestBillRequest.prototype.setReadtoken = function(value) {
34946
+ return jspb.Message.setProto3StringField(this, 2, value);
34947
+ };
34948
+
34949
+
34950
+
34951
+
34952
+
34771
34953
  if (jspb.Message.GENERATE_TO_OBJECT) {
34772
34954
  /**
34773
34955
  * 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.11.15933",
3
+ "version": "26.11.15951",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",