@aldiokta/protocgen 1.1.26 → 1.1.28
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.
- package/package.json +1 -1
- package/prisca/v1/bidding/bidding_grpc_pb.js +55 -0
- package/prisca/v1/bidding/bidding_pb.js +1042 -63
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +33 -0
- package/prisca/v1/core/access_manager/access_manager_pb.js +385 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +103 -3
- package/prisca/v1/core/auth/auth_pb.js +2519 -1181
- package/prisca/v1/core/file_upload/file_upload_pb.js +93 -3
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +183 -33
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +438 -46
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +31 -1
- package/prisca/v1/core/location/location_pb.js +446 -57
- package/prisca/v1/core/messaging/notification_grpc_pb.js +188 -0
- package/prisca/v1/core/messaging/notification_pb.js +2780 -0
- package/prisca/v1/core/price_condition/price_condition_pb.js +122 -2
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +234 -168
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +1987 -1775
- package/prisca/v1/delivery_order/delivery_order_pb.js +130 -70
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +228 -1
- package/prisca/v1/good_receipt/good_receipt_pb.js +4779 -0
- package/prisca/v1/invoice/invoice_grpc_pb.js +174 -0
- package/prisca/v1/invoice/invoice_pb.js +4398 -0
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +11 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +142 -22
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +105 -75
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +55 -177
- package/prisca/v1/quotation/quotation_pb.js +236 -26
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +33 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +413 -28
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +55 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +1076 -317
|
@@ -24,6 +24,7 @@ var global =
|
|
|
24
24
|
var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
|
|
25
25
|
goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
|
|
26
26
|
goog.exportSymbol('proto.Activity', null, global);
|
|
27
|
+
goog.exportSymbol('proto.ActivityApproval', null, global);
|
|
27
28
|
goog.exportSymbol('proto.ActivityRequest', null, global);
|
|
28
29
|
goog.exportSymbol('proto.ActivityResponse', null, global);
|
|
29
30
|
goog.exportSymbol('proto.DocumentRequest', null, global);
|
|
@@ -53,6 +54,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
53
54
|
*/
|
|
54
55
|
proto.LineOfActivity.displayName = 'proto.LineOfActivity';
|
|
55
56
|
}
|
|
57
|
+
/**
|
|
58
|
+
* Generated by JsPbCodeGenerator.
|
|
59
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
60
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
61
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
62
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
63
|
+
* valid.
|
|
64
|
+
* @extends {jspb.Message}
|
|
65
|
+
* @constructor
|
|
66
|
+
*/
|
|
67
|
+
proto.ActivityApproval = function(opt_data) {
|
|
68
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.ActivityApproval.repeatedFields_, null);
|
|
69
|
+
};
|
|
70
|
+
goog.inherits(proto.ActivityApproval, jspb.Message);
|
|
71
|
+
if (goog.DEBUG && !COMPILED) {
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
* @override
|
|
75
|
+
*/
|
|
76
|
+
proto.ActivityApproval.displayName = 'proto.ActivityApproval';
|
|
77
|
+
}
|
|
56
78
|
/**
|
|
57
79
|
* Generated by JsPbCodeGenerator.
|
|
58
80
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -260,8 +282,8 @@ proto.LineOfActivity.prototype.toObject = function(opt_includeInstance) {
|
|
|
260
282
|
*/
|
|
261
283
|
proto.LineOfActivity.toObject = function(includeInstance, msg) {
|
|
262
284
|
var f, obj = {
|
|
263
|
-
|
|
264
|
-
proto.
|
|
285
|
+
activityApprovalList: jspb.Message.toObjectList(msg.getActivityApprovalList(),
|
|
286
|
+
proto.ActivityApproval.toObject, includeInstance)
|
|
265
287
|
};
|
|
266
288
|
|
|
267
289
|
if (includeInstance) {
|
|
@@ -299,9 +321,9 @@ proto.LineOfActivity.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
299
321
|
var field = reader.getFieldNumber();
|
|
300
322
|
switch (field) {
|
|
301
323
|
case 1:
|
|
302
|
-
var value = new proto.
|
|
303
|
-
reader.readMessage(value,proto.
|
|
304
|
-
msg.
|
|
324
|
+
var value = new proto.ActivityApproval;
|
|
325
|
+
reader.readMessage(value,proto.ActivityApproval.deserializeBinaryFromReader);
|
|
326
|
+
msg.addActivityApproval(value);
|
|
305
327
|
break;
|
|
306
328
|
default:
|
|
307
329
|
reader.skipField();
|
|
@@ -332,11 +354,231 @@ proto.LineOfActivity.prototype.serializeBinary = function() {
|
|
|
332
354
|
*/
|
|
333
355
|
proto.LineOfActivity.serializeBinaryToWriter = function(message, writer) {
|
|
334
356
|
var f = undefined;
|
|
335
|
-
f = message.
|
|
357
|
+
f = message.getActivityApprovalList();
|
|
336
358
|
if (f.length > 0) {
|
|
337
359
|
writer.writeRepeatedMessage(
|
|
338
360
|
1,
|
|
339
361
|
f,
|
|
362
|
+
proto.ActivityApproval.serializeBinaryToWriter
|
|
363
|
+
);
|
|
364
|
+
}
|
|
365
|
+
};
|
|
366
|
+
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* repeated ActivityApproval activity_approval = 1;
|
|
370
|
+
* @return {!Array<!proto.ActivityApproval>}
|
|
371
|
+
*/
|
|
372
|
+
proto.LineOfActivity.prototype.getActivityApprovalList = function() {
|
|
373
|
+
return /** @type{!Array<!proto.ActivityApproval>} */ (
|
|
374
|
+
jspb.Message.getRepeatedWrapperField(this, proto.ActivityApproval, 1));
|
|
375
|
+
};
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
/**
|
|
379
|
+
* @param {!Array<!proto.ActivityApproval>} value
|
|
380
|
+
* @return {!proto.LineOfActivity} returns this
|
|
381
|
+
*/
|
|
382
|
+
proto.LineOfActivity.prototype.setActivityApprovalList = function(value) {
|
|
383
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
384
|
+
};
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* @param {!proto.ActivityApproval=} opt_value
|
|
389
|
+
* @param {number=} opt_index
|
|
390
|
+
* @return {!proto.ActivityApproval}
|
|
391
|
+
*/
|
|
392
|
+
proto.LineOfActivity.prototype.addActivityApproval = function(opt_value, opt_index) {
|
|
393
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ActivityApproval, opt_index);
|
|
394
|
+
};
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
/**
|
|
398
|
+
* Clears the list making it empty but non-null.
|
|
399
|
+
* @return {!proto.LineOfActivity} returns this
|
|
400
|
+
*/
|
|
401
|
+
proto.LineOfActivity.prototype.clearActivityApprovalList = function() {
|
|
402
|
+
return this.setActivityApprovalList([]);
|
|
403
|
+
};
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
/**
|
|
408
|
+
* List of repeated fields within this message type.
|
|
409
|
+
* @private {!Array<number>}
|
|
410
|
+
* @const
|
|
411
|
+
*/
|
|
412
|
+
proto.ActivityApproval.repeatedFields_ = [6];
|
|
413
|
+
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
417
|
+
/**
|
|
418
|
+
* Creates an object representation of this proto.
|
|
419
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
420
|
+
* Optional fields that are not set will be set to undefined.
|
|
421
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
422
|
+
* For the list of reserved names please see:
|
|
423
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
424
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
425
|
+
* JSPB instance for transitional soy proto support:
|
|
426
|
+
* http://goto/soy-param-migration
|
|
427
|
+
* @return {!Object}
|
|
428
|
+
*/
|
|
429
|
+
proto.ActivityApproval.prototype.toObject = function(opt_includeInstance) {
|
|
430
|
+
return proto.ActivityApproval.toObject(opt_includeInstance, this);
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
/**
|
|
435
|
+
* Static version of the {@see toObject} method.
|
|
436
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
437
|
+
* the JSPB instance for transitional soy proto support:
|
|
438
|
+
* http://goto/soy-param-migration
|
|
439
|
+
* @param {!proto.ActivityApproval} msg The msg instance to transform.
|
|
440
|
+
* @return {!Object}
|
|
441
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
442
|
+
*/
|
|
443
|
+
proto.ActivityApproval.toObject = function(includeInstance, msg) {
|
|
444
|
+
var f, obj = {
|
|
445
|
+
action: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
446
|
+
actor: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
447
|
+
document: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
448
|
+
timestamp: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
449
|
+
note: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
450
|
+
activityList: jspb.Message.toObjectList(msg.getActivityList(),
|
|
451
|
+
proto.Activity.toObject, includeInstance)
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
if (includeInstance) {
|
|
455
|
+
obj.$jspbMessageInstance = msg;
|
|
456
|
+
}
|
|
457
|
+
return obj;
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Deserializes binary data (in protobuf wire format).
|
|
464
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
465
|
+
* @return {!proto.ActivityApproval}
|
|
466
|
+
*/
|
|
467
|
+
proto.ActivityApproval.deserializeBinary = function(bytes) {
|
|
468
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
469
|
+
var msg = new proto.ActivityApproval;
|
|
470
|
+
return proto.ActivityApproval.deserializeBinaryFromReader(msg, reader);
|
|
471
|
+
};
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
/**
|
|
475
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
476
|
+
* given reader into the given message object.
|
|
477
|
+
* @param {!proto.ActivityApproval} msg The message object to deserialize into.
|
|
478
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
479
|
+
* @return {!proto.ActivityApproval}
|
|
480
|
+
*/
|
|
481
|
+
proto.ActivityApproval.deserializeBinaryFromReader = function(msg, reader) {
|
|
482
|
+
while (reader.nextField()) {
|
|
483
|
+
if (reader.isEndGroup()) {
|
|
484
|
+
break;
|
|
485
|
+
}
|
|
486
|
+
var field = reader.getFieldNumber();
|
|
487
|
+
switch (field) {
|
|
488
|
+
case 1:
|
|
489
|
+
var value = /** @type {string} */ (reader.readString());
|
|
490
|
+
msg.setAction(value);
|
|
491
|
+
break;
|
|
492
|
+
case 2:
|
|
493
|
+
var value = /** @type {string} */ (reader.readString());
|
|
494
|
+
msg.setActor(value);
|
|
495
|
+
break;
|
|
496
|
+
case 3:
|
|
497
|
+
var value = /** @type {string} */ (reader.readString());
|
|
498
|
+
msg.setDocument(value);
|
|
499
|
+
break;
|
|
500
|
+
case 4:
|
|
501
|
+
var value = /** @type {string} */ (reader.readString());
|
|
502
|
+
msg.setTimestamp(value);
|
|
503
|
+
break;
|
|
504
|
+
case 5:
|
|
505
|
+
var value = /** @type {string} */ (reader.readString());
|
|
506
|
+
msg.setNote(value);
|
|
507
|
+
break;
|
|
508
|
+
case 6:
|
|
509
|
+
var value = new proto.Activity;
|
|
510
|
+
reader.readMessage(value,proto.Activity.deserializeBinaryFromReader);
|
|
511
|
+
msg.addActivity(value);
|
|
512
|
+
break;
|
|
513
|
+
default:
|
|
514
|
+
reader.skipField();
|
|
515
|
+
break;
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
return msg;
|
|
519
|
+
};
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
524
|
+
* @return {!Uint8Array}
|
|
525
|
+
*/
|
|
526
|
+
proto.ActivityApproval.prototype.serializeBinary = function() {
|
|
527
|
+
var writer = new jspb.BinaryWriter();
|
|
528
|
+
proto.ActivityApproval.serializeBinaryToWriter(this, writer);
|
|
529
|
+
return writer.getResultBuffer();
|
|
530
|
+
};
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
535
|
+
* format), writing to the given BinaryWriter.
|
|
536
|
+
* @param {!proto.ActivityApproval} message
|
|
537
|
+
* @param {!jspb.BinaryWriter} writer
|
|
538
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
539
|
+
*/
|
|
540
|
+
proto.ActivityApproval.serializeBinaryToWriter = function(message, writer) {
|
|
541
|
+
var f = undefined;
|
|
542
|
+
f = message.getAction();
|
|
543
|
+
if (f.length > 0) {
|
|
544
|
+
writer.writeString(
|
|
545
|
+
1,
|
|
546
|
+
f
|
|
547
|
+
);
|
|
548
|
+
}
|
|
549
|
+
f = message.getActor();
|
|
550
|
+
if (f.length > 0) {
|
|
551
|
+
writer.writeString(
|
|
552
|
+
2,
|
|
553
|
+
f
|
|
554
|
+
);
|
|
555
|
+
}
|
|
556
|
+
f = message.getDocument();
|
|
557
|
+
if (f.length > 0) {
|
|
558
|
+
writer.writeString(
|
|
559
|
+
3,
|
|
560
|
+
f
|
|
561
|
+
);
|
|
562
|
+
}
|
|
563
|
+
f = message.getTimestamp();
|
|
564
|
+
if (f.length > 0) {
|
|
565
|
+
writer.writeString(
|
|
566
|
+
4,
|
|
567
|
+
f
|
|
568
|
+
);
|
|
569
|
+
}
|
|
570
|
+
f = message.getNote();
|
|
571
|
+
if (f.length > 0) {
|
|
572
|
+
writer.writeString(
|
|
573
|
+
5,
|
|
574
|
+
f
|
|
575
|
+
);
|
|
576
|
+
}
|
|
577
|
+
f = message.getActivityList();
|
|
578
|
+
if (f.length > 0) {
|
|
579
|
+
writer.writeRepeatedMessage(
|
|
580
|
+
6,
|
|
581
|
+
f,
|
|
340
582
|
proto.Activity.serializeBinaryToWriter
|
|
341
583
|
);
|
|
342
584
|
}
|
|
@@ -344,21 +586,111 @@ proto.LineOfActivity.serializeBinaryToWriter = function(message, writer) {
|
|
|
344
586
|
|
|
345
587
|
|
|
346
588
|
/**
|
|
347
|
-
*
|
|
589
|
+
* optional string action = 1;
|
|
590
|
+
* @return {string}
|
|
591
|
+
*/
|
|
592
|
+
proto.ActivityApproval.prototype.getAction = function() {
|
|
593
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
594
|
+
};
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
/**
|
|
598
|
+
* @param {string} value
|
|
599
|
+
* @return {!proto.ActivityApproval} returns this
|
|
600
|
+
*/
|
|
601
|
+
proto.ActivityApproval.prototype.setAction = function(value) {
|
|
602
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
603
|
+
};
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
/**
|
|
607
|
+
* optional string actor = 2;
|
|
608
|
+
* @return {string}
|
|
609
|
+
*/
|
|
610
|
+
proto.ActivityApproval.prototype.getActor = function() {
|
|
611
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
612
|
+
};
|
|
613
|
+
|
|
614
|
+
|
|
615
|
+
/**
|
|
616
|
+
* @param {string} value
|
|
617
|
+
* @return {!proto.ActivityApproval} returns this
|
|
618
|
+
*/
|
|
619
|
+
proto.ActivityApproval.prototype.setActor = function(value) {
|
|
620
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
|
|
624
|
+
/**
|
|
625
|
+
* optional string document = 3;
|
|
626
|
+
* @return {string}
|
|
627
|
+
*/
|
|
628
|
+
proto.ActivityApproval.prototype.getDocument = function() {
|
|
629
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
630
|
+
};
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* @param {string} value
|
|
635
|
+
* @return {!proto.ActivityApproval} returns this
|
|
636
|
+
*/
|
|
637
|
+
proto.ActivityApproval.prototype.setDocument = function(value) {
|
|
638
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
639
|
+
};
|
|
640
|
+
|
|
641
|
+
|
|
642
|
+
/**
|
|
643
|
+
* optional string timestamp = 4;
|
|
644
|
+
* @return {string}
|
|
645
|
+
*/
|
|
646
|
+
proto.ActivityApproval.prototype.getTimestamp = function() {
|
|
647
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
648
|
+
};
|
|
649
|
+
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* @param {string} value
|
|
653
|
+
* @return {!proto.ActivityApproval} returns this
|
|
654
|
+
*/
|
|
655
|
+
proto.ActivityApproval.prototype.setTimestamp = function(value) {
|
|
656
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
657
|
+
};
|
|
658
|
+
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* optional string note = 5;
|
|
662
|
+
* @return {string}
|
|
663
|
+
*/
|
|
664
|
+
proto.ActivityApproval.prototype.getNote = function() {
|
|
665
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
|
|
669
|
+
/**
|
|
670
|
+
* @param {string} value
|
|
671
|
+
* @return {!proto.ActivityApproval} returns this
|
|
672
|
+
*/
|
|
673
|
+
proto.ActivityApproval.prototype.setNote = function(value) {
|
|
674
|
+
return jspb.Message.setProto3StringField(this, 5, value);
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* repeated Activity activity = 6;
|
|
348
680
|
* @return {!Array<!proto.Activity>}
|
|
349
681
|
*/
|
|
350
|
-
proto.
|
|
682
|
+
proto.ActivityApproval.prototype.getActivityList = function() {
|
|
351
683
|
return /** @type{!Array<!proto.Activity>} */ (
|
|
352
|
-
jspb.Message.getRepeatedWrapperField(this, proto.Activity,
|
|
684
|
+
jspb.Message.getRepeatedWrapperField(this, proto.Activity, 6));
|
|
353
685
|
};
|
|
354
686
|
|
|
355
687
|
|
|
356
688
|
/**
|
|
357
689
|
* @param {!Array<!proto.Activity>} value
|
|
358
|
-
* @return {!proto.
|
|
690
|
+
* @return {!proto.ActivityApproval} returns this
|
|
359
691
|
*/
|
|
360
|
-
proto.
|
|
361
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
692
|
+
proto.ActivityApproval.prototype.setActivityList = function(value) {
|
|
693
|
+
return jspb.Message.setRepeatedWrapperField(this, 6, value);
|
|
362
694
|
};
|
|
363
695
|
|
|
364
696
|
|
|
@@ -367,16 +699,16 @@ proto.LineOfActivity.prototype.setActivityList = function(value) {
|
|
|
367
699
|
* @param {number=} opt_index
|
|
368
700
|
* @return {!proto.Activity}
|
|
369
701
|
*/
|
|
370
|
-
proto.
|
|
371
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
702
|
+
proto.ActivityApproval.prototype.addActivity = function(opt_value, opt_index) {
|
|
703
|
+
return jspb.Message.addToRepeatedWrapperField(this, 6, opt_value, proto.Activity, opt_index);
|
|
372
704
|
};
|
|
373
705
|
|
|
374
706
|
|
|
375
707
|
/**
|
|
376
708
|
* Clears the list making it empty but non-null.
|
|
377
|
-
* @return {!proto.
|
|
709
|
+
* @return {!proto.ActivityApproval} returns this
|
|
378
710
|
*/
|
|
379
|
-
proto.
|
|
711
|
+
proto.ActivityApproval.prototype.clearActivityList = function() {
|
|
380
712
|
return this.setActivityList([]);
|
|
381
713
|
};
|
|
382
714
|
|
|
@@ -413,11 +745,13 @@ proto.Activity.prototype.toObject = function(opt_includeInstance) {
|
|
|
413
745
|
*/
|
|
414
746
|
proto.Activity.toObject = function(includeInstance, msg) {
|
|
415
747
|
var f, obj = {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
748
|
+
newValue: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
749
|
+
oldValue: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
750
|
+
changeType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
751
|
+
description: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
752
|
+
employees: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
753
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
754
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 7, "")
|
|
421
755
|
};
|
|
422
756
|
|
|
423
757
|
if (includeInstance) {
|
|
@@ -456,23 +790,31 @@ proto.Activity.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
456
790
|
switch (field) {
|
|
457
791
|
case 1:
|
|
458
792
|
var value = /** @type {string} */ (reader.readString());
|
|
459
|
-
msg.
|
|
793
|
+
msg.setNewValue(value);
|
|
460
794
|
break;
|
|
461
795
|
case 2:
|
|
462
796
|
var value = /** @type {string} */ (reader.readString());
|
|
463
|
-
msg.
|
|
797
|
+
msg.setOldValue(value);
|
|
464
798
|
break;
|
|
465
799
|
case 3:
|
|
466
800
|
var value = /** @type {string} */ (reader.readString());
|
|
467
|
-
msg.
|
|
801
|
+
msg.setChangeType(value);
|
|
468
802
|
break;
|
|
469
803
|
case 4:
|
|
470
804
|
var value = /** @type {string} */ (reader.readString());
|
|
471
|
-
msg.
|
|
805
|
+
msg.setDescription(value);
|
|
472
806
|
break;
|
|
473
807
|
case 5:
|
|
474
808
|
var value = /** @type {string} */ (reader.readString());
|
|
475
|
-
msg.
|
|
809
|
+
msg.setEmployees(value);
|
|
810
|
+
break;
|
|
811
|
+
case 6:
|
|
812
|
+
var value = /** @type {string} */ (reader.readString());
|
|
813
|
+
msg.setCreatedAt(value);
|
|
814
|
+
break;
|
|
815
|
+
case 7:
|
|
816
|
+
var value = /** @type {string} */ (reader.readString());
|
|
817
|
+
msg.setUpdatedAt(value);
|
|
476
818
|
break;
|
|
477
819
|
default:
|
|
478
820
|
reader.skipField();
|
|
@@ -503,49 +845,63 @@ proto.Activity.prototype.serializeBinary = function() {
|
|
|
503
845
|
*/
|
|
504
846
|
proto.Activity.serializeBinaryToWriter = function(message, writer) {
|
|
505
847
|
var f = undefined;
|
|
506
|
-
f = message.
|
|
848
|
+
f = message.getNewValue();
|
|
507
849
|
if (f.length > 0) {
|
|
508
850
|
writer.writeString(
|
|
509
851
|
1,
|
|
510
852
|
f
|
|
511
853
|
);
|
|
512
854
|
}
|
|
513
|
-
f = message.
|
|
855
|
+
f = message.getOldValue();
|
|
514
856
|
if (f.length > 0) {
|
|
515
857
|
writer.writeString(
|
|
516
858
|
2,
|
|
517
859
|
f
|
|
518
860
|
);
|
|
519
861
|
}
|
|
520
|
-
f = message.
|
|
862
|
+
f = message.getChangeType();
|
|
521
863
|
if (f.length > 0) {
|
|
522
864
|
writer.writeString(
|
|
523
865
|
3,
|
|
524
866
|
f
|
|
525
867
|
);
|
|
526
868
|
}
|
|
527
|
-
f = message.
|
|
869
|
+
f = message.getDescription();
|
|
528
870
|
if (f.length > 0) {
|
|
529
871
|
writer.writeString(
|
|
530
872
|
4,
|
|
531
873
|
f
|
|
532
874
|
);
|
|
533
875
|
}
|
|
534
|
-
f = message.
|
|
876
|
+
f = message.getEmployees();
|
|
535
877
|
if (f.length > 0) {
|
|
536
878
|
writer.writeString(
|
|
537
879
|
5,
|
|
538
880
|
f
|
|
539
881
|
);
|
|
540
882
|
}
|
|
883
|
+
f = message.getCreatedAt();
|
|
884
|
+
if (f.length > 0) {
|
|
885
|
+
writer.writeString(
|
|
886
|
+
6,
|
|
887
|
+
f
|
|
888
|
+
);
|
|
889
|
+
}
|
|
890
|
+
f = message.getUpdatedAt();
|
|
891
|
+
if (f.length > 0) {
|
|
892
|
+
writer.writeString(
|
|
893
|
+
7,
|
|
894
|
+
f
|
|
895
|
+
);
|
|
896
|
+
}
|
|
541
897
|
};
|
|
542
898
|
|
|
543
899
|
|
|
544
900
|
/**
|
|
545
|
-
* optional string
|
|
901
|
+
* optional string new_value = 1;
|
|
546
902
|
* @return {string}
|
|
547
903
|
*/
|
|
548
|
-
proto.Activity.prototype.
|
|
904
|
+
proto.Activity.prototype.getNewValue = function() {
|
|
549
905
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
550
906
|
};
|
|
551
907
|
|
|
@@ -554,16 +910,16 @@ proto.Activity.prototype.getAction = function() {
|
|
|
554
910
|
* @param {string} value
|
|
555
911
|
* @return {!proto.Activity} returns this
|
|
556
912
|
*/
|
|
557
|
-
proto.Activity.prototype.
|
|
913
|
+
proto.Activity.prototype.setNewValue = function(value) {
|
|
558
914
|
return jspb.Message.setProto3StringField(this, 1, value);
|
|
559
915
|
};
|
|
560
916
|
|
|
561
917
|
|
|
562
918
|
/**
|
|
563
|
-
* optional string
|
|
919
|
+
* optional string old_value = 2;
|
|
564
920
|
* @return {string}
|
|
565
921
|
*/
|
|
566
|
-
proto.Activity.prototype.
|
|
922
|
+
proto.Activity.prototype.getOldValue = function() {
|
|
567
923
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
568
924
|
};
|
|
569
925
|
|
|
@@ -572,16 +928,16 @@ proto.Activity.prototype.getActor = function() {
|
|
|
572
928
|
* @param {string} value
|
|
573
929
|
* @return {!proto.Activity} returns this
|
|
574
930
|
*/
|
|
575
|
-
proto.Activity.prototype.
|
|
931
|
+
proto.Activity.prototype.setOldValue = function(value) {
|
|
576
932
|
return jspb.Message.setProto3StringField(this, 2, value);
|
|
577
933
|
};
|
|
578
934
|
|
|
579
935
|
|
|
580
936
|
/**
|
|
581
|
-
* optional string
|
|
937
|
+
* optional string change_type = 3;
|
|
582
938
|
* @return {string}
|
|
583
939
|
*/
|
|
584
|
-
proto.Activity.prototype.
|
|
940
|
+
proto.Activity.prototype.getChangeType = function() {
|
|
585
941
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
586
942
|
};
|
|
587
943
|
|
|
@@ -590,16 +946,16 @@ proto.Activity.prototype.getDocument = function() {
|
|
|
590
946
|
* @param {string} value
|
|
591
947
|
* @return {!proto.Activity} returns this
|
|
592
948
|
*/
|
|
593
|
-
proto.Activity.prototype.
|
|
949
|
+
proto.Activity.prototype.setChangeType = function(value) {
|
|
594
950
|
return jspb.Message.setProto3StringField(this, 3, value);
|
|
595
951
|
};
|
|
596
952
|
|
|
597
953
|
|
|
598
954
|
/**
|
|
599
|
-
* optional string
|
|
955
|
+
* optional string description = 4;
|
|
600
956
|
* @return {string}
|
|
601
957
|
*/
|
|
602
|
-
proto.Activity.prototype.
|
|
958
|
+
proto.Activity.prototype.getDescription = function() {
|
|
603
959
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
604
960
|
};
|
|
605
961
|
|
|
@@ -608,16 +964,16 @@ proto.Activity.prototype.getTimestamp = function() {
|
|
|
608
964
|
* @param {string} value
|
|
609
965
|
* @return {!proto.Activity} returns this
|
|
610
966
|
*/
|
|
611
|
-
proto.Activity.prototype.
|
|
967
|
+
proto.Activity.prototype.setDescription = function(value) {
|
|
612
968
|
return jspb.Message.setProto3StringField(this, 4, value);
|
|
613
969
|
};
|
|
614
970
|
|
|
615
971
|
|
|
616
972
|
/**
|
|
617
|
-
* optional string
|
|
973
|
+
* optional string employees = 5;
|
|
618
974
|
* @return {string}
|
|
619
975
|
*/
|
|
620
|
-
proto.Activity.prototype.
|
|
976
|
+
proto.Activity.prototype.getEmployees = function() {
|
|
621
977
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
622
978
|
};
|
|
623
979
|
|
|
@@ -626,11 +982,47 @@ proto.Activity.prototype.getNote = function() {
|
|
|
626
982
|
* @param {string} value
|
|
627
983
|
* @return {!proto.Activity} returns this
|
|
628
984
|
*/
|
|
629
|
-
proto.Activity.prototype.
|
|
985
|
+
proto.Activity.prototype.setEmployees = function(value) {
|
|
630
986
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
631
987
|
};
|
|
632
988
|
|
|
633
989
|
|
|
990
|
+
/**
|
|
991
|
+
* optional string created_at = 6;
|
|
992
|
+
* @return {string}
|
|
993
|
+
*/
|
|
994
|
+
proto.Activity.prototype.getCreatedAt = function() {
|
|
995
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
996
|
+
};
|
|
997
|
+
|
|
998
|
+
|
|
999
|
+
/**
|
|
1000
|
+
* @param {string} value
|
|
1001
|
+
* @return {!proto.Activity} returns this
|
|
1002
|
+
*/
|
|
1003
|
+
proto.Activity.prototype.setCreatedAt = function(value) {
|
|
1004
|
+
return jspb.Message.setProto3StringField(this, 6, value);
|
|
1005
|
+
};
|
|
1006
|
+
|
|
1007
|
+
|
|
1008
|
+
/**
|
|
1009
|
+
* optional string updated_at = 7;
|
|
1010
|
+
* @return {string}
|
|
1011
|
+
*/
|
|
1012
|
+
proto.Activity.prototype.getUpdatedAt = function() {
|
|
1013
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1014
|
+
};
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* @param {string} value
|
|
1019
|
+
* @return {!proto.Activity} returns this
|
|
1020
|
+
*/
|
|
1021
|
+
proto.Activity.prototype.setUpdatedAt = function(value) {
|
|
1022
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
1023
|
+
};
|
|
1024
|
+
|
|
1025
|
+
|
|
634
1026
|
|
|
635
1027
|
|
|
636
1028
|
|