@sniipwebmaster/agent-billing-client-grpcweb-ts 24.3.1644 → 24.3.1666

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.
@@ -1072,6 +1072,49 @@ export class AgentBillingServiceAPIServiceClient {
1072
1072
  this.methodDescriptorGetDeliveryBatchContentsToPay);
1073
1073
  }
1074
1074
 
1075
+ methodDescriptorCheckConnection = new grpcWeb.MethodDescriptor(
1076
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CheckConnection',
1077
+ grpcWeb.MethodType.UNARY,
1078
+ service_pb.CheckConnectionRequest,
1079
+ service_pb.ResponseCode,
1080
+ (request: service_pb.CheckConnectionRequest) => {
1081
+ return request.serializeBinary();
1082
+ },
1083
+ service_pb.ResponseCode.deserializeBinary
1084
+ );
1085
+
1086
+ checkConnection(
1087
+ request: service_pb.CheckConnectionRequest,
1088
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
1089
+
1090
+ checkConnection(
1091
+ request: service_pb.CheckConnectionRequest,
1092
+ metadata: grpcWeb.Metadata | null,
1093
+ callback: (err: grpcWeb.RpcError,
1094
+ response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
1095
+
1096
+ checkConnection(
1097
+ request: service_pb.CheckConnectionRequest,
1098
+ metadata: grpcWeb.Metadata | null,
1099
+ callback?: (err: grpcWeb.RpcError,
1100
+ response: service_pb.ResponseCode) => void) {
1101
+ if (callback !== undefined) {
1102
+ return this.client_.rpcCall(
1103
+ this.hostname_ +
1104
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CheckConnection',
1105
+ request,
1106
+ metadata || {},
1107
+ this.methodDescriptorCheckConnection,
1108
+ callback);
1109
+ }
1110
+ return this.client_.unaryCall(
1111
+ this.hostname_ +
1112
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/CheckConnection',
1113
+ request,
1114
+ metadata || {},
1115
+ this.methodDescriptorCheckConnection);
1116
+ }
1117
+
1075
1118
  methodDescriptorGetDeliveryBatchContentsToPayOfClient = new grpcWeb.MethodDescriptor(
1076
1119
  '/agentbillingserviceapi.AgentBillingServiceAPIService/GetDeliveryBatchContentsToPayOfClient',
1077
1120
  grpcWeb.MethodType.UNARY,
@@ -760,6 +760,28 @@ export namespace BillConfigRequest {
760
760
  }
761
761
  }
762
762
 
763
+ export class CheckConnectionRequest extends jspb.Message {
764
+ getAgentid(): number;
765
+ setAgentid(value: number): CheckConnectionRequest;
766
+
767
+ getClientid(): number;
768
+ setClientid(value: number): CheckConnectionRequest;
769
+
770
+ serializeBinary(): Uint8Array;
771
+ toObject(includeInstance?: boolean): CheckConnectionRequest.AsObject;
772
+ static toObject(includeInstance: boolean, msg: CheckConnectionRequest): CheckConnectionRequest.AsObject;
773
+ static serializeBinaryToWriter(message: CheckConnectionRequest, writer: jspb.BinaryWriter): void;
774
+ static deserializeBinary(bytes: Uint8Array): CheckConnectionRequest;
775
+ static deserializeBinaryFromReader(message: CheckConnectionRequest, reader: jspb.BinaryReader): CheckConnectionRequest;
776
+ }
777
+
778
+ export namespace CheckConnectionRequest {
779
+ export type AsObject = {
780
+ agentid: number,
781
+ clientid: number,
782
+ }
783
+ }
784
+
763
785
  export class GetAgentAttachmentsRequest extends jspb.Message {
764
786
  getClientid(): number;
765
787
  setClientid(value: number): GetAgentAttachmentsRequest;
@@ -31,6 +31,7 @@ goog.exportSymbol('proto.agentbillingserviceapi.BillConfig', null, global);
31
31
  goog.exportSymbol('proto.agentbillingserviceapi.BillConfigRequest', null, global);
32
32
  goog.exportSymbol('proto.agentbillingserviceapi.BillScanType', null, global);
33
33
  goog.exportSymbol('proto.agentbillingserviceapi.CancelAgentInviteRequest', null, global);
34
+ goog.exportSymbol('proto.agentbillingserviceapi.CheckConnectionRequest', null, global);
34
35
  goog.exportSymbol('proto.agentbillingserviceapi.Client', null, global);
35
36
  goog.exportSymbol('proto.agentbillingserviceapi.ConnectAgentRequest', null, global);
36
37
  goog.exportSymbol('proto.agentbillingserviceapi.CreateAgentBillRequest', null, global);
@@ -476,6 +477,27 @@ if (goog.DEBUG && !COMPILED) {
476
477
  */
477
478
  proto.agentbillingserviceapi.BillConfigRequest.displayName = 'proto.agentbillingserviceapi.BillConfigRequest';
478
479
  }
480
+ /**
481
+ * Generated by JsPbCodeGenerator.
482
+ * @param {Array=} opt_data Optional initial data array, typically from a
483
+ * server response, or constructed directly in Javascript. The array is used
484
+ * in place and becomes part of the constructed object. It is not cloned.
485
+ * If no data is provided, the constructed object will be empty, but still
486
+ * valid.
487
+ * @extends {jspb.Message}
488
+ * @constructor
489
+ */
490
+ proto.agentbillingserviceapi.CheckConnectionRequest = function(opt_data) {
491
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
492
+ };
493
+ goog.inherits(proto.agentbillingserviceapi.CheckConnectionRequest, jspb.Message);
494
+ if (goog.DEBUG && !COMPILED) {
495
+ /**
496
+ * @public
497
+ * @override
498
+ */
499
+ proto.agentbillingserviceapi.CheckConnectionRequest.displayName = 'proto.agentbillingserviceapi.CheckConnectionRequest';
500
+ }
479
501
  /**
480
502
  * Generated by JsPbCodeGenerator.
481
503
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7421,6 +7443,166 @@ proto.agentbillingserviceapi.BillConfigRequest.prototype.setBillerconfigid = fun
7421
7443
 
7422
7444
 
7423
7445
 
7446
+
7447
+
7448
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7449
+ /**
7450
+ * Creates an object representation of this proto.
7451
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7452
+ * Optional fields that are not set will be set to undefined.
7453
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7454
+ * For the list of reserved names please see:
7455
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7456
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7457
+ * JSPB instance for transitional soy proto support:
7458
+ * http://goto/soy-param-migration
7459
+ * @return {!Object}
7460
+ */
7461
+ proto.agentbillingserviceapi.CheckConnectionRequest.prototype.toObject = function(opt_includeInstance) {
7462
+ return proto.agentbillingserviceapi.CheckConnectionRequest.toObject(opt_includeInstance, this);
7463
+ };
7464
+
7465
+
7466
+ /**
7467
+ * Static version of the {@see toObject} method.
7468
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7469
+ * the JSPB instance for transitional soy proto support:
7470
+ * http://goto/soy-param-migration
7471
+ * @param {!proto.agentbillingserviceapi.CheckConnectionRequest} msg The msg instance to transform.
7472
+ * @return {!Object}
7473
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7474
+ */
7475
+ proto.agentbillingserviceapi.CheckConnectionRequest.toObject = function(includeInstance, msg) {
7476
+ var f, obj = {
7477
+ agentid: jspb.Message.getFieldWithDefault(msg, 1, 0),
7478
+ clientid: jspb.Message.getFieldWithDefault(msg, 2, 0)
7479
+ };
7480
+
7481
+ if (includeInstance) {
7482
+ obj.$jspbMessageInstance = msg;
7483
+ }
7484
+ return obj;
7485
+ };
7486
+ }
7487
+
7488
+
7489
+ /**
7490
+ * Deserializes binary data (in protobuf wire format).
7491
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7492
+ * @return {!proto.agentbillingserviceapi.CheckConnectionRequest}
7493
+ */
7494
+ proto.agentbillingserviceapi.CheckConnectionRequest.deserializeBinary = function(bytes) {
7495
+ var reader = new jspb.BinaryReader(bytes);
7496
+ var msg = new proto.agentbillingserviceapi.CheckConnectionRequest;
7497
+ return proto.agentbillingserviceapi.CheckConnectionRequest.deserializeBinaryFromReader(msg, reader);
7498
+ };
7499
+
7500
+
7501
+ /**
7502
+ * Deserializes binary data (in protobuf wire format) from the
7503
+ * given reader into the given message object.
7504
+ * @param {!proto.agentbillingserviceapi.CheckConnectionRequest} msg The message object to deserialize into.
7505
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7506
+ * @return {!proto.agentbillingserviceapi.CheckConnectionRequest}
7507
+ */
7508
+ proto.agentbillingserviceapi.CheckConnectionRequest.deserializeBinaryFromReader = function(msg, reader) {
7509
+ while (reader.nextField()) {
7510
+ if (reader.isEndGroup()) {
7511
+ break;
7512
+ }
7513
+ var field = reader.getFieldNumber();
7514
+ switch (field) {
7515
+ case 1:
7516
+ var value = /** @type {number} */ (reader.readInt64());
7517
+ msg.setAgentid(value);
7518
+ break;
7519
+ case 2:
7520
+ var value = /** @type {number} */ (reader.readInt64());
7521
+ msg.setClientid(value);
7522
+ break;
7523
+ default:
7524
+ reader.skipField();
7525
+ break;
7526
+ }
7527
+ }
7528
+ return msg;
7529
+ };
7530
+
7531
+
7532
+ /**
7533
+ * Serializes the message to binary data (in protobuf wire format).
7534
+ * @return {!Uint8Array}
7535
+ */
7536
+ proto.agentbillingserviceapi.CheckConnectionRequest.prototype.serializeBinary = function() {
7537
+ var writer = new jspb.BinaryWriter();
7538
+ proto.agentbillingserviceapi.CheckConnectionRequest.serializeBinaryToWriter(this, writer);
7539
+ return writer.getResultBuffer();
7540
+ };
7541
+
7542
+
7543
+ /**
7544
+ * Serializes the given message to binary data (in protobuf wire
7545
+ * format), writing to the given BinaryWriter.
7546
+ * @param {!proto.agentbillingserviceapi.CheckConnectionRequest} message
7547
+ * @param {!jspb.BinaryWriter} writer
7548
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7549
+ */
7550
+ proto.agentbillingserviceapi.CheckConnectionRequest.serializeBinaryToWriter = function(message, writer) {
7551
+ var f = undefined;
7552
+ f = message.getAgentid();
7553
+ if (f !== 0) {
7554
+ writer.writeInt64(
7555
+ 1,
7556
+ f
7557
+ );
7558
+ }
7559
+ f = message.getClientid();
7560
+ if (f !== 0) {
7561
+ writer.writeInt64(
7562
+ 2,
7563
+ f
7564
+ );
7565
+ }
7566
+ };
7567
+
7568
+
7569
+ /**
7570
+ * optional int64 agentId = 1;
7571
+ * @return {number}
7572
+ */
7573
+ proto.agentbillingserviceapi.CheckConnectionRequest.prototype.getAgentid = function() {
7574
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7575
+ };
7576
+
7577
+
7578
+ /**
7579
+ * @param {number} value
7580
+ * @return {!proto.agentbillingserviceapi.CheckConnectionRequest} returns this
7581
+ */
7582
+ proto.agentbillingserviceapi.CheckConnectionRequest.prototype.setAgentid = function(value) {
7583
+ return jspb.Message.setProto3IntField(this, 1, value);
7584
+ };
7585
+
7586
+
7587
+ /**
7588
+ * optional int64 clientId = 2;
7589
+ * @return {number}
7590
+ */
7591
+ proto.agentbillingserviceapi.CheckConnectionRequest.prototype.getClientid = function() {
7592
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7593
+ };
7594
+
7595
+
7596
+ /**
7597
+ * @param {number} value
7598
+ * @return {!proto.agentbillingserviceapi.CheckConnectionRequest} returns this
7599
+ */
7600
+ proto.agentbillingserviceapi.CheckConnectionRequest.prototype.setClientid = function(value) {
7601
+ return jspb.Message.setProto3IntField(this, 2, value);
7602
+ };
7603
+
7604
+
7605
+
7424
7606
  /**
7425
7607
  * List of repeated fields within this message type.
7426
7608
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/agent-billing-client-grpcweb-ts",
3
- "version": "24.3.1644",
3
+ "version": "24.3.1666",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",