@sniipwebmaster/agent-billing-client-grpcweb-ts 24.3.1701 → 24.4.1725

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.
@@ -1889,5 +1889,27 @@ export class AgentBillingServiceAPIServiceClient {
1889
1889
  this.methodDescriptorCreateUploadBatch);
1890
1890
  }
1891
1891
 
1892
+ methodDescriptorDownloadSampleCsv = new grpcWeb.MethodDescriptor(
1893
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/DownloadSampleCsv',
1894
+ grpcWeb.MethodType.SERVER_STREAMING,
1895
+ google_protobuf_empty_pb.Empty,
1896
+ service_pb.FileDownloadChunk,
1897
+ (request: google_protobuf_empty_pb.Empty) => {
1898
+ return request.serializeBinary();
1899
+ },
1900
+ service_pb.FileDownloadChunk.deserializeBinary
1901
+ );
1902
+
1903
+ downloadSampleCsv(
1904
+ request: google_protobuf_empty_pb.Empty,
1905
+ metadata?: grpcWeb.Metadata): grpcWeb.ClientReadableStream<service_pb.FileDownloadChunk> {
1906
+ return this.client_.serverStreaming(
1907
+ this.hostname_ +
1908
+ '/agentbillingserviceapi.AgentBillingServiceAPIService/DownloadSampleCsv',
1909
+ request,
1910
+ metadata || {},
1911
+ this.methodDescriptorDownloadSampleCsv);
1912
+ }
1913
+
1892
1914
  }
1893
1915
 
@@ -2302,6 +2302,9 @@ export class ReviewAgentBillRequest extends jspb.Message {
2302
2302
  getSmereference(): string;
2303
2303
  setSmereference(value: string): ReviewAgentBillRequest;
2304
2304
 
2305
+ getIsdraft(): boolean;
2306
+ setIsdraft(value: boolean): ReviewAgentBillRequest;
2307
+
2305
2308
  serializeBinary(): Uint8Array;
2306
2309
  toObject(includeInstance?: boolean): ReviewAgentBillRequest.AsObject;
2307
2310
  static toObject(includeInstance: boolean, msg: ReviewAgentBillRequest): ReviewAgentBillRequest.AsObject;
@@ -2323,6 +2326,7 @@ export namespace ReviewAgentBillRequest {
2323
2326
  accountnumber: string,
2324
2327
  accountname: string,
2325
2328
  smereference: string,
2329
+ isdraft: boolean,
2326
2330
  }
2327
2331
  }
2328
2332
 
@@ -2672,6 +2676,26 @@ export namespace BillConfig {
2672
2676
  }
2673
2677
  }
2674
2678
 
