@sniipwebmaster/bill-service-client-grpcweb 22.3.8216 → 22.4.8247

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.
@@ -1274,6 +1274,86 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getBillDetails =
1274
1274
  };
1275
1275
 
1276
1276
 
1277
+ /**
1278
+ * @const
1279
+ * @type {!grpc.web.MethodDescriptor<
1280
+ * !proto.google.protobuf.Empty,
1281
+ * !proto.sniipbillapi.BillsSummaryResponse>}
1282
+ */
1283
+ const methodDescriptor_SniipBillAPIService_GetBillSummaryForUserDashboard = new grpc.web.MethodDescriptor(
1284
+ '/sniipbillapi.SniipBillAPIService/GetBillSummaryForUserDashboard',
1285
+ grpc.web.MethodType.UNARY,
1286
+ google_protobuf_empty_pb.Empty,
1287
+ proto.sniipbillapi.BillsSummaryResponse,
1288
+ /**
1289
+ * @param {!proto.google.protobuf.Empty} request
1290
+ * @return {!Uint8Array}
1291
+ */
1292
+ function(request) {
1293
+ return request.serializeBinary();
1294
+ },
1295
+ proto.sniipbillapi.BillsSummaryResponse.deserializeBinary
1296
+ );
1297
+
1298
+
1299
+ /**
1300
+ * @const
1301
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
1302
+ * !proto.google.protobuf.Empty,
1303
+ * !proto.sniipbillapi.BillsSummaryResponse>}
1304
+ */
1305
+ const methodInfo_SniipBillAPIService_GetBillSummaryForUserDashboard = new grpc.web.AbstractClientBase.MethodInfo(
1306
+ proto.sniipbillapi.BillsSummaryResponse,
1307
+ /**
1308
+ * @param {!proto.google.protobuf.Empty} request
1309
+ * @return {!Uint8Array}
1310
+ */
1311
+ function(request) {
1312
+ return request.serializeBinary();
1313
+ },
1314
+ proto.sniipbillapi.BillsSummaryResponse.deserializeBinary
1315
+ );
1316
+
1317
+
1318
+ /**
1319
+ * @param {!proto.google.protobuf.Empty} request The
1320
+ * request proto
1321
+ * @param {?Object<string, string>} metadata User defined
1322
+ * call metadata
1323
+ * @param {function(?grpc.web.Error, ?proto.sniipbillapi.BillsSummaryResponse)}
1324
+ * callback The callback function(error, response)
1325
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.BillsSummaryResponse>|undefined}
1326
+ * The XHR Node Readable Stream
1327
+ */
1328
+ proto.sniipbillapi.SniipBillAPIServiceClient.prototype.getBillSummaryForUserDashboard =
1329
+ function(request, metadata, callback) {
1330
+ return this.client_.rpcCall(this.hostname_ +
1331
+ '/sniipbillapi.SniipBillAPIService/GetBillSummaryForUserDashboard',
1332
+ request,
1333
+ metadata || {},
1334
+ methodDescriptor_SniipBillAPIService_GetBillSummaryForUserDashboard,
1335
+ callback);
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * @param {!proto.google.protobuf.Empty} request The
1341
+ * request proto
1342
+ * @param {?Object<string, string>} metadata User defined
1343
+ * call metadata
1344
+ * @return {!Promise<!proto.sniipbillapi.BillsSummaryResponse>}
1345
+ * Promise that resolves to the response
1346
+ */
1347
+ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getBillSummaryForUserDashboard =
1348
+ function(request, metadata) {
1349
+ return this.client_.unaryCall(this.hostname_ +
1350
+ '/sniipbillapi.SniipBillAPIService/GetBillSummaryForUserDashboard',
1351
+ request,
1352
+ metadata || {},
1353
+ methodDescriptor_SniipBillAPIService_GetBillSummaryForUserDashboard);
1354
+ };
1355
+
1356
+
1277
1357
  /**
1278
1358
  * @const
1279
1359
  * @type {!grpc.web.MethodDescriptor<
@@ -38,6 +38,7 @@ goog.exportSymbol('proto.sniipbillapi.BillsCreateRequest', null, global);
38
38
  goog.exportSymbol('proto.sniipbillapi.BillsCreateResponse', null, global);
39
39
  goog.exportSymbol('proto.sniipbillapi.BillsRequest', null, global);
40
40
  goog.exportSymbol('proto.sniipbillapi.BillsResponse', null, global);
41
+ goog.exportSymbol('proto.sniipbillapi.BillsSummaryResponse', null, global);
41
42
  goog.exportSymbol('proto.sniipbillapi.BlockedOrganisation', null, global);
42
43
  goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserRequest', null, global);
43
44
  goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserResponse', null, global);
@@ -8420,6 +8421,348 @@ proto.sniipbillapi.BillsResponse.prototype.hasResponsecode = function() {
8420
8421
 
8421
8422
 
8422
8423
 
8424
+ /**
8425
+ * Generated by JsPbCodeGenerator.
8426
+ * @param {Array=} opt_data Optional initial data array, typically from a
8427
+ * server response, or constructed directly in Javascript. The array is used
8428
+ * in place and becomes part of the constructed object. It is not cloned.
8429
+ * If no data is provided, the constructed object will be empty, but still
8430
+ * valid.
8431
+ * @extends {jspb.Message}
8432
+ * @constructor
8433
+ */
8434
+ proto.sniipbillapi.BillsSummaryResponse = function(opt_data) {
8435
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
8436
+ };
8437
+ goog.inherits(proto.sniipbillapi.BillsSummaryResponse, jspb.Message);
8438
+ if (goog.DEBUG && !COMPILED) {
8439
+ proto.sniipbillapi.BillsSummaryResponse.displayName = 'proto.sniipbillapi.BillsSummaryResponse';
8440
+ }
8441
+
8442
+
8443
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8444
+ /**
8445
+ * Creates an object representation of this proto suitable for use in Soy templates.
8446
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8447
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8448
+ * For the list of reserved names please see:
8449
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
8450
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
8451
+ * for transitional soy proto support: http://goto/soy-param-migration
8452
+ * @return {!Object}
8453
+ */
8454
+ proto.sniipbillapi.BillsSummaryResponse.prototype.toObject = function(opt_includeInstance) {
8455
+ return proto.sniipbillapi.BillsSummaryResponse.toObject(opt_includeInstance, this);
8456
+ };
8457
+
8458
+
8459
+ /**
8460
+ * Static version of the {@see toObject} method.
8461
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
8462
+ * instance for transitional soy proto support:
8463
+ * http://goto/soy-param-migration
8464
+ * @param {!proto.sniipbillapi.BillsSummaryResponse} msg The msg instance to transform.
8465
+ * @return {!Object}
8466
+ */
8467
+ proto.sniipbillapi.BillsSummaryResponse.toObject = function(includeInstance, msg) {
8468
+ var f, obj = {
8469
+ responsecode: (f = msg.getResponsecode()) && proto.sniipbillapi.ResponseCode.toObject(includeInstance, f),
8470
+ totalbillstoreview: msg.getTotalbillstoreview(),
8471
+ totalamounttoreview: msg.getTotalamounttoreview(),
8472
+ totalbillstopay: msg.getTotalbillstopay(),
8473
+ totalamounttopay: msg.getTotalamounttopay(),
8474
+ shownewuserstate: msg.getShownewuserstate(),
8475
+ showgoodjobstate: msg.getShowgoodjobstate()
8476
+ };
8477
+
8478
+ if (includeInstance) {
8479
+ obj.$jspbMessageInstance = msg;
8480
+ }
8481
+ return obj;
8482
+ };
8483
+ }
8484
+
8485
+
8486
+ /**
8487
+ * Deserializes binary data (in protobuf wire format).
8488
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8489
+ * @return {!proto.sniipbillapi.BillsSummaryResponse}
8490
+ */
8491
+ proto.sniipbillapi.BillsSummaryResponse.deserializeBinary = function(bytes) {
8492
+ var reader = new jspb.BinaryReader(bytes);
8493
+ var msg = new proto.sniipbillapi.BillsSummaryResponse;
8494
+ return proto.sniipbillapi.BillsSummaryResponse.deserializeBinaryFromReader(msg, reader);
8495
+ };
8496
+
8497
+
8498
+ /**
8499
+ * Deserializes binary data (in protobuf wire format) from the
8500
+ * given reader into the given message object.
8501
+ * @param {!proto.sniipbillapi.BillsSummaryResponse} msg The message object to deserialize into.
8502
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8503
+ * @return {!proto.sniipbillapi.BillsSummaryResponse}
8504
+ */
8505
+ proto.sniipbillapi.BillsSummaryResponse.deserializeBinaryFromReader = function(msg, reader) {
8506
+ while (reader.nextField()) {
8507
+ if (reader.isEndGroup()) {
8508
+ break;
8509
+ }
8510
+ var field = reader.getFieldNumber();
8511
+ switch (field) {
8512
+ case 1:
8513
+ var value = new proto.sniipbillapi.ResponseCode;
8514
+ reader.readMessage(value,proto.sniipbillapi.ResponseCode.deserializeBinaryFromReader);
8515
+ msg.setResponsecode(value);
8516
+ break;
8517
+ case 2:
8518
+ var value = /** @type {number} */ (reader.readInt32());
8519
+ msg.setTotalbillstoreview(value);
8520
+ break;
8521
+ case 3:
8522
+ var value = /** @type {number} */ (reader.readDouble());
8523
+ msg.setTotalamounttoreview(value);
8524
+ break;
8525
+ case 4:
8526
+ var value = /** @type {number} */ (reader.readInt32());
8527
+ msg.setTotalbillstopay(value);
8528
+ break;
8529
+ case 5:
8530
+ var value = /** @type {number} */ (reader.readDouble());
8531
+ msg.setTotalamounttopay(value);
8532
+ break;
8533
+ case 6:
8534
+ var value = /** @type {boolean} */ (reader.readBool());
8535
+ msg.setShownewuserstate(value);
8536
+ break;
8537
+ case 7:
8538
+ var value = /** @type {boolean} */ (reader.readBool());
8539
+ msg.setShowgoodjobstate(value);
8540
+ break;
8541
+ default:
8542
+ reader.skipField();
8543
+ break;
8544
+ }
8545
+ }
8546
+ return msg;
8547
+ };
8548
+
8549
+
8550
+ /**
8551
+ * Class method variant: serializes the given message to binary data
8552
+ * (in protobuf wire format), writing to the given BinaryWriter.
8553
+ * @param {!proto.sniipbillapi.BillsSummaryResponse} message
8554
+ * @param {!jspb.BinaryWriter} writer
8555
+ */
8556
+ proto.sniipbillapi.BillsSummaryResponse.serializeBinaryToWriter = function(message, writer) {
8557
+ message.serializeBinaryToWriter(writer);
8558
+ };
8559
+
8560
+
8561
+ /**
8562
+ * Serializes the message to binary data (in protobuf wire format).
8563
+ * @return {!Uint8Array}
8564
+ */
8565
+ proto.sniipbillapi.BillsSummaryResponse.prototype.serializeBinary = function() {
8566
+ var writer = new jspb.BinaryWriter();
8567
+ this.serializeBinaryToWriter(writer);
8568
+ return writer.getResultBuffer();
8569
+ };
8570
+
8571
+
8572
+ /**
8573
+ * Serializes the message to binary data (in protobuf wire format),
8574
+ * writing to the given BinaryWriter.
8575
+ * @param {!jspb.BinaryWriter} writer
8576
+ */
8577
+ proto.sniipbillapi.BillsSummaryResponse.prototype.serializeBinaryToWriter = function (writer) {
8578
+ var f = undefined;
8579
+ f = this.getResponsecode();
8580
+ if (f != null) {
8581
+ writer.writeMessage(
8582
+ 1,
8583
+ f,
8584
+ proto.sniipbillapi.ResponseCode.serializeBinaryToWriter
8585
+ );
8586
+ }
8587
+ f = this.getTotalbillstoreview();
8588
+ if (f !== 0) {
8589
+ writer.writeInt32(
8590
+ 2,
8591
+ f
8592
+ );
8593
+ }
8594
+ f = this.getTotalamounttoreview();
8595
+ if (f !== 0.0) {
8596
+ writer.writeDouble(
8597
+ 3,
8598
+ f
8599
+ );
8600
+ }
8601
+ f = this.getTotalbillstopay();
8602
+ if (f !== 0) {
8603
+ writer.writeInt32(
8604
+ 4,
8605
+ f
8606
+ );
8607
+ }
8608
+ f = this.getTotalamounttopay();
8609
+ if (f !== 0.0) {
8610
+ writer.writeDouble(
8611
+ 5,
8612
+ f
8613
+ );
8614
+ }
8615
+ f = this.getShownewuserstate();
8616
+ if (f) {
8617
+ writer.writeBool(
8618
+ 6,
8619
+ f
8620
+ );
8621
+ }
8622
+ f = this.getShowgoodjobstate();
8623
+ if (f) {
8624
+ writer.writeBool(
8625
+ 7,
8626
+ f
8627
+ );
8628
+ }
8629
+ };
8630
+
8631
+
8632
+ /**
8633
+ * Creates a deep clone of this proto. No data is shared with the original.
8634
+ * @return {!proto.sniipbillapi.BillsSummaryResponse} The clone.
8635
+ */
8636
+ proto.sniipbillapi.BillsSummaryResponse.prototype.cloneMessage = function() {
8637
+ return /** @type {!proto.sniipbillapi.BillsSummaryResponse} */ (jspb.Message.cloneMessage(this));
8638
+ };
8639
+
8640
+
8641
+ /**
8642
+ * optional ResponseCode responseCode = 1;
8643
+ * @return {proto.sniipbillapi.ResponseCode}
8644
+ */
8645
+ proto.sniipbillapi.BillsSummaryResponse.prototype.getResponsecode = function() {
8646
+ return /** @type{proto.sniipbillapi.ResponseCode} */ (
8647
+ jspb.Message.getWrapperField(this, proto.sniipbillapi.ResponseCode, 1));
8648
+ };
8649
+
8650
+
8651
+ /** @param {proto.sniipbillapi.ResponseCode|undefined} value */
8652
+ proto.sniipbillapi.BillsSummaryResponse.prototype.setResponsecode = function(value) {
8653
+ jspb.Message.setWrapperField(this, 1, value);
8654
+ };
8655
+
8656
+
8657
+ proto.sniipbillapi.BillsSummaryResponse.prototype.clearResponsecode = function() {
8658
+ this.setResponsecode(undefined);
8659
+ };
8660
+
8661
+
8662
+ /**
8663
+ * Returns whether this field is set.
8664
+ * @return{!boolean}
8665
+ */
8666
+ proto.sniipbillapi.BillsSummaryResponse.prototype.hasResponsecode = function() {
8667
+ return jspb.Message.getField(this, 1) != null;
8668
+ };
8669
+
8670
+
8671
+ /**
8672
+ * optional int32 totalBillsToReview = 2;
8673
+ * @return {number}
8674
+ */
8675
+ proto.sniipbillapi.BillsSummaryResponse.prototype.getTotalbillstoreview = function() {
8676
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
8677
+ };
8678
+
8679
+
8680
+ /** @param {number} value */
8681
+ proto.sniipbillapi.BillsSummaryResponse.prototype.setTotalbillstoreview = function(value) {
8682
+ jspb.Message.setField(this, 2, value);
8683
+ };
8684
+
8685
+
8686
+ /**
8687
+ * optional double totalAmountToReview = 3;
8688
+ * @return {number}
8689
+ */
8690
+ proto.sniipbillapi.BillsSummaryResponse.prototype.getTotalamounttoreview = function() {
8691
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 3, 0));
8692
+ };
8693
+
8694
+
8695
+ /** @param {number} value */
8696
+ proto.sniipbillapi.BillsSummaryResponse.prototype.setTotalamounttoreview = function(value) {
8697
+ jspb.Message.setField(this, 3, value);
8698
+ };
8699
+
8700
+
8701
+ /**
8702
+ * optional int32 totalBillsToPay = 4;
8703
+ * @return {number}
8704
+ */
8705
+ proto.sniipbillapi.BillsSummaryResponse.prototype.getTotalbillstopay = function() {
8706
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 4, 0));
8707
+ };
8708
+
8709
+
8710
+ /** @param {number} value */
8711
+ proto.sniipbillapi.BillsSummaryResponse.prototype.setTotalbillstopay = function(value) {
8712
+ jspb.Message.setField(this, 4, value);
8713
+ };
8714
+
8715
+
8716
+ /**
8717
+ * optional double totalAmountToPay = 5;
8718
+ * @return {number}
8719
+ */
8720
+ proto.sniipbillapi.BillsSummaryResponse.prototype.getTotalamounttopay = function() {
8721
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
8722
+ };
8723
+
8724
+
8725
+ /** @param {number} value */
8726
+ proto.sniipbillapi.BillsSummaryResponse.prototype.setTotalamounttopay = function(value) {
8727
+ jspb.Message.setField(this, 5, value);
8728
+ };
8729
+
8730
+
8731
+ /**
8732
+ * optional bool showNewUserState = 6;
8733
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
8734
+ * You should avoid comparisons like {@code val === true/false} in those cases.
8735
+ * @return {boolean}
8736
+ */
8737
+ proto.sniipbillapi.BillsSummaryResponse.prototype.getShownewuserstate = function() {
8738
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 6, false));
8739
+ };
8740
+
8741
+
8742
+ /** @param {boolean} value */
8743
+ proto.sniipbillapi.BillsSummaryResponse.prototype.setShownewuserstate = function(value) {
8744
+ jspb.Message.setField(this, 6, value);
8745
+ };
8746
+
8747
+
8748
+ /**
8749
+ * optional bool showGoodJobState = 7;
8750
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
8751
+ * You should avoid comparisons like {@code val === true/false} in those cases.
8752
+ * @return {boolean}
8753
+ */
8754
+ proto.sniipbillapi.BillsSummaryResponse.prototype.getShowgoodjobstate = function() {
8755
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 7, false));
8756
+ };
8757
+
8758
+
8759
+ /** @param {boolean} value */
8760
+ proto.sniipbillapi.BillsSummaryResponse.prototype.setShowgoodjobstate = function(value) {
8761
+ jspb.Message.setField(this, 7, value);
8762
+ };
8763
+
8764
+
8765
+
8423
8766
  /**
8424
8767
  * Generated by JsPbCodeGenerator.
8425
8768
  * @param {Array=} opt_data Optional initial data array, typically from a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "22.3.8216",
3
+ "version": "22.4.8247",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",