@sniipwebmaster/bill-service-client-grpcweb 26.3.14940 → 26.4.14961

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.
@@ -4958,5 +4958,66 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.updateSmeRentAgree
4958
4958
  };
4959
4959
 
4960
4960
 
4961
+ /**
4962
+ * @const
4963
+ * @type {!grpc.web.MethodDescriptor<
4964
+ * !proto.sniipbillapi.ConvertBillToDraftRequest,
4965
+ * !proto.sniipbillapi.ConvertBillToDraftResponse>}
4966
+ */
4967
+ const methodDescriptor_SniipBillAPIService_ConvertBillToDraft = new grpc.web.MethodDescriptor(
4968
+ '/sniipbillapi.SniipBillAPIService/ConvertBillToDraft',
4969
+ grpc.web.MethodType.UNARY,
4970
+ proto.sniipbillapi.ConvertBillToDraftRequest,
4971
+ proto.sniipbillapi.ConvertBillToDraftResponse,
4972
+ /**
4973
+ * @param {!proto.sniipbillapi.ConvertBillToDraftRequest} request
4974
+ * @return {!Uint8Array}
4975
+ */
4976
+ function(request) {
4977
+ return request.serializeBinary();
4978
+ },
4979
+ proto.sniipbillapi.ConvertBillToDraftResponse.deserializeBinary
4980
+ );
4981
+
4982
+
4983
+ /**
4984
+ * @param {!proto.sniipbillapi.ConvertBillToDraftRequest} request The
4985
+ * request proto
4986
+ * @param {?Object<string, string>} metadata User defined
4987
+ * call metadata
4988
+ * @param {function(?grpc.web.RpcError, ?proto.sniipbillapi.ConvertBillToDraftResponse)}
4989
+ * callback The callback function(error, response)
4990
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.ConvertBillToDraftResponse>|undefined}
4991
+ * The XHR Node Readable Stream
4992
+ */
4993
+ proto.sniipbillapi.SniipBillAPIServiceClient.prototype.convertBillToDraft =
4994
+ function(request, metadata, callback) {
4995
+ return this.client_.rpcCall(this.hostname_ +
4996
+ '/sniipbillapi.SniipBillAPIService/ConvertBillToDraft',
4997
+ request,
4998
+ metadata || {},
4999
+ methodDescriptor_SniipBillAPIService_ConvertBillToDraft,
5000
+ callback);
5001
+ };
5002
+
5003
+
5004
+ /**
5005
+ * @param {!proto.sniipbillapi.ConvertBillToDraftRequest} request The
5006
+ * request proto
5007
+ * @param {?Object<string, string>=} metadata User defined
5008
+ * call metadata
5009
+ * @return {!Promise<!proto.sniipbillapi.ConvertBillToDraftResponse>}
5010
+ * Promise that resolves to the response
5011
+ */
5012
+ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.convertBillToDraft =
5013
+ function(request, metadata) {
5014
+ return this.client_.unaryCall(this.hostname_ +
5015
+ '/sniipbillapi.SniipBillAPIService/ConvertBillToDraft',
5016
+ request,
5017
+ metadata || {},
5018
+ methodDescriptor_SniipBillAPIService_ConvertBillToDraft);
5019
+ };
5020
+
5021
+
4961
5022
  module.exports = proto.sniipbillapi;
4962
5023
 
@@ -70,6 +70,8 @@ goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserRequest', null,
70
70
  goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserResponse', null, global);
71
71
  goog.exportSymbol('proto.sniipbillapi.CheckUserBillerIdsRequest', null, global);
72
72
  goog.exportSymbol('proto.sniipbillapi.CheckUserBillerIdsResponse', null, global);
73
+ goog.exportSymbol('proto.sniipbillapi.ConvertBillToDraftRequest', null, global);
74
+ goog.exportSymbol('proto.sniipbillapi.ConvertBillToDraftResponse', null, global);
73
75
  goog.exportSymbol('proto.sniipbillapi.CopyBillRequest', null, global);
74
76
  goog.exportSymbol('proto.sniipbillapi.CopyExistingBillRequest', null, global);
75
77
  goog.exportSymbol('proto.sniipbillapi.CreateBillFromXeroRequest', null, global);
