@sniipwebmaster/agent-billing-client-grpcweb-ts 24.10.2998 → 24.11.3020

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.
@@ -2195,16 +2195,16 @@ export class AgentBillingServiceAPIServiceClient {
2195
2195
  '/agentbillingserviceapi.AgentBillingServiceAPIService/DownloadReceiptsCsvForClientInPeriod',
2196
2196
  grpcWeb.MethodType.SERVER_STREAMING,
2197
2197
  service_pb.DownloadReceiptsCsvForClientInPeriodRequest,
2198
- service_pb.FileDownloadChunk,
2198
+ service_pb.FileDownloadResponseChunk,
2199
2199
  (request: service_pb.DownloadReceiptsCsvForClientInPeriodRequest) => {
2200
2200
  return request.serializeBinary();
2201
2201
  },
2202
- service_pb.FileDownloadChunk.deserializeBinary
2202
+ service_pb.FileDownloadResponseChunk.deserializeBinary
2203
2203
  );
2204
2204
 
2205
2205
  downloadReceiptsCsvForClientInPeriod(
2206
2206
  request: service_pb.DownloadReceiptsCsvForClientInPeriodRequest,
2207
- metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<service_pb.FileDownloadChunk> {
2207
+ metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<service_pb.FileDownloadResponseChunk> {
2208
2208
  return this.client_.serverStreaming(
2209
2209
  this.hostname_ +
2210
2210
  '/agentbillingserviceapi.AgentBillingServiceAPIService/DownloadReceiptsCsvForClientInPeriod',
@@ -3098,6 +3098,32 @@ export namespace BillConfig {
3098
3098
  }
3099
3099
  }
3100
3100
 
3101
+ export class FileDownloadResponseChunk extends jspb.Message {
3102
+ getResponsecode(): ResponseCode | undefined;
3103
+ setResponsecode(value?: ResponseCode): FileDownloadResponseChunk;
3104
+ hasResponsecode(): boolean;
3105
+ clearResponsecode(): FileDownloadResponseChunk;
3106
+
3107
+ getData(): Uint8Array | string;
3108
+ getData_asU8(): Uint8Array;
3109
+ getData_asB64(): string;
3110
+ setData(value: Uint8Array | string): FileDownloadResponseChunk;
3111
+
3112
+ serializeBinary(): Uint8Array;
3113
+ toObject(includeInstance?: boolean): FileDownloadResponseChunk.AsObject;
3114
+ static toObject(includeInstance: boolean, msg: FileDownloadResponseChunk): FileDownloadResponseChunk.AsObject;
3115
+ static serializeBinaryToWriter(message: FileDownloadResponseChunk, writer: jspb.BinaryWriter): void;
3116
+ static deserializeBinary(bytes: Uint8Array): FileDownloadResponseChunk;
3117
+ static deserializeBinaryFromReader(message: FileDownloadResponseChunk, reader: jspb.BinaryReader): FileDownloadResponseChunk;
3118
+ }
3119
+
3120
+ export namespace FileDownloadResponseChunk {
3121
+ export type AsObject = {
3122
+ responsecode?: ResponseCode.AsObject,
3123
+ data: Uint8Array | string,
3124
+ }
3125
+ }
3126
+
3101
3127
  export class FileDownloadChunk extends jspb.Message {
3102
3128
  getData(): Uint8Array | string;
3103
3129
  getData_asU8(): Uint8Array;
@@ -60,6 +60,7 @@ goog.exportSymbol('proto.agentbillingserviceapi.DisconnectClientRequest', null,
60
60
  goog.exportSymbol('proto.agentbillingserviceapi.DownloadFailedImportErrorLogForTextBasedFileRequest', null, global);
61
61
  goog.exportSymbol('proto.agentbillingserviceapi.DownloadReceiptsCsvForClientInPeriodRequest', null, global);
62
62
  goog.exportSymbol('proto.agentbillingserviceapi.FileDownloadChunk', null, global);
63
+ goog.exportSymbol('proto.agentbillingserviceapi.FileDownloadResponseChunk', null, global);
63
64
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentAttachmentsRequest', null, global);
64
65
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillCategoryCountsRequest', null, global);
65
66
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillCategoryCountsResponse', null, global);
@@ -2004,6 +2005,27 @@ if (goog.DEBUG && !COMPILED) {
2004
2005
  */
2005
2006
  proto.agentbillingserviceapi.BillConfig.displayName = 'proto.agentbillingserviceapi.BillConfig';
2006
2007
  }
2008
+ /**
2009
+ * Generated by JsPbCodeGenerator.
2010
+ * @param {Array=} opt_data Optional initial data array, typically from a
2011
+ * server response, or constructed directly in Javascript. The array is used
2012
+ * in place and becomes part of the constructed object. It is not cloned.
2013
+ * If no data is provided, the constructed object will be empty, but still
2014
+ * valid.
2015
+ * @extends {jspb.Message}
2016
+ * @constructor
2017
+ */
2018
+ proto.agentbillingserviceapi.FileDownloadResponseChunk = function(opt_data) {
2019
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
2020
+ };
2021
+ goog.inherits(proto.agentbillingserviceapi.FileDownloadResponseChunk, jspb.Message);
2022
+ if (goog.DEBUG && !COMPILED) {
2023
+ /**
2024
+ * @public
2025
+ * @override
2026
+ */
2027
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.displayName = 'proto.agentbillingserviceapi.FileDownloadResponseChunk';
2028
+ }
2007
2029
  /**
2008
2030
  * Generated by JsPbCodeGenerator.
2009
2031
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -25354,6 +25376,211 @@ proto.agentbillingserviceapi.BillConfig.prototype.setAttachmentid = function(val
25354
25376
 
25355
25377
 
25356
25378
 
25379
+ if (jspb.Message.GENERATE_TO_OBJECT) {
25380
+ /**
25381
+ * Creates an object representation of this proto.
25382
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
25383
+ * Optional fields that are not set will be set to undefined.
25384
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
25385
+ * For the list of reserved names please see:
25386
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
25387
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
25388
+ * JSPB instance for transitional soy proto support:
25389
+ * http://goto/soy-param-migration
25390
+ * @return {!Object}
25391
+ */
25392
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.toObject = function(opt_includeInstance) {
25393
+ return proto.agentbillingserviceapi.FileDownloadResponseChunk.toObject(opt_includeInstance, this);
25394
+ };
25395
+
25396
+
25397
+ /**
25398
+ * Static version of the {@see toObject} method.
25399
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
25400
+ * the JSPB instance for transitional soy proto support:
25401
+ * http://goto/soy-param-migration
25402
+ * @param {!proto.agentbillingserviceapi.FileDownloadResponseChunk} msg The msg instance to transform.
25403
+ * @return {!Object}
25404
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25405
+ */
25406
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.toObject = function(includeInstance, msg) {
25407
+ var f, obj = {
25408
+ responsecode: (f = msg.getResponsecode()) && proto.agentbillingserviceapi.ResponseCode.toObject(includeInstance, f),
25409
+ data: msg.getData_asB64()
25410
+ };
25411
+
25412
+ if (includeInstance) {
25413
+ obj.$jspbMessageInstance = msg;
25414
+ }
25415
+ return obj;
25416
+ };
25417
+ }
25418
+
25419
+
25420
+ /**
25421
+ * Deserializes binary data (in protobuf wire format).
25422
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
25423
+ * @return {!proto.agentbillingserviceapi.FileDownloadResponseChunk}
25424
+ */
25425
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.deserializeBinary = function(bytes) {
25426
+ var reader = new jspb.BinaryReader(bytes);
25427
+ var msg = new proto.agentbillingserviceapi.FileDownloadResponseChunk;
25428
+ return proto.agentbillingserviceapi.FileDownloadResponseChunk.deserializeBinaryFromReader(msg, reader);
25429
+ };
25430
+
25431
+
25432
+ /**
25433
+ * Deserializes binary data (in protobuf wire format) from the
25434
+ * given reader into the given message object.
25435
+ * @param {!proto.agentbillingserviceapi.FileDownloadResponseChunk} msg The message object to deserialize into.
25436
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
25437
+ * @return {!proto.agentbillingserviceapi.FileDownloadResponseChunk}
25438
+ */
25439
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.deserializeBinaryFromReader = function(msg, reader) {
25440
+ while (reader.nextField()) {
25441
+ if (reader.isEndGroup()) {
25442
+ break;
25443
+ }
25444
+ var field = reader.getFieldNumber();
25445
+ switch (field) {
25446
+ case 1:
25447
+ var value = new proto.agentbillingserviceapi.ResponseCode;
25448
+ reader.readMessage(value,proto.agentbillingserviceapi.ResponseCode.deserializeBinaryFromReader);
25449
+ msg.setResponsecode(value);
25450
+ break;
25451
+ case 2:
25452
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
25453
+ msg.setData(value);
25454
+ break;
25455
+ default:
25456
+ reader.skipField();
25457
+ break;
25458
+ }
25459
+ }
25460
+ return msg;
25461
+ };
25462
+
25463
+
25464
+ /**
25465
+ * Serializes the message to binary data (in protobuf wire format).
25466
+ * @return {!Uint8Array}
25467
+ */
25468
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.serializeBinary = function() {
25469
+ var writer = new jspb.BinaryWriter();
25470
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.serializeBinaryToWriter(this, writer);
25471
+ return writer.getResultBuffer();
25472
+ };
25473
+
25474
+
25475
+ /**
25476
+ * Serializes the given message to binary data (in protobuf wire
25477
+ * format), writing to the given BinaryWriter.
25478
+ * @param {!proto.agentbillingserviceapi.FileDownloadResponseChunk} message
25479
+ * @param {!jspb.BinaryWriter} writer
25480
+ * @suppress {unusedLocalVariables} f is only used for nested messages
25481
+ */
25482
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.serializeBinaryToWriter = function(message, writer) {
25483
+ var f = undefined;
25484
+ f = message.getResponsecode();
25485
+ if (f != null) {
25486
+ writer.writeMessage(
25487
+ 1,
25488
+ f,
25489
+ proto.agentbillingserviceapi.ResponseCode.serializeBinaryToWriter
25490
+ );
25491
+ }
25492
+ f = message.getData_asU8();
25493
+ if (f.length > 0) {
25494
+ writer.writeBytes(
25495
+ 2,
25496
+ f
25497
+ );
25498
+ }
25499
+ };
25500
+
25501
+
25502
+ /**
25503
+ * optional ResponseCode responseCode = 1;
25504
+ * @return {?proto.agentbillingserviceapi.ResponseCode}
25505
+ */
25506
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.getResponsecode = function() {
25507
+ return /** @type{?proto.agentbillingserviceapi.ResponseCode} */ (
25508
+ jspb.Message.getWrapperField(this, proto.agentbillingserviceapi.ResponseCode, 1));
25509
+ };
25510
+
25511
+
25512
+ /**
25513
+ * @param {?proto.agentbillingserviceapi.ResponseCode|undefined} value
25514
+ * @return {!proto.agentbillingserviceapi.FileDownloadResponseChunk} returns this
25515
+ */
25516
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.setResponsecode = function(value) {
25517
+ return jspb.Message.setWrapperField(this, 1, value);
25518
+ };
25519
+
25520
+
25521
+ /**
25522
+ * Clears the message field making it undefined.
25523
+ * @return {!proto.agentbillingserviceapi.FileDownloadResponseChunk} returns this
25524
+ */
25525
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.clearResponsecode = function() {
25526
+ return this.setResponsecode(undefined);
25527
+ };
25528
+
25529
+
25530
+ /**
25531
+ * Returns whether this field is set.
25532
+ * @return {boolean}
25533
+ */
25534
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.hasResponsecode = function() {
25535
+ return jspb.Message.getField(this, 1) != null;
25536
+ };
25537
+
25538
+
25539
+ /**
25540
+ * optional bytes data = 2;
25541
+ * @return {!(string|Uint8Array)}
25542
+ */
25543
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.getData = function() {
25544
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
25545
+ };
25546
+
25547
+
25548
+ /**
25549
+ * optional bytes data = 2;
25550
+ * This is a type-conversion wrapper around `getData()`
25551
+ * @return {string}
25552
+ */
25553
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.getData_asB64 = function() {
25554
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
25555
+ this.getData()));
25556
+ };
25557
+
25558
+
25559
+ /**
25560
+ * optional bytes data = 2;
25561
+ * Note that Uint8Array is not supported on all browsers.
25562
+ * @see http://caniuse.com/Uint8Array
25563
+ * This is a type-conversion wrapper around `getData()`
25564
+ * @return {!Uint8Array}
25565
+ */
25566
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.getData_asU8 = function() {
25567
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
25568
+ this.getData()));
25569
+ };
25570
+
25571
+
25572
+ /**
25573
+ * @param {!(string|Uint8Array)} value
25574
+ * @return {!proto.agentbillingserviceapi.FileDownloadResponseChunk} returns this
25575
+ */
25576
+ proto.agentbillingserviceapi.FileDownloadResponseChunk.prototype.setData = function(value) {
25577
+ return jspb.Message.setProto3BytesField(this, 2, value);
25578
+ };
25579
+
25580
+
25581
+
25582
+
25583
+
25357
25584
  if (jspb.Message.GENERATE_TO_OBJECT) {
25358
25585
  /**
25359
25586
  * 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": "24.10.2998",
3
+ "version": "24.11.3020",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",