2679
+ export class FileDownloadChunk extends jspb.Message {
2680
+ getData(): Uint8Array | string;
2681
+ getData_asU8(): Uint8Array;
2682
+ getData_asB64(): string;
2683
+ setData(value: Uint8Array | string): FileDownloadChunk;
2684
+
2685
+ serializeBinary(): Uint8Array;
2686
+ toObject(includeInstance?: boolean): FileDownloadChunk.AsObject;
2687
+ static toObject(includeInstance: boolean, msg: FileDownloadChunk): FileDownloadChunk.AsObject;
2688
+ static serializeBinaryToWriter(message: FileDownloadChunk, writer: jspb.BinaryWriter): void;
2689
+ static deserializeBinary(bytes: Uint8Array): FileDownloadChunk;
2690
+ static deserializeBinaryFromReader(message: FileDownloadChunk, reader: jspb.BinaryReader): FileDownloadChunk;
2691
+ }
2692
+
2693
+ export namespace FileDownloadChunk {
2694
+ export type AsObject = {
2695
+ data: Uint8Array | string,
2696
+ }
2697
+ }
2698
+
2675
2699
  export enum BillScanType {
2676
2700
  SNIIP = 0,
2677
2701
  BPAY = 1,
@@ -50,6 +50,7 @@ goog.exportSymbol('proto.agentbillingserviceapi.DeleteDeliveryBatchRequest', nul
50
50
  goog.exportSymbol('proto.agentbillingserviceapi.DeliveryBatch', null, global);
51
51
  goog.exportSymbol('proto.agentbillingserviceapi.DisconnectAgentRequest', null, global);
52
52
  goog.exportSymbol('proto.agentbillingserviceapi.DisconnectClientRequest', null, global);
53
+ goog.exportSymbol('proto.agentbillingserviceapi.FileDownloadChunk', null, global);
53
54
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentAttachmentsRequest', null, global);
54
55
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillCategoryCountsRequest', null, global);
55
56
  goog.exportSymbol('proto.agentbillingserviceapi.GetAgentBillCategoryCountsResponse', null, global);
@@ -1758,6 +1759,27 @@ if (goog.DEBUG && !COMPILED) {
1758
1759
  */
1759
1760
  proto.agentbillingserviceapi.BillConfig.displayName = 'proto.agentbillingserviceapi.BillConfig';
1760
1761
  }
1762
+ /**
1763
+ * Generated by JsPbCodeGenerator.
1764
+ * @param {Array=} opt_data Optional initial data array, typically from a
1765
+ * server response, or constructed directly in Javascript. The array is used
1766
+ * in place and becomes part of the constructed object. It is not cloned.
1767
+ * If no data is provided, the constructed object will be empty, but still
1768
+ * valid.
1769
+ * @extends {jspb.Message}
1770
+ * @constructor
1771
+ */
1772
+ proto.agentbillingserviceapi.FileDownloadChunk = function(opt_data) {
1773
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1774
+ };
1775
+ goog.inherits(proto.agentbillingserviceapi.FileDownloadChunk, jspb.Message);
1776
+ if (goog.DEBUG && !COMPILED) {
1777
+ /**
1778
+ * @public
1779
+ * @override
1780
+ */
1781
+ proto.agentbillingserviceapi.FileDownloadChunk.displayName = 'proto.agentbillingserviceapi.FileDownloadChunk';
1782
+ }
1761
1783
 
1762
1784
 
1763
1785
 
@@ -18811,7 +18833,8 @@ proto.agentbillingserviceapi.ReviewAgentBillRequest.toObject = function(includeI
18811
18833
  bsb: jspb.Message.getFieldWithDefault(msg, 8, ""),
18812
18834
  accountnumber: jspb.Message.getFieldWithDefault(msg, 9, ""),
18813
18835
  accountname: jspb.Message.getFieldWithDefault(msg, 10, ""),
18814
- smereference: jspb.Message.getFieldWithDefault(msg, 11, "")
18836
+ smereference: jspb.Message.getFieldWithDefault(msg, 11, ""),
18837
+ isdraft: jspb.Message.getBooleanFieldWithDefault(msg, 12, false)
18815
18838
  };
18816
18839
 
18817
18840
  if (includeInstance) {
@@ -18892,6 +18915,10 @@ proto.agentbillingserviceapi.ReviewAgentBillRequest.deserializeBinaryFromReader
18892
18915
  var value = /** @type {string} */ (reader.readString());
18893
18916
  msg.setSmereference(value);
18894
18917
  break;
18918
+ case 12:
18919
+ var value = /** @type {boolean} */ (reader.readBool());
18920
+ msg.setIsdraft(value);
18921
+ break;
18895
18922
  default:
18896
18923
  reader.skipField();
18897
18924
  break;
@@ -18998,6 +19025,13 @@ proto.agentbillingserviceapi.ReviewAgentBillRequest.serializeBinaryToWriter = fu
18998
19025
  f
18999
19026
  );
19000
19027
  }
19028
+ f = message.getIsdraft();
19029
+ if (f) {
19030
+ writer.writeBool(
19031
+ 12,
19032
+ f
19033
+ );
19034
+ }
19001
19035
  };
