@sniipwebmaster/bill-service-client-grpcweb-ts 26.5.15367 → 26.5.15399
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.
|
@@ -513,6 +513,49 @@ export class SniipBillAPIServiceClient {
|
|
|
513
513
|
this.methodDescriptorDeleteBill);
|
|
514
514
|
}
|
|
515
515
|
|
|
516
|
+
methodDescriptorBulkDeleteBills = new grpcWeb.MethodDescriptor(
|
|
517
|
+
'/sniipbillapi.SniipBillAPIService/BulkDeleteBills',
|
|
518
|
+
grpcWeb.MethodType.UNARY,
|
|
519
|
+
service_pb.BulkDeleteBillsRequest,
|
|
520
|
+
service_pb.ResponseCode,
|
|
521
|
+
(request: service_pb.BulkDeleteBillsRequest) => {
|
|
522
|
+
return request.serializeBinary();
|
|
523
|
+
},
|
|
524
|
+
service_pb.ResponseCode.deserializeBinary
|
|
525
|
+
);
|
|
526
|
+
|
|
527
|
+
bulkDeleteBills(
|
|
528
|
+
request: service_pb.BulkDeleteBillsRequest,
|
|
529
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.ResponseCode>;
|
|
530
|
+
|
|
531
|
+
bulkDeleteBills(
|
|
532
|
+
request: service_pb.BulkDeleteBillsRequest,
|
|
533
|
+
metadata: grpcWeb.Metadata | null,
|
|
534
|
+
callback: (err: grpcWeb.RpcError,
|
|
535
|
+
response: service_pb.ResponseCode) => void): grpcWeb.ClientReadableStream<service_pb.ResponseCode>;
|
|
536
|
+
|
|
537
|
+
bulkDeleteBills(
|
|
538
|
+
request: service_pb.BulkDeleteBillsRequest,
|
|
539
|
+
metadata?: grpcWeb.Metadata | null,
|
|
540
|
+
callback?: (err: grpcWeb.RpcError,
|
|
541
|
+
response: service_pb.ResponseCode) => void) {
|
|
542
|
+
if (callback !== undefined) {
|
|
543
|
+
return this.client_.rpcCall(
|
|
544
|
+
this.hostname_ +
|
|
545
|
+
'/sniipbillapi.SniipBillAPIService/BulkDeleteBills',
|
|
546
|
+
request,
|
|
547
|
+
metadata || {},
|
|
548
|
+
this.methodDescriptorBulkDeleteBills,
|
|
549
|
+
callback);
|
|
550
|
+
}
|
|
551
|
+
return this.client_.unaryCall(
|
|
552
|
+
this.hostname_ +
|
|
553
|
+
'/sniipbillapi.SniipBillAPIService/BulkDeleteBills',
|
|
554
|
+
request,
|
|
555
|
+
metadata || {},
|
|
556
|
+
this.methodDescriptorBulkDeleteBills);
|
|
557
|
+
}
|
|
558
|
+
|
|
516
559
|
methodDescriptorDeleteBills = new grpcWeb.MethodDescriptor(
|
|
517
560
|
'/sniipbillapi.SniipBillAPIService/DeleteBills',
|
|
518
561
|
grpcWeb.MethodType.UNARY,
|
|
@@ -2691,6 +2691,26 @@ export namespace DeleteBillRequest {
|
|
|
2691
2691
|
}
|
|
2692
2692
|
}
|
|
2693
2693
|
|
|
2694
|
+
export class BulkDeleteBillsRequest extends jspb.Message {
|
|
2695
|
+
getBillidsList(): Array<number>;
|
|
2696
|
+
setBillidsList(value: Array<number>): BulkDeleteBillsRequest;
|
|
2697
|
+
clearBillidsList(): BulkDeleteBillsRequest;
|
|
2698
|
+
addBillids(value: number, index?: number): BulkDeleteBillsRequest;
|
|
2699
|
+
|
|
2700
|
+
serializeBinary(): Uint8Array;
|
|
2701
|
+
toObject(includeInstance?: boolean): BulkDeleteBillsRequest.AsObject;
|
|
2702
|
+
static toObject(includeInstance: boolean, msg: BulkDeleteBillsRequest): BulkDeleteBillsRequest.AsObject;
|
|
2703
|
+
static serializeBinaryToWriter(message: BulkDeleteBillsRequest, writer: jspb.BinaryWriter): void;
|
|
2704
|
+
static deserializeBinary(bytes: Uint8Array): BulkDeleteBillsRequest;
|
|
2705
|
+
static deserializeBinaryFromReader(message: BulkDeleteBillsRequest, reader: jspb.BinaryReader): BulkDeleteBillsRequest;
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
export namespace BulkDeleteBillsRequest {
|
|
2709
|
+
export type AsObject = {
|
|
2710
|
+
billidsList: Array<number>,
|
|
2711
|
+
}
|
|
2712
|
+
}
|
|
2713
|
+
|
|
2694
2714
|
export class DeleteBillsRequest extends jspb.Message {
|
|
2695
2715
|
getUserid(): number;
|
|
2696
2716
|
setUserid(value: number): DeleteBillsRequest;
|
|
@@ -68,6 +68,7 @@ goog.exportSymbol('proto.sniipbillapi.BillsSummaryResponse', null, global);
|
|
|
68
68
|
goog.exportSymbol('proto.sniipbillapi.BlockedOrganisation', null, global);
|
|
69
69
|
goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserRequest', null, global);
|
|
70
70
|
goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserResponse', null, global);
|
|
71
|
+
goog.exportSymbol('proto.sniipbillapi.BulkDeleteBillsRequest', null, global);
|
|
71
72
|
goog.exportSymbol('proto.sniipbillapi.CheckUserBillerIdsRequest', null, global);
|
|
72
73
|
goog.exportSymbol('proto.sniipbillapi.CheckUserBillerIdsResponse', null, global);
|
|
73
74
|
goog.exportSymbol('proto.sniipbillapi.ConvertBillToDraftRequest', null, global);
|
|
@@ -1681,6 +1682,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
1681
1682
|
*/
|
|
1682
1683
|
proto.sniipbillapi.DeleteBillRequest.displayName = 'proto.sniipbillapi.DeleteBillRequest';
|
|
1683
1684
|
}
|
|
1685
|
+
/**
|
|
1686
|
+
* Generated by JsPbCodeGenerator.
|
|
1687
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1688
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1689
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1690
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1691
|
+
* valid.
|
|
1692
|
+
* @extends {jspb.Message}
|
|
1693
|
+
* @constructor
|
|
1694
|
+
*/
|
|
1695
|
+
proto.sniipbillapi.BulkDeleteBillsRequest = function(opt_data) {
|
|
1696
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.sniipbillapi.BulkDeleteBillsRequest.repeatedFields_, null);
|
|
1697
|
+
};
|
|
1698
|
+
goog.inherits(proto.sniipbillapi.BulkDeleteBillsRequest, jspb.Message);
|
|
1699
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1700
|
+
/**
|
|
1701
|
+
* @public
|
|
1702
|
+
* @override
|
|
1703
|
+
*/
|
|
1704
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.displayName = 'proto.sniipbillapi.BulkDeleteBillsRequest';
|
|
1705
|
+
}
|
|
1684
1706
|
/**
|
|
1685
1707
|
* Generated by JsPbCodeGenerator.
|
|
1686
1708
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -24279,6 +24301,164 @@ proto.sniipbillapi.DeleteBillRequest.prototype.setBillid = function(value) {
|
|
|
24279
24301
|
|
|
24280
24302
|
|
|
24281
24303
|
|
|
24304
|
+
/**
|
|
24305
|
+
* List of repeated fields within this message type.
|
|
24306
|
+
* @private {!Array<number>}
|
|
24307
|
+
* @const
|
|
24308
|
+
*/
|
|
24309
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.repeatedFields_ = [1];
|
|
24310
|
+
|
|
24311
|
+
|
|
24312
|
+
|
|
24313
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
24314
|
+
/**
|
|
24315
|
+
* Creates an object representation of this proto.
|
|
24316
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
24317
|
+
* Optional fields that are not set will be set to undefined.
|
|
24318
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
24319
|
+
* For the list of reserved names please see:
|
|
24320
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
24321
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
24322
|
+
* JSPB instance for transitional soy proto support:
|
|
24323
|
+
* http://goto/soy-param-migration
|
|
24324
|
+
* @return {!Object}
|
|
24325
|
+
*/
|
|
24326
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
24327
|
+
return proto.sniipbillapi.BulkDeleteBillsRequest.toObject(opt_includeInstance, this);
|
|
24328
|
+
};
|
|
24329
|
+
|
|
24330
|
+
|
|
24331
|
+
/**
|
|
24332
|
+
* Static version of the {@see toObject} method.
|
|
24333
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
24334
|
+
* the JSPB instance for transitional soy proto support:
|
|
24335
|
+
* http://goto/soy-param-migration
|
|
24336
|
+
* @param {!proto.sniipbillapi.BulkDeleteBillsRequest} msg The msg instance to transform.
|
|
24337
|
+
* @return {!Object}
|
|
24338
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24339
|
+
*/
|
|
24340
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.toObject = function(includeInstance, msg) {
|
|
24341
|
+
var f, obj = {
|
|
24342
|
+
billidsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
|
|
24343
|
+
};
|
|
24344
|
+
|
|
24345
|
+
if (includeInstance) {
|
|
24346
|
+
obj.$jspbMessageInstance = msg;
|
|
24347
|
+
}
|
|
24348
|
+
return obj;
|
|
24349
|
+
};
|
|
24350
|
+
}
|
|
24351
|
+
|
|
24352
|
+
|
|
24353
|
+
/**
|
|
24354
|
+
* Deserializes binary data (in protobuf wire format).
|
|
24355
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
24356
|
+
* @return {!proto.sniipbillapi.BulkDeleteBillsRequest}
|
|
24357
|
+
*/
|
|
24358
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.deserializeBinary = function(bytes) {
|
|
24359
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
24360
|
+
var msg = new proto.sniipbillapi.BulkDeleteBillsRequest;
|
|
24361
|
+
return proto.sniipbillapi.BulkDeleteBillsRequest.deserializeBinaryFromReader(msg, reader);
|
|
24362
|
+
};
|
|
24363
|
+
|
|
24364
|
+
|
|
24365
|
+
/**
|
|
24366
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
24367
|
+
* given reader into the given message object.
|
|
24368
|
+
* @param {!proto.sniipbillapi.BulkDeleteBillsRequest} msg The message object to deserialize into.
|
|
24369
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
24370
|
+
* @return {!proto.sniipbillapi.BulkDeleteBillsRequest}
|
|
24371
|
+
*/
|
|
24372
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
24373
|
+
while (reader.nextField()) {
|
|
24374
|
+
if (reader.isEndGroup()) {
|
|
24375
|
+
break;
|
|
24376
|
+
}
|
|
24377
|
+
var field = reader.getFieldNumber();
|
|
24378
|
+
switch (field) {
|
|
24379
|
+
case 1:
|
|
24380
|
+
var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt64() : [reader.readInt64()]);
|
|
24381
|
+
for (var i = 0; i < values.length; i++) {
|
|
24382
|
+
msg.addBillids(values[i]);
|
|
24383
|
+
}
|
|
24384
|
+
break;
|
|
24385
|
+
default:
|
|
24386
|
+
reader.skipField();
|
|
24387
|
+
break;
|
|
24388
|
+
}
|
|
24389
|
+
}
|
|
24390
|
+
return msg;
|
|
24391
|
+
};
|
|
24392
|
+
|
|
24393
|
+
|
|
24394
|
+
/**
|
|
24395
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
24396
|
+
* @return {!Uint8Array}
|
|
24397
|
+
*/
|
|
24398
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.prototype.serializeBinary = function() {
|
|
24399
|
+
var writer = new jspb.BinaryWriter();
|
|
24400
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.serializeBinaryToWriter(this, writer);
|
|
24401
|
+
return writer.getResultBuffer();
|
|
24402
|
+
};
|
|
24403
|
+
|
|
24404
|
+
|
|
24405
|
+
/**
|
|
24406
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
24407
|
+
* format), writing to the given BinaryWriter.
|
|
24408
|
+
* @param {!proto.sniipbillapi.BulkDeleteBillsRequest} message
|
|
24409
|
+
* @param {!jspb.BinaryWriter} writer
|
|
24410
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
24411
|
+
*/
|
|
24412
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
24413
|
+
var f = undefined;
|
|
24414
|
+
f = message.getBillidsList();
|
|
24415
|
+
if (f.length > 0) {
|
|
24416
|
+
writer.writePackedInt64(
|
|
24417
|
+
1,
|
|
24418
|
+
f
|
|
24419
|
+
);
|
|
24420
|
+
}
|
|
24421
|
+
};
|
|
24422
|
+
|
|
24423
|
+
|
|
24424
|
+
/**
|
|
24425
|
+
* repeated int64 billIds = 1;
|
|
24426
|
+
* @return {!Array<number>}
|
|
24427
|
+
*/
|
|
24428
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.prototype.getBillidsList = function() {
|
|
24429
|
+
return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
|
|
24430
|
+
};
|
|
24431
|
+
|
|
24432
|
+
|
|
24433
|
+
/**
|
|
24434
|
+
* @param {!Array<number>} value
|
|
24435
|
+
* @return {!proto.sniipbillapi.BulkDeleteBillsRequest} returns this
|
|
24436
|
+
*/
|
|
24437
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.prototype.setBillidsList = function(value) {
|
|
24438
|
+
return jspb.Message.setField(this, 1, value || []);
|
|
24439
|
+
};
|
|
24440
|
+
|
|
24441
|
+
|
|
24442
|
+
/**
|
|
24443
|
+
* @param {number} value
|
|
24444
|
+
* @param {number=} opt_index
|
|
24445
|
+
* @return {!proto.sniipbillapi.BulkDeleteBillsRequest} returns this
|
|
24446
|
+
*/
|
|
24447
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.prototype.addBillids = function(value, opt_index) {
|
|
24448
|
+
return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
|
|
24449
|
+
};
|
|
24450
|
+
|
|
24451
|
+
|
|
24452
|
+
/**
|
|
24453
|
+
* Clears the list making it empty but non-null.
|
|
24454
|
+
* @return {!proto.sniipbillapi.BulkDeleteBillsRequest} returns this
|
|
24455
|
+
*/
|
|
24456
|
+
proto.sniipbillapi.BulkDeleteBillsRequest.prototype.clearBillidsList = function() {
|
|
24457
|
+
return this.setBillidsList([]);
|
|
24458
|
+
};
|
|
24459
|
+
|
|
24460
|
+
|
|
24461
|
+
|
|
24282
24462
|
|
|
24283
24463
|
|
|
24284
24464
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|