@@ -480,6 +482,48 @@ if (goog.DEBUG && !COMPILED) {
480
482
  */
481
483
  proto.sniipbillapi.BillConfigsResponse.displayName = 'proto.sniipbillapi.BillConfigsResponse';
482
484
  }
485
+ /**
486
+ * Generated by JsPbCodeGenerator.
487
+ * @param {Array=} opt_data Optional initial data array, typically from a
488
+ * server response, or constructed directly in Javascript. The array is used
489
+ * in place and becomes part of the constructed object. It is not cloned.
490
+ * If no data is provided, the constructed object will be empty, but still
491
+ * valid.
492
+ * @extends {jspb.Message}
493
+ * @constructor
494
+ */
495
+ proto.sniipbillapi.ConvertBillToDraftRequest = function(opt_data) {
496
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
497
+ };
498
+ goog.inherits(proto.sniipbillapi.ConvertBillToDraftRequest, jspb.Message);
499
+ if (goog.DEBUG && !COMPILED) {
500
+ /**
501
+ * @public
502
+ * @override
503
+ */
504
+ proto.sniipbillapi.ConvertBillToDraftRequest.displayName = 'proto.sniipbillapi.ConvertBillToDraftRequest';
505
+ }
506
+ /**
507
+ * Generated by JsPbCodeGenerator.
508
+ * @param {Array=} opt_data Optional initial data array, typically from a
509
+ * server response, or constructed directly in Javascript. The array is used
510
+ * in place and becomes part of the constructed object. It is not cloned.
511
+ * If no data is provided, the constructed object will be empty, but still
512
+ * valid.
513
+ * @extends {jspb.Message}
514
+ * @constructor
515
+ */
516
+ proto.sniipbillapi.ConvertBillToDraftResponse = function(opt_data) {
517
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
518
+ };
519
+ goog.inherits(proto.sniipbillapi.ConvertBillToDraftResponse, jspb.Message);
520
+ if (goog.DEBUG && !COMPILED) {
521
+ /**
522
+ * @public
523
+ * @override
524
+ */
525
+ proto.sniipbillapi.ConvertBillToDraftResponse.displayName = 'proto.sniipbillapi.ConvertBillToDraftResponse';
526
+ }
483
527
  /**
484
528
  * Generated by JsPbCodeGenerator.
485
529
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -7825,6 +7869,377 @@ proto.sniipbillapi.BillConfigsResponse.prototype.clearBillconfigsList = function
7825
7869
 
7826
7870
 
7827
7871
 
7872
+
7873
+
7874
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7875
+ /**
7876
+ * Creates an object representation of this proto.
7877
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7878
+ * Optional fields that are not set will be set to undefined.
7879
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7880
+ * For the list of reserved names please see:
7881
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7882
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7883
+ * JSPB instance for transitional soy proto support:
7884
+ * http://goto/soy-param-migration
7885
+ * @return {!Object}
7886
+ */
7887
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.toObject = function(opt_includeInstance) {
7888
+ return proto.sniipbillapi.ConvertBillToDraftRequest.toObject(opt_includeInstance, this);
7889
+ };
7890
+
7891
+
7892
+ /**
7893
+ * Static version of the {@see toObject} method.
7894
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7895
+ * the JSPB instance for transitional soy proto support:
7896
+ * http://goto/soy-param-migration
7897
+ * @param {!proto.sniipbillapi.ConvertBillToDraftRequest} msg The msg instance to transform.
7898
+ * @return {!Object}
7899
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7900
+ */
7901
+ proto.sniipbillapi.ConvertBillToDraftRequest.toObject = function(includeInstance, msg) {
7902
+ var f, obj = {
7903
+ billid: jspb.Message.getFieldWithDefault(msg, 1, 0),
7904
+ userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
7905
+ reason: jspb.Message.getFieldWithDefault(msg, 3, "")
7906
+ };
7907
+
7908
+ if (includeInstance) {
7909
+ obj.$jspbMessageInstance = msg;
7910
+ }
7911
+ return obj;
7912
+ };
7913
+ }
7914
+
7915
+
7916
+ /**
7917
+ * Deserializes binary data (in protobuf wire format).
7918
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7919
+ * @return {!proto.sniipbillapi.ConvertBillToDraftRequest}
7920
+ */
7921
+ proto.sniipbillapi.ConvertBillToDraftRequest.deserializeBinary = function(bytes) {
7922
+ var reader = new jspb.BinaryReader(bytes);
7923
+ var msg = new proto.sniipbillapi.ConvertBillToDraftRequest;
7924
+ return proto.sniipbillapi.ConvertBillToDraftRequest.deserializeBinaryFromReader(msg, reader);
7925
+ };
7926
+
7927
+
7928
+ /**
7929
+ * Deserializes binary data (in protobuf wire format) from the
7930
+ * given reader into the given message object.
7931
+ * @param {!proto.sniipbillapi.ConvertBillToDraftRequest} msg The message object to deserialize into.
7932
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7933
+ * @return {!proto.sniipbillapi.ConvertBillToDraftRequest}
7934
+ */
7935
+ proto.sniipbillapi.ConvertBillToDraftRequest.deserializeBinaryFromReader = function(msg, reader) {
7936
+ while (reader.nextField()) {
7937
+ if (reader.isEndGroup()) {
7938
+ break;
7939
+ }
7940
+ var field = reader.getFieldNumber();
7941
+ switch (field) {
7942
+ case 1:
7943
+ var value = /** @type {number} */ (reader.readInt64());
7944
+ msg.setBillid(value);
7945
+ break;
7946
+ case 2:
7947
+ var value = /** @type {number} */ (reader.readInt64());
7948
+ msg.setUserid(value);
7949
+ break;
7950
+ case 3:
7951
+ var value = /** @type {string} */ (reader.readString());
7952
+ msg.setReason(value);
7953
+ break;
7954
+ default:
7955
+ reader.skipField();
7956
+ break;
7957
+ }
7958
+ }
7959
+ return msg;
7960
+ };
7961
+
7962
+
7963
+ /**
7964
+ * Serializes the message to binary data (in protobuf wire format).
7965
+ * @return {!Uint8Array}
7966
+ */
7967
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.serializeBinary = function() {
7968
+ var writer = new jspb.BinaryWriter();
7969
+ proto.sniipbillapi.ConvertBillToDraftRequest.serializeBinaryToWriter(this, writer);
7970
+ return writer.getResultBuffer();
7971
+ };
7972
+
7973
+
7974
+ /**
7975
+ * Serializes the given message to binary data (in protobuf wire
7976
+ * format), writing to the given BinaryWriter.
7977
+ * @param {!proto.sniipbillapi.ConvertBillToDraftRequest} message
7978
+ * @param {!jspb.BinaryWriter} writer
7979
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7980
+ */
7981
+ proto.sniipbillapi.ConvertBillToDraftRequest.serializeBinaryToWriter = function(message, writer) {
7982
+ var f = undefined;
7983
+ f = message.getBillid();
7984
+ if (f !== 0) {
7985
+ writer.writeInt64(
7986
+ 1,
7987
+ f
7988
+ );
7989
+ }
7990
+ f = message.getUserid();
7991
+ if (f !== 0) {
7992
+ writer.writeInt64(
7993
+ 2,
7994
+ f
7995
+ );
7996
+ }
7997
+ f = message.getReason();
7998
+ if (f.length > 0) {
7999
+ writer.writeString(
8000
+ 3,
8001
+ f
8002
+ );
8003
+ }
8004
+ };
8005
+
8006
+
8007
+ /**
8008
+ * optional int64 billId = 1;
8009
+ * @return {number}
8010
+ */
8011
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.getBillid = function() {
8012
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
8013
+ };
8014
+
8015
+
8016
+ /**
8017
+ * @param {number} value
8018
+ * @return {!proto.sniipbillapi.ConvertBillToDraftRequest} returns this
8019
+ */
8020
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.setBillid = function(value) {
8021
+ return jspb.Message.setProto3IntField(this, 1, value);
8022
+ };
8023
+
8024
+
8025
+ /**
8026
+ * optional int64 userId = 2;
8027
+ * @return {number}
8028
+ */
8029
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.getUserid = function() {
8030
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8031
+ };
8032
+
8033
+
8034
+ /**
8035
+ * @param {number} value
8036
+ * @return {!proto.sniipbillapi.ConvertBillToDraftRequest} returns this
8037
+ */
8038
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.setUserid = function(value) {
8039
+ return jspb.Message.setProto3IntField(this, 2, value);
8040
+ };
8041
+
8042
+
8043
+ /**
8044
+ * optional string reason = 3;
8045
+ * @return {string}
8046
+ */
8047
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.getReason = function() {
8048
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
8049
+ };
8050
+
8051
+
8052
+ /**
8053
+ * @param {string} value
8054
+ * @return {!proto.sniipbillapi.ConvertBillToDraftRequest} returns this
8055
+ */
8056
+ proto.sniipbillapi.ConvertBillToDraftRequest.prototype.setReason = function(value) {
8057
+ return jspb.Message.setProto3StringField(this, 3, value);
8058
+ };
8059
+
8060
+
8061
+
8062
+
8063
+
8064
+ if (jspb.Message.GENERATE_TO_OBJECT) {
8065
+ /**
8066
+ * Creates an object representation of this proto.
8067
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
8068
+ * Optional fields that are not set will be set to undefined.
8069
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
8070
+ * For the list of reserved names please see:
8071
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
8072
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
8073
+ * JSPB instance for transitional soy proto support:
8074
+ * http://goto/soy-param-migration
8075
+ * @return {!Object}
8076
+ */
8077
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.toObject = function(opt_includeInstance) {
8078
+ return proto.sniipbillapi.ConvertBillToDraftResponse.toObject(opt_includeInstance, this);
8079
+ };
8080
+
8081
+
8082
+ /**
8083
+ * Static version of the {@see toObject} method.
8084
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
8085
+ * the JSPB instance for transitional soy proto support:
8086
+ * http://goto/soy-param-migration
8087
+ * @param {!proto.sniipbillapi.ConvertBillToDraftResponse} msg The msg instance to transform.
8088
+ * @return {!Object}
8089
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8090
+ */
8091
+ proto.sniipbillapi.ConvertBillToDraftResponse.toObject = function(includeInstance, msg) {
8092
+ var f, obj = {
8093
+ responsecode: (f = msg.getResponsecode()) && proto.sniipbillapi.ResponseCode.toObject(includeInstance, f),
8094
+ billid: jspb.Message.getFieldWithDefault(msg, 2, 0)
8095
+ };
8096
+
8097
+ if (includeInstance) {
8098
+ obj.$jspbMessageInstance = msg;
8099
+ }
8100
+ return obj;
8101
+ };
8102
+ }
8103
+
8104
+
8105
+ /**
8106
+ * Deserializes binary data (in protobuf wire format).
8107
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
8108
+ * @return {!proto.sniipbillapi.ConvertBillToDraftResponse}
8109
+ */
8110
+ proto.sniipbillapi.ConvertBillToDraftResponse.deserializeBinary = function(bytes) {
8111
+ var reader = new jspb.BinaryReader(bytes);
8112
+ var msg = new proto.sniipbillapi.ConvertBillToDraftResponse;
8113
+ return proto.sniipbillapi.ConvertBillToDraftResponse.deserializeBinaryFromReader(msg, reader);
8114
+ };
8115
+
8116
+
8117
+ /**
8118
+ * Deserializes binary data (in protobuf wire format) from the
8119
+ * given reader into the given message object.
8120
+ * @param {!proto.sniipbillapi.ConvertBillToDraftResponse} msg The message object to deserialize into.
8121
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
8122
+ * @return {!proto.sniipbillapi.ConvertBillToDraftResponse}
8123
+ */
8124
+ proto.sniipbillapi.ConvertBillToDraftResponse.deserializeBinaryFromReader = function(msg, reader) {
8125
+ while (reader.nextField()) {
8126
+ if (reader.isEndGroup()) {
8127
+ break;
8128
+ }
8129
+ var field = reader.getFieldNumber();
8130
+ switch (field) {
8131
+ case 1:
8132
+ var value = new proto.sniipbillapi.ResponseCode;
8133
+ reader.readMessage(value,proto.sniipbillapi.ResponseCode.deserializeBinaryFromReader);
8134
+ msg.setResponsecode(value);
8135
+ break;
8136
+ case 2:
8137
+ var value = /** @type {number} */ (reader.readInt64());
8138
+ msg.setBillid(value);
8139
+ break;
8140
+ default:
8141
+ reader.skipField();
8142
+ break;
8143
+ }
8144
+ }
8145
+ return msg;
8146
+ };
8147
+
8148
+
8149
+ /**
8150
+ * Serializes the message to binary data (in protobuf wire format).
8151
+ * @return {!Uint8Array}
8152
+ */
8153
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.serializeBinary = function() {
8154
+ var writer = new jspb.BinaryWriter();
8155
+ proto.sniipbillapi.ConvertBillToDraftResponse.serializeBinaryToWriter(this, writer);
8156
+ return writer.getResultBuffer();
8157
+ };
8158
+
8159
+
8160
+ /**
8161
+ * Serializes the given message to binary data (in protobuf wire
8162
+ * format), writing to the given BinaryWriter.
8163
+ * @param {!proto.sniipbillapi.ConvertBillToDraftResponse} message
8164
+ * @param {!jspb.BinaryWriter} writer
8165
+ * @suppress {unusedLocalVariables} f is only used for nested messages
8166
+ */
8167
+ proto.sniipbillapi.ConvertBillToDraftResponse.serializeBinaryToWriter = function(message, writer) {
8168
+ var f = undefined;
8169
+ f = message.getResponsecode();
8170
+ if (f != null) {
8171
+ writer.writeMessage(
8172
+ 1,
8173
+ f,
8174
+ proto.sniipbillapi.ResponseCode.serializeBinaryToWriter
8175
+ );
8176
+ }
8177
+ f = message.getBillid();
8178
+ if (f !== 0) {
8179
+ writer.writeInt64(
8180
+ 2,
8181
+ f
8182
+ );
8183
+ }
8184
+ };
8185
+
8186
+
8187
+ /**
8188
+ * optional ResponseCode responseCode = 1;
8189
+ * @return {?proto.sniipbillapi.ResponseCode}
8190
+ */
8191
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.getResponsecode = function() {
8192
+ return /** @type{?proto.sniipbillapi.ResponseCode} */ (
8193
+ jspb.Message.getWrapperField(this, proto.sniipbillapi.ResponseCode, 1));
8194
+ };
8195
+
8196
+
8197
+ /**
8198
+ * @param {?proto.sniipbillapi.ResponseCode|undefined} value
8199
+ * @return {!proto.sniipbillapi.ConvertBillToDraftResponse} returns this
8200
+ */
8201
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.setResponsecode = function(value) {
8202
+ return jspb.Message.setWrapperField(this, 1, value);
8203
+ };
8204
+
8205
+
8206
+ /**
8207
+ * Clears the message field making it undefined.
8208
+ * @return {!proto.sniipbillapi.ConvertBillToDraftResponse} returns this
8209
+ */
8210
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.clearResponsecode = function() {
8211
+ return this.setResponsecode(undefined);
8212
+ };
8213
+
8214
+
8215
+ /**
8216
+ * Returns whether this field is set.
8217
+ * @return {boolean}
8218
+ */
8219
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.hasResponsecode = function() {
8220
+ return jspb.Message.getField(this, 1) != null;
8221
+ };
8222
+
8223
+
8224
+ /**
8225
+ * optional int64 billId = 2;
8226
+ * @return {number}
8227
+ */
8228
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.getBillid = function() {
8229
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
8230
+ };
8231
+
8232
+
8233
+ /**
8234
+ * @param {number} value
8235
+ * @return {!proto.sniipbillapi.ConvertBillToDraftResponse} returns this
8236
+ */
8237
+ proto.sniipbillapi.ConvertBillToDraftResponse.prototype.setBillid = function(value) {
8238
+ return jspb.Message.setProto3IntField(this, 2, value);
8239
+ };
8240
+
8241
+
8242
+
7828
8243
  /**
7829
8244
  * List of repeated fields within this message type.
7830
8245
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "26.3.14940",
3
+ "version": "26.4.14961",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",