19002
19036
 
19003
19037
 
@@ -19199,6 +19233,24 @@ proto.agentbillingserviceapi.ReviewAgentBillRequest.prototype.setSmereference =
19199
19233
  };
19200
19234
 
19201
19235
 
19236
+ /**
19237
+ * optional bool isDraft = 12;
19238
+ * @return {boolean}
19239
+ */
19240
+ proto.agentbillingserviceapi.ReviewAgentBillRequest.prototype.getIsdraft = function() {
19241
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 12, false));
19242
+ };
19243
+
19244
+
19245
+ /**
19246
+ * @param {boolean} value
19247
+ * @return {!proto.agentbillingserviceapi.ReviewAgentBillRequest} returns this
19248
+ */
19249
+ proto.agentbillingserviceapi.ReviewAgentBillRequest.prototype.setIsdraft = function(value) {
19250
+ return jspb.Message.setProto3BooleanField(this, 12, value);
19251
+ };
19252
+
19253
+
19202
19254
 
19203
19255
 
19204
19256
 
@@ -21801,6 +21853,160 @@ proto.agentbillingserviceapi.BillConfig.prototype.setAttachmentid = function(val
21801
21853
  };
21802
21854
 
21803
21855
 
21856
+
21857
+
21858
+
21859
+ if (jspb.Message.GENERATE_TO_OBJECT) {
21860
+ /**
21861
+ * Creates an object representation of this proto.
21862
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
21863
+ * Optional fields that are not set will be set to undefined.
21864
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
21865
+ * For the list of reserved names please see:
21866
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
21867
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
21868
+ * JSPB instance for transitional soy proto support:
21869
+ * http://goto/soy-param-migration
21870
+ * @return {!Object}
21871
+ */
21872
+ proto.agentbillingserviceapi.FileDownloadChunk.prototype.toObject = function(opt_includeInstance) {
21873
+ return proto.agentbillingserviceapi.FileDownloadChunk.toObject(opt_includeInstance, this);
21874
+ };
21875
+
21876
+
21877
+ /**
21878
+ * Static version of the {@see toObject} method.
21879
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
21880
+ * the JSPB instance for transitional soy proto support:
21881
+ * http://goto/soy-param-migration
21882
+ * @param {!proto.agentbillingserviceapi.FileDownloadChunk} msg The msg instance to transform.
21883
+ * @return {!Object}
21884
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21885
+ */
21886
+ proto.agentbillingserviceapi.FileDownloadChunk.toObject = function(includeInstance, msg) {
21887
+ var f, obj = {
21888
+ data: msg.getData_asB64()
21889
+ };
21890
+
21891
+ if (includeInstance) {
21892
+ obj.$jspbMessageInstance = msg;
21893
+ }
21894
+ return obj;
21895
+ };
21896
+ }
21897
+
21898
+
21899
+ /**
21900
+ * Deserializes binary data (in protobuf wire format).
21901
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
21902
+ * @return {!proto.agentbillingserviceapi.FileDownloadChunk}
21903
+ */
21904
+ proto.agentbillingserviceapi.FileDownloadChunk.deserializeBinary = function(bytes) {
21905
+ var reader = new jspb.BinaryReader(bytes);
21906
+ var msg = new proto.agentbillingserviceapi.FileDownloadChunk;
21907
+ return proto.agentbillingserviceapi.FileDownloadChunk.deserializeBinaryFromReader(msg, reader);
21908
+ };
21909
+
21910
+
21911
+ /**
21912
+ * Deserializes binary data (in protobuf wire format) from the
21913
+ * given reader into the given message object.
21914
+ * @param {!proto.agentbillingserviceapi.FileDownloadChunk} msg The message object to deserialize into.
21915
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
21916
+ * @return {!proto.agentbillingserviceapi.FileDownloadChunk}
21917
+ */
21918
+ proto.agentbillingserviceapi.FileDownloadChunk.deserializeBinaryFromReader = function(msg, reader) {
21919
+ while (reader.nextField()) {
21920
+ if (reader.isEndGroup()) {
21921
+ break;
21922
+ }
21923
+ var field = reader.getFieldNumber();
21924
+ switch (field) {
21925
+ case 1:
21926
+ var value = /** @type {!Uint8Array} */ (reader.readBytes());
21927
+ msg.setData(value);
21928
+ break;
21929
+ default:
21930
+ reader.skipField();
21931
+ break;
21932
+ }
21933
+ }
21934
+ return msg;
21935
+ };
21936
+
21937
+
21938
+ /**
21939
+ * Serializes the message to binary data (in protobuf wire format).
21940
+ * @return {!Uint8Array}
21941
+ */
21942
+ proto.agentbillingserviceapi.FileDownloadChunk.prototype.serializeBinary = function() {
21943
+ var writer = new jspb.BinaryWriter();
21944
+ proto.agentbillingserviceapi.FileDownloadChunk.serializeBinaryToWriter(this, writer);
21945
+ return writer.getResultBuffer();
21946
+ };
21947
+
21948
+
21949
+ /**
21950
+ * Serializes the given message to binary data (in protobuf wire
21951
+ * format), writing to the given BinaryWriter.
21952
+ * @param {!proto.agentbillingserviceapi.FileDownloadChunk} message
21953
+ * @param {!jspb.BinaryWriter} writer
21954
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21955
+ */
21956
+ proto.agentbillingserviceapi.FileDownloadChunk.serializeBinaryToWriter = function(message, writer) {
21957
+ var f = undefined;
21958
+ f = message.getData_asU8();
21959
+ if (f.length > 0) {
21960
+ writer.writeBytes(
21961
+ 1,
21962
+ f
21963
+ );
21964
+ }
21965
+ };
21966
+
21967
+
21968
+ /**
21969
+ * optional bytes data = 1;
21970
+ * @return {!(string|Uint8Array)}
21971
+ */
21972
+ proto.agentbillingserviceapi.FileDownloadChunk.prototype.getData = function() {
21973
+ return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
21974
+ };
21975
+
21976
+
21977
+ /**
21978
+ * optional bytes data = 1;
21979
+ * This is a type-conversion wrapper around `getData()`
21980
+ * @return {string}
21981
+ */
21982
+ proto.agentbillingserviceapi.FileDownloadChunk.prototype.getData_asB64 = function() {
21983
+ return /** @type {string} */ (jspb.Message.bytesAsB64(
21984
+ this.getData()));
21985
+ };
21986
+
21987
+
21988
+ /**
21989
+ * optional bytes data = 1;
21990
+ * Note that Uint8Array is not supported on all browsers.
21991
+ * @see http://caniuse.com/Uint8Array
21992
+ * This is a type-conversion wrapper around `getData()`
21993
+ * @return {!Uint8Array}
21994
+ */
21995
+ proto.agentbillingserviceapi.FileDownloadChunk.prototype.getData_asU8 = function() {
21996
+ return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
21997
+ this.getData()));
21998
+ };
21999
+
22000
+
22001
+ /**
22002
+ * @param {!(string|Uint8Array)} value
22003
+ * @return {!proto.agentbillingserviceapi.FileDownloadChunk} returns this
22004
+ */
22005
+ proto.agentbillingserviceapi.FileDownloadChunk.prototype.setData = function(value) {
22006
+ return jspb.Message.setProto3BytesField(this, 1, value);
22007
+ };
22008
+
22009
+
21804
22010
  /**
21805
22011
  * @enum {number}
21806
22012
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/agent-billing-client-grpcweb-ts",
3
- "version": "24.3.1701",
3
+ "version": "24.4.1725",
4
4
  "description": "agent-billing-client-grpcweb-ts",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",