@sniipwebmaster/agent-billing-client-grpcweb-ts 23.13.989 → 23.13.1000

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.
@@ -18,6 +18,7 @@
18
18
  import * as grpcWeb from 'grpc-web';
19
19
 
20
20
  import * as service_pb from './service_pb';
21
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
21
22
 
22
23
 
23
24
  export class AgentBillingServiceAPIServiceClient {
@@ -684,6 +685,49 @@ export class AgentBillingServiceAPIServiceClient {
684
685
  this.methodDescriptorGetAgentBillsForClient);
685
686
  }
686
687
 
688
+ methodDescriptorGetAgentConnectionCategoryCounts = new grpcWeb.MethodDescriptor(
689
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAgentConnectionCategoryCounts',
690
+ grpcWeb.MethodType.UNARY,
691
+ google_protobuf_empty_pb.Empty,
692
+ service_pb.GetAgentConnectionCategoryCountsResponse,
693
+ (request: google_protobuf_empty_pb.Empty) => {
694
+ return request.serializeBinary();
695
+ },
696
+ service_pb.GetAgentConnectionCategoryCountsResponse.deserializeBinary
697
+ );
698
+
699
+ getAgentConnectionCategoryCounts(
700
+ request: google_protobuf_empty_pb.Empty,
701
+ metadata: grpcWeb.Metadata | null): Promise<service_pb.GetAgentConnectionCategoryCountsResponse>;
702
+
703
+ getAgentConnectionCategoryCounts(
704
+ request: google_protobuf_empty_pb.Empty,
705
+ metadata: grpcWeb.Metadata | null,
706
+ callback: (err: grpcWeb.RpcError,
707
+ response: service_pb.GetAgentConnectionCategoryCountsResponse) => void): grpcWeb.ClientReadableStream<service_pb.GetAgentConnectionCategoryCountsResponse>;
708
+
709
+ getAgentConnectionCategoryCounts(
710
+ request: google_protobuf_empty_pb.Empty,
711
+ metadata: grpcWeb.Metadata | null,
712
+ callback?: (err: grpcWeb.RpcError,
713
+ response: service_pb.GetAgentConnectionCategoryCountsResponse) => void) {
714
+ if (callback !== undefined) {
715
+ return this.client_.rpcCall(
716
+ this.hostname_ +
717
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAgentConnectionCategoryCounts',
718
+ request,
719
+ metadata || {},
720
+ this.methodDescriptorGetAgentConnectionCategoryCounts,
721
+ callback);
722
+ }
723
+ return this.client_.unaryCall(
724
+ this.hostname_ +
725
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAgentConnectionCategoryCounts',
726
+ request,
727
+ metadata || {},
728
+ this.methodDescriptorGetAgentConnectionCategoryCounts);
729
+ }
730
+
687
731
  methodDescriptorGetAssociatedAgent = new grpcWeb.MethodDescriptor(
688
732
  '/agentbillingserviceapi.AgentBillingServiceAPIService/GetAssociatedAgent',
689
733
  grpcWeb.MethodType.UNARY,
@@ -1,6 +1,7 @@
1
1
  import * as jspb from 'google-protobuf'
2
2
 
3
3
  import * as google_api_annotations_pb from './google/api/annotations_pb';
4
+ import * as google_protobuf_empty_pb from 'google-protobuf/google/protobuf/empty_pb';
4
5
 
5
6
 
6
7
  export class Agent extends jspb.Message {
@@ -901,6 +902,38 @@ export namespace GetAgentBillsResponse {
901
902
  }
902
903
  }
903
904
 
905
+ export class GetAgentConnectionCategoryCountsResponse extends jspb.Message {
906
+ getResponsecode(): ResponseCode | undefined;
907
+ setResponsecode(value?: ResponseCode): GetAgentConnectionCategoryCountsResponse;
908
+ hasResponsecode(): boolean;
909
+ clearResponsecode(): GetAgentConnectionCategoryCountsResponse;
910
+
911
+ getActivecount(): number;
912
+ setActivecount(value: number): GetAgentConnectionCategoryCountsResponse;
913
+
914
+ getInactivecount(): number;
915
+ setInactivecount(value: number): GetAgentConnectionCategoryCountsResponse;
916
+
917
+ getPendingrequestcount(): number;
918
+ setPendingrequestcount(value: number): GetAgentConnectionCategoryCountsResponse;
919
+
920
+ serializeBinary(): Uint8Array;
921
+ toObject(includeInstance?: boolean): GetAgentConnectionCategoryCountsResponse.AsObject;
922
+ static toObject(includeInstance: boolean, msg: GetAgentConnectionCategoryCountsResponse): GetAgentConnectionCategoryCountsResponse.AsObject;
923
+ static serializeBinaryToWriter(message: GetAgentConnectionCategoryCountsResponse, writer: jspb.BinaryWriter): void;
924
+ static deserializeBinary(bytes: Uint8Array): GetAgentConnectionCategoryCountsResponse;
925
+ static deserializeBinaryFromReader(message: GetAgentConnectionCategoryCountsResponse, reader: jspb.BinaryReader): GetAgentConnectionCategoryCountsResponse;
926
+ }
927
+
928
+ export namespace GetAgentConnectionCategoryCountsResponse {
929
+ export type AsObject = {
930
+ responsecode?: ResponseCode.AsObject,
931
+ activecount: number,
932
+ inactivecount: number,
933
+ pendingrequestcount: number,
934
+ }
935
+ }
936
+
904
937
  export class GetAssociatedAgentRequest extends jspb.Message {
905
938
  getAgentuserid(): number;
906
939
  setAgentuserid(value: number): GetAssociatedAgentRequest;
@@ -14,6 +14,8 @@ var global = Function('return this')();
14
14
 
15
15
  var google_api_annotations_pb = require('./google/api/annotations_pb.js');
16
16
  goog.object.extend(proto, google_api_annotations_pb);
17
+ var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
18
+ goog.object.extend(proto, google_protobuf_empty_pb);
17
19
  goog.exportSymbol('proto.agentbillingserviceapi.Agent', null, global);
18
20
  goog.exportSymbol('proto.agentbillingserviceapi.AgentBill', null, global);
19
21
  goog.exportSymbol('proto.agentbillingserviceapi.AgentBillMapping', null, global);
@@ -43,6 +45,7 @@ goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillDeliveryDetailsByBil
43
45
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillDeliveryDetailsByBillIdResponse', null, global);
44
46
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillsForClientRequest', null, global);
45
47
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillsResponse', null, global);
48
+ goog.exportSymbol('proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse', null, global);
46
49
  goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentRequest', null, global);
47
50
  goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentResponse', null, global);
48
51
  goog.exportSymbol('proto.agentbillingserviceapi.GetAssociatedAgentsRequest', null, global);
@@ -683,6 +686,27 @@ if (goog.DEBUG && !COMPILED) {
683
686
  */
684
687
  proto.agentbillingserviceapi.GetAgentBillsResponse.displayName = 'proto.agentbillingserviceapi.GetAgentBillsResponse';
685
688
  }
689
+ /**
690
+ * Generated by JsPbCodeGenerator.
691
+ * @param {Array=} opt_data Optional initial data array, typically from a
692
+ * server response, or constructed directly in Javascript. The array is used
693
+ * in place and becomes part of the constructed object. It is not cloned.
694
+ * If no data is provided, the constructed object will be empty, but still
695
+ * valid.
696
+ * @extends {jspb.Message}
697
+ * @constructor
698
+ */
699
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse = function(opt_data) {
700
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
701
+ };
702
+ goog.inherits(proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse, jspb.Message);
703
+ if (goog.DEBUG && !COMPILED) {
704
+ /**
705
+ * @public
706
+ * @override
707
+ */
708
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.displayName = 'proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse';
709
+ }
686
710
  /**
687
711
  * Generated by JsPbCodeGenerator.
688
712
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -8058,6 +8082,247 @@ proto.agentbillingserviceapi.GetAgentBillsResponse.prototype.setTotalsize = func
8058
8082
 
8059
8083
 
8060
8084
 
8085
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8086
+ /**
8087
+ * Creates an object representation of this proto.
8088
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8089
+ * Optional fields that are not set will be set to undefined.
8090
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8091
+ * For the list of reserved names please see:
8092
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8093
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8094
+ * JSPB instance for transitional soy proto support:
8095
+ * http://goto/soy-param-migration
8096
+ * @return {!Object}
8097
+ */
8098
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.toObject = function(opt_includeInstance) {
8099
+ return proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.toObject(opt_includeInstance, this);
8100
+ };
8101
+
8102
+
8103
+ /**
8104
+ * Static version of the {@see toObject} method.
8105
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8106
+ * the JSPB instance for transitional soy proto support:
8107
+ * http://goto/soy-param-migration
8108
+ * @param {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} msg The msg instance to transform.
8109
+ * @return {!Object}
8110
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8111
+ */
8112
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.toObject = function(includeInstance, msg) {
8113
+ var f, obj = {
8114
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
8115
+ activecount: jspb.Message.getFieldWithDefault(msg, 2, 0),
8116
+ inactivecount: jspb.Message.getFieldWithDefault(msg, 3, 0),
8117
+ pendingrequestcount: jspb.Message.getFieldWithDefault(msg, 4, 0)
8118
+ };
8119
+
8120
+ if (includeInstance) {
8121
+ obj.$jspbMessageInstance = msg;
8122
+ }
8123
+ return obj;
8124
+ };
8125
+ }
8126
+
8127
+
8128
+ /**
8129
+ * Deserializes binary data (in protobuf wire format).
8130
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8131
+ * @return {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse}
8132
+ */
8133
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.deserializeBinary = function(bytes) {
8134
+ var reader = new jspb.BinaryReader(bytes);
8135
+ var msg = new proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse;
8136
+ return proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.deserializeBinaryFromReader(msg, reader);
8137
+ };
8138
+
8139
+
8140
+ /**
8141
+ * Deserializes binary data (in protobuf wire format) from the
8142
+ * given reader into the given message object.
8143
+ * @param {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} msg The message object to deserialize into.
8144
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8145
+ * @return {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse}
8146
+ */
8147
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.deserializeBinaryFromReader = function(msg, reader) {
8148
+ while (reader.nextField()) {
8149
+ if (reader.isEndGroup()) {
8150
+ break;
8151
+ }
8152
+ var field = reader.getFieldNumber();
8153
+ switch (field) {
8154
+ case 1:
8155
+ var value = new proto.agentbillingserviceapi.ResponseCode;
8156
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
8157
+ msg.setResponsecode(value);
8158
+ break;
8159
+ case 2:
8160
+ var value = /** @type {number} */ (reader.readInt32());
8161
+ msg.setActivecount(value);
8162
+ break;
8163
+ case 3:
8164
+ var value = /** @type {number} */ (reader.readInt32());
8165
+ msg.setInactivecount(value);
8166
+ break;
8167
+ case 4:
8168
+ var value = /** @type {number} */ (reader.readInt32());
8169
+ msg.setPendingrequestcount(value);
8170
+ break;
8171
+ default:
8172
+ reader.skipField();
8173
+ break;
8174
+ }
8175
+ }
8176
+ return msg;
8177
+ };
8178
+
8179
+
8180
+ /**
8181
+ * Serializes the message to binary data (in protobuf wire format).
8182
+ * @return {!Uint8Array}
8183
+ */
8184
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.serializeBinary = function() {
8185
+ var writer = new jspb.BinaryWriter();
8186
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.serializeBinaryToWriter(this, writer);
8187
+ return writer.getResultBuffer();
8188
+ };
8189
+
8190
+
8191
+ /**
8192
+ * Serializes the given message to binary data (in protobuf wire
8193
+ * format), writing to the given BinaryWriter.
8194
+ * @param {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} message
8195
+ * @param {!jspb.BinaryWriter} writer
8196
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8197
+ */
8198
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.serializeBinaryToWriter = function(message, writer) {
8199
+ var f = undefined;
8200
+ f = message.getResponsecode();
8201
+ if (f != null) {
8202
+ writer.writeMessage(
8203
+ 1,
8204
+ f,
8205
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
8206
+ );
8207
+ }
8208
+ f = message.getActivecount();
8209
+ if (f !== 0) {
8210
+ writer.writeInt32(
8211
+ 2,
8212
+ f
8213
+ );
8214
+ }
8215
+ f = message.getInactivecount();
8216
+ if (f !== 0) {
8217
+ writer.writeInt32(
8218
+ 3,
8219
+ f
8220
+ );
8221
+ }
8222
+ f = message.getPendingrequestcount();
8223
+ if (f !== 0) {
8224
+ writer.writeInt32(
8225
+ 4,
8226
+ f
8227
+ );
8228
+ }
8229
+ };
8230
+
8231
+
8232
+ /**
8233
+ * optional ResponseCode responseCode = 1;
8234
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
8235
+ */
8236
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.getResponsecode = function() {
8237
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
8238
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
8239
+ };
8240
+
8241
+
8242
+ /**
8243
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
8244
+ * @return {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} returns this
8245
+ */
8246
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.setResponsecode = function(value) {
8247
+ return jspb.Message.setWrapperField(this, 1, value);
8248
+ };
8249
+
8250
+
8251
+ /**
8252
+ * Clears the message field making it undefined.
8253
+ * @return {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} returns this
8254
+ */
8255
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.clearResponsecode = function() {
8256
+ return this.setResponsecode(undefined);
8257
+ };
8258
+
8259
+
8260
+ /**
8261
+ * Returns whether this field is set.
8262
+ * @return {boolean}
8263
+ */
8264
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.hasResponsecode = function() {
8265
+ return jspb.Message.getField(this, 1) != null;
8266
+ };
8267
+
8268
+
8269
+ /**
8270
+ * optional int32 activeCount = 2;
8271
+ * @return {number}
8272
+ */
8273
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.getActivecount = function() {
8274
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8275
+ };
8276
+
8277
+
8278
+ /**
8279
+ * @param {number} value
8280
+ * @return {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} returns this
8281
+ */
8282
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.setActivecount = function(value) {
8283
+ return jspb.Message.setProto3IntField(this, 2, value);
8284
+ };
8285
+
8286
+
8287
+ /**
8288
+ * optional int32 inactiveCount = 3;
8289
+ * @return {number}
8290
+ */
8291
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.getInactivecount = function() {
8292
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
8293
+ };
8294
+
8295
+
8296
+ /**
8297
+ * @param {number} value
8298
+ * @return {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} returns this
8299
+ */
8300
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.setInactivecount = function(value) {
8301
+ return jspb.Message.setProto3IntField(this, 3, value);
8302
+ };
8303
+
8304
+
8305
+ /**
8306
+ * optional int32 pendingRequestCount = 4;
8307
+ * @return {number}
8308
+ */
8309
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.getPendingrequestcount = function() {
8310
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
8311
+ };
8312
+
8313
+
8314
+ /**
8315
+ * @param {number} value
8316
+ * @return {!proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse} returns this
8317
+ */
8318
+ proto.agentbillingserviceapi.GetAgentConnectionCategoryCountsResponse.prototype.setPendingrequestcount = function(value) {
8319
+ return jspb.Message.setProto3IntField(this, 4, value);
8320
+ };
8321
+
8322
+
8323
+
8324
+
8325
+
8061
8326
  if (jspb.Message.GENERATE_TO_OBJECT) {
8062
8327
  /**
8063
8328
  * Creates an object representation of this proto.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/agent-billing-client-grpcweb-ts",
3
- "version": "23.13.989",
3
+ "version": "23.13.1000",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",