@aldiokta/protocgen 1.1.29 → 1.1.31
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 +1 -0
- package/prisca/v1/bidding/bidding_pb.js +206 -3
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +316 -16
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +61 -1
- package/prisca/v1/core/messaging/notification_grpc_pb.js +22 -0
- package/prisca/v1/core/messaging/notification_pb.js +425 -42
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +31 -1
- package/prisca/v1/delivery_order/delivery_order_pb.js +20 -1140
- package/prisca/v1/document_type/document_type_grpc_pb.js +22 -0
- package/prisca/v1/document_type/document_type_pb.js +214 -2
- package/prisca/v1/good_receipt/good_receipt_pb.js +25 -1235
- package/prisca/v1/invoice/invoice_pb.js +1615 -1559
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +1 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +4186 -21
- package/prisca/v1/quotation/quotation_grpc_pb.js +33 -0
- package/prisca/v1/quotation/quotation_pb.js +381 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +31 -1
|
@@ -23,6 +23,7 @@ var global =
|
|
|
23
23
|
|
|
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
|
+
goog.exportSymbol('proto.CountUnreadNotificationEmployeeRes', null, global);
|
|
26
27
|
goog.exportSymbol('proto.CreateNotificationReq', null, global);
|
|
27
28
|
goog.exportSymbol('proto.CreateNotificationRes', null, global);
|
|
28
29
|
goog.exportSymbol('proto.DeleteNotificationEmployeeReq', null, global);
|
|
@@ -287,13 +288,34 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
287
288
|
*/
|
|
288
289
|
proto.DeleteNotificationEmployeeRes.displayName = 'proto.DeleteNotificationEmployeeRes';
|
|
289
290
|
}
|
|
291
|
+
/**
|
|
292
|
+
* Generated by JsPbCodeGenerator.
|
|
293
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
294
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
295
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
296
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
297
|
+
* valid.
|
|
298
|
+
* @extends {jspb.Message}
|
|
299
|
+
* @constructor
|
|
300
|
+
*/
|
|
301
|
+
proto.CountUnreadNotificationEmployeeRes = function(opt_data) {
|
|
302
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
303
|
+
};
|
|
304
|
+
goog.inherits(proto.CountUnreadNotificationEmployeeRes, jspb.Message);
|
|
305
|
+
if (goog.DEBUG && !COMPILED) {
|
|
306
|
+
/**
|
|
307
|
+
* @public
|
|
308
|
+
* @override
|
|
309
|
+
*/
|
|
310
|
+
proto.CountUnreadNotificationEmployeeRes.displayName = 'proto.CountUnreadNotificationEmployeeRes';
|
|
311
|
+
}
|
|
290
312
|
|
|
291
313
|
/**
|
|
292
314
|
* List of repeated fields within this message type.
|
|
293
315
|
* @private {!Array<number>}
|
|
294
316
|
* @const
|
|
295
317
|
*/
|
|
296
|
-
proto.Notification.repeatedFields_ = [
|
|
318
|
+
proto.Notification.repeatedFields_ = [9];
|
|
297
319
|
|
|
298
320
|
|
|
299
321
|
|
|
@@ -330,8 +352,10 @@ referenceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
|
330
352
|
message: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
331
353
|
type: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
332
354
|
companyReferenceId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
333
|
-
|
|
334
|
-
|
|
355
|
+
documentType: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
356
|
+
documentReferenceId: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
|
357
|
+
createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
358
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
335
359
|
receiversList: jspb.Message.toObjectList(msg.getReceiversList(),
|
|
336
360
|
proto.NotificationEmployee.toObject, includeInstance)
|
|
337
361
|
};
|
|
@@ -388,13 +412,21 @@ proto.Notification.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
388
412
|
break;
|
|
389
413
|
case 5:
|
|
390
414
|
var value = /** @type {string} */ (reader.readString());
|
|
391
|
-
msg.
|
|
415
|
+
msg.setDocumentType(value);
|
|
392
416
|
break;
|
|
393
417
|
case 6:
|
|
394
418
|
var value = /** @type {string} */ (reader.readString());
|
|
395
|
-
msg.
|
|
419
|
+
msg.setDocumentReferenceId(value);
|
|
396
420
|
break;
|
|
397
421
|
case 7:
|
|
422
|
+
var value = /** @type {string} */ (reader.readString());
|
|
423
|
+
msg.setCreatedBy(value);
|
|
424
|
+
break;
|
|
425
|
+
case 8:
|
|
426
|
+
var value = /** @type {string} */ (reader.readString());
|
|
427
|
+
msg.setCreatedAt(value);
|
|
428
|
+
break;
|
|
429
|
+
case 9:
|
|
398
430
|
var value = new proto.NotificationEmployee;
|
|
399
431
|
reader.readMessage(value,proto.NotificationEmployee.deserializeBinaryFromReader);
|
|
400
432
|
msg.addReceivers(value);
|
|
@@ -456,24 +488,38 @@ proto.Notification.serializeBinaryToWriter = function(message, writer) {
|
|
|
456
488
|
f
|
|
457
489
|
);
|
|
458
490
|
}
|
|
459
|
-
f = message.
|
|
491
|
+
f = message.getDocumentType();
|
|
460
492
|
if (f.length > 0) {
|
|
461
493
|
writer.writeString(
|
|
462
494
|
5,
|
|
463
495
|
f
|
|
464
496
|
);
|
|
465
497
|
}
|
|
466
|
-
f = message.
|
|
498
|
+
f = message.getDocumentReferenceId();
|
|
467
499
|
if (f.length > 0) {
|
|
468
500
|
writer.writeString(
|
|
469
501
|
6,
|
|
470
502
|
f
|
|
471
503
|
);
|
|
472
504
|
}
|
|
505
|
+
f = message.getCreatedBy();
|
|
506
|
+
if (f.length > 0) {
|
|
507
|
+
writer.writeString(
|
|
508
|
+
7,
|
|
509
|
+
f
|
|
510
|
+
);
|
|
511
|
+
}
|
|
512
|
+
f = message.getCreatedAt();
|
|
513
|
+
if (f.length > 0) {
|
|
514
|
+
writer.writeString(
|
|
515
|
+
8,
|
|
516
|
+
f
|
|
517
|
+
);
|
|
518
|
+
}
|
|
473
519
|
f = message.getReceiversList();
|
|
474
520
|
if (f.length > 0) {
|
|
475
521
|
writer.writeRepeatedMessage(
|
|
476
|
-
|
|
522
|
+
9,
|
|
477
523
|
f,
|
|
478
524
|
proto.NotificationEmployee.serializeBinaryToWriter
|
|
479
525
|
);
|
|
@@ -554,10 +600,10 @@ proto.Notification.prototype.setCompanyReferenceId = function(value) {
|
|
|
554
600
|
|
|
555
601
|
|
|
556
602
|
/**
|
|
557
|
-
* optional string
|
|
603
|
+
* optional string document_type = 5;
|
|
558
604
|
* @return {string}
|
|
559
605
|
*/
|
|
560
|
-
proto.Notification.prototype.
|
|
606
|
+
proto.Notification.prototype.getDocumentType = function() {
|
|
561
607
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
562
608
|
};
|
|
563
609
|
|
|
@@ -566,16 +612,16 @@ proto.Notification.prototype.getCreatedBy = function() {
|
|
|
566
612
|
* @param {string} value
|
|
567
613
|
* @return {!proto.Notification} returns this
|
|
568
614
|
*/
|
|
569
|
-
proto.Notification.prototype.
|
|
615
|
+
proto.Notification.prototype.setDocumentType = function(value) {
|
|
570
616
|
return jspb.Message.setProto3StringField(this, 5, value);
|
|
571
617
|
};
|
|
572
618
|
|
|
573
619
|
|
|
574
620
|
/**
|
|
575
|
-
* optional string
|
|
621
|
+
* optional string document_reference_id = 6;
|
|
576
622
|
* @return {string}
|
|
577
623
|
*/
|
|
578
|
-
proto.Notification.prototype.
|
|
624
|
+
proto.Notification.prototype.getDocumentReferenceId = function() {
|
|
579
625
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
|
|
580
626
|
};
|
|
581
627
|
|
|
@@ -584,18 +630,54 @@ proto.Notification.prototype.getCreatedAt = function() {
|
|
|
584
630
|
* @param {string} value
|
|
585
631
|
* @return {!proto.Notification} returns this
|
|
586
632
|
*/
|
|
587
|
-
proto.Notification.prototype.
|
|
633
|
+
proto.Notification.prototype.setDocumentReferenceId = function(value) {
|
|
588
634
|
return jspb.Message.setProto3StringField(this, 6, value);
|
|
589
635
|
};
|
|
590
636
|
|
|
591
637
|
|
|
592
638
|
/**
|
|
593
|
-
*
|
|
639
|
+
* optional string created_by = 7;
|
|
640
|
+
* @return {string}
|
|
641
|
+
*/
|
|
642
|
+
proto.Notification.prototype.getCreatedBy = function() {
|
|
643
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
644
|
+
};
|
|
645
|
+
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* @param {string} value
|
|
649
|
+
* @return {!proto.Notification} returns this
|
|
650
|
+
*/
|
|
651
|
+
proto.Notification.prototype.setCreatedBy = function(value) {
|
|
652
|
+
return jspb.Message.setProto3StringField(this, 7, value);
|
|
653
|
+
};
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
* optional string created_at = 8;
|
|
658
|
+
* @return {string}
|
|
659
|
+
*/
|
|
660
|
+
proto.Notification.prototype.getCreatedAt = function() {
|
|
661
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
662
|
+
};
|
|
663
|
+
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
* @param {string} value
|
|
667
|
+
* @return {!proto.Notification} returns this
|
|
668
|
+
*/
|
|
669
|
+
proto.Notification.prototype.setCreatedAt = function(value) {
|
|
670
|
+
return jspb.Message.setProto3StringField(this, 8, value);
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* repeated NotificationEmployee receivers = 9;
|
|
594
676
|
* @return {!Array<!proto.NotificationEmployee>}
|
|
595
677
|
*/
|
|
596
678
|
proto.Notification.prototype.getReceiversList = function() {
|
|
597
679
|
return /** @type{!Array<!proto.NotificationEmployee>} */ (
|
|
598
|
-
jspb.Message.getRepeatedWrapperField(this, proto.NotificationEmployee,
|
|
680
|
+
jspb.Message.getRepeatedWrapperField(this, proto.NotificationEmployee, 9));
|
|
599
681
|
};
|
|
600
682
|
|
|
601
683
|
|
|
@@ -604,7 +686,7 @@ proto.Notification.prototype.getReceiversList = function() {
|
|
|
604
686
|
* @return {!proto.Notification} returns this
|
|
605
687
|
*/
|
|
606
688
|
proto.Notification.prototype.setReceiversList = function(value) {
|
|
607
|
-
return jspb.Message.setRepeatedWrapperField(this,
|
|
689
|
+
return jspb.Message.setRepeatedWrapperField(this, 9, value);
|
|
608
690
|
};
|
|
609
691
|
|
|
610
692
|
|
|
@@ -614,7 +696,7 @@ proto.Notification.prototype.setReceiversList = function(value) {
|
|
|
614
696
|
* @return {!proto.NotificationEmployee}
|
|
615
697
|
*/
|
|
616
698
|
proto.Notification.prototype.addReceivers = function(opt_value, opt_index) {
|
|
617
|
-
return jspb.Message.addToRepeatedWrapperField(this,
|
|
699
|
+
return jspb.Message.addToRepeatedWrapperField(this, 9, opt_value, proto.NotificationEmployee, opt_index);
|
|
618
700
|
};
|
|
619
701
|
|
|
620
702
|
|
|
@@ -915,9 +997,11 @@ companyReferenceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
|
915
997
|
message: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
916
998
|
type: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
917
999
|
isRead: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
1000
|
+
documentType: jspb.Message.getFieldWithDefault(msg, 7, ""),
|
|
1001
|
+
documentReferenceId: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
|
1002
|
+
createdBy: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
|
1003
|
+
createdAt: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
|
1004
|
+
updatedAt: jspb.Message.getFieldWithDefault(msg, 11, "")
|
|
921
1005
|
};
|
|
922
1006
|
|
|
923
1007
|
if (includeInstance) {
|
|
@@ -980,13 +1064,21 @@ proto.NotificationEmployeeItem.deserializeBinaryFromReader = function(msg, reade
|
|
|
980
1064
|
break;
|
|
981
1065
|
case 7:
|
|
982
1066
|
var value = /** @type {string} */ (reader.readString());
|
|
983
|
-
msg.
|
|
1067
|
+
msg.setDocumentType(value);
|
|
984
1068
|
break;
|
|
985
1069
|
case 8:
|
|
986
1070
|
var value = /** @type {string} */ (reader.readString());
|
|
987
|
-
msg.
|
|
1071
|
+
msg.setDocumentReferenceId(value);
|
|
988
1072
|
break;
|
|
989
1073
|
case 9:
|
|
1074
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1075
|
+
msg.setCreatedBy(value);
|
|
1076
|
+
break;
|
|
1077
|
+
case 10:
|
|
1078
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1079
|
+
msg.setCreatedAt(value);
|
|
1080
|
+
break;
|
|
1081
|
+
case 11:
|
|
990
1082
|
var value = /** @type {string} */ (reader.readString());
|
|
991
1083
|
msg.setUpdatedAt(value);
|
|
992
1084
|
break;
|
|
@@ -1061,27 +1153,41 @@ proto.NotificationEmployeeItem.serializeBinaryToWriter = function(message, write
|
|
|
1061
1153
|
f
|
|
1062
1154
|
);
|
|
1063
1155
|
}
|
|
1064
|
-
f = message.
|
|
1156
|
+
f = message.getDocumentType();
|
|
1065
1157
|
if (f.length > 0) {
|
|
1066
1158
|
writer.writeString(
|
|
1067
1159
|
7,
|
|
1068
1160
|
f
|
|
1069
1161
|
);
|
|
1070
1162
|
}
|
|
1071
|
-
f = message.
|
|
1163
|
+
f = message.getDocumentReferenceId();
|
|
1072
1164
|
if (f.length > 0) {
|
|
1073
1165
|
writer.writeString(
|
|
1074
1166
|
8,
|
|
1075
1167
|
f
|
|
1076
1168
|
);
|
|
1077
1169
|
}
|
|
1078
|
-
f = message.
|
|
1170
|
+
f = message.getCreatedBy();
|
|
1079
1171
|
if (f.length > 0) {
|
|
1080
1172
|
writer.writeString(
|
|
1081
1173
|
9,
|
|
1082
1174
|
f
|
|
1083
1175
|
);
|
|
1084
1176
|
}
|
|
1177
|
+
f = message.getCreatedAt();
|
|
1178
|
+
if (f.length > 0) {
|
|
1179
|
+
writer.writeString(
|
|
1180
|
+
10,
|
|
1181
|
+
f
|
|
1182
|
+
);
|
|
1183
|
+
}
|
|
1184
|
+
f = message.getUpdatedAt();
|
|
1185
|
+
if (f.length > 0) {
|
|
1186
|
+
writer.writeString(
|
|
1187
|
+
11,
|
|
1188
|
+
f
|
|
1189
|
+
);
|
|
1190
|
+
}
|
|
1085
1191
|
};
|
|
1086
1192
|
|
|
1087
1193
|
|
|
@@ -1194,10 +1300,10 @@ proto.NotificationEmployeeItem.prototype.setIsRead = function(value) {
|
|
|
1194
1300
|
|
|
1195
1301
|
|
|
1196
1302
|
/**
|
|
1197
|
-
* optional string
|
|
1303
|
+
* optional string document_type = 7;
|
|
1198
1304
|
* @return {string}
|
|
1199
1305
|
*/
|
|
1200
|
-
proto.NotificationEmployeeItem.prototype.
|
|
1306
|
+
proto.NotificationEmployeeItem.prototype.getDocumentType = function() {
|
|
1201
1307
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
|
|
1202
1308
|
};
|
|
1203
1309
|
|
|
@@ -1206,16 +1312,16 @@ proto.NotificationEmployeeItem.prototype.getCreatedBy = function() {
|
|
|
1206
1312
|
* @param {string} value
|
|
1207
1313
|
* @return {!proto.NotificationEmployeeItem} returns this
|
|
1208
1314
|
*/
|
|
1209
|
-
proto.NotificationEmployeeItem.prototype.
|
|
1315
|
+
proto.NotificationEmployeeItem.prototype.setDocumentType = function(value) {
|
|
1210
1316
|
return jspb.Message.setProto3StringField(this, 7, value);
|
|
1211
1317
|
};
|
|
1212
1318
|
|
|
1213
1319
|
|
|
1214
1320
|
/**
|
|
1215
|
-
* optional string
|
|
1321
|
+
* optional string document_reference_id = 8;
|
|
1216
1322
|
* @return {string}
|
|
1217
1323
|
*/
|
|
1218
|
-
proto.NotificationEmployeeItem.prototype.
|
|
1324
|
+
proto.NotificationEmployeeItem.prototype.getDocumentReferenceId = function() {
|
|
1219
1325
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
|
|
1220
1326
|
};
|
|
1221
1327
|
|
|
@@ -1224,16 +1330,16 @@ proto.NotificationEmployeeItem.prototype.getCreatedAt = function() {
|
|
|
1224
1330
|
* @param {string} value
|
|
1225
1331
|
* @return {!proto.NotificationEmployeeItem} returns this
|
|
1226
1332
|
*/
|
|
1227
|
-
proto.NotificationEmployeeItem.prototype.
|
|
1333
|
+
proto.NotificationEmployeeItem.prototype.setDocumentReferenceId = function(value) {
|
|
1228
1334
|
return jspb.Message.setProto3StringField(this, 8, value);
|
|
1229
1335
|
};
|
|
1230
1336
|
|
|
1231
1337
|
|
|
1232
1338
|
/**
|
|
1233
|
-
* optional string
|
|
1339
|
+
* optional string created_by = 9;
|
|
1234
1340
|
* @return {string}
|
|
1235
1341
|
*/
|
|
1236
|
-
proto.NotificationEmployeeItem.prototype.
|
|
1342
|
+
proto.NotificationEmployeeItem.prototype.getCreatedBy = function() {
|
|
1237
1343
|
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
1238
1344
|
};
|
|
1239
1345
|
|
|
@@ -1242,11 +1348,47 @@ proto.NotificationEmployeeItem.prototype.getUpdatedAt = function() {
|
|
|
1242
1348
|
* @param {string} value
|
|
1243
1349
|
* @return {!proto.NotificationEmployeeItem} returns this
|
|
1244
1350
|
*/
|
|
1245
|
-
proto.NotificationEmployeeItem.prototype.
|
|
1351
|
+
proto.NotificationEmployeeItem.prototype.setCreatedBy = function(value) {
|
|
1246
1352
|
return jspb.Message.setProto3StringField(this, 9, value);
|
|
1247
1353
|
};
|
|
1248
1354
|
|
|
1249
1355
|
|
|
1356
|
+
/**
|
|
1357
|
+
* optional string created_at = 10;
|
|
1358
|
+
* @return {string}
|
|
1359
|
+
*/
|
|
1360
|
+
proto.NotificationEmployeeItem.prototype.getCreatedAt = function() {
|
|
1361
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
|
|
1362
|
+
};
|
|
1363
|
+
|
|
1364
|
+
|
|
1365
|
+
/**
|
|
1366
|
+
* @param {string} value
|
|
1367
|
+
* @return {!proto.NotificationEmployeeItem} returns this
|
|
1368
|
+
*/
|
|
1369
|
+
proto.NotificationEmployeeItem.prototype.setCreatedAt = function(value) {
|
|
1370
|
+
return jspb.Message.setProto3StringField(this, 10, value);
|
|
1371
|
+
};
|
|
1372
|
+
|
|
1373
|
+
|
|
1374
|
+
/**
|
|
1375
|
+
* optional string updated_at = 11;
|
|
1376
|
+
* @return {string}
|
|
1377
|
+
*/
|
|
1378
|
+
proto.NotificationEmployeeItem.prototype.getUpdatedAt = function() {
|
|
1379
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
|
|
1380
|
+
};
|
|
1381
|
+
|
|
1382
|
+
|
|
1383
|
+
/**
|
|
1384
|
+
* @param {string} value
|
|
1385
|
+
* @return {!proto.NotificationEmployeeItem} returns this
|
|
1386
|
+
*/
|
|
1387
|
+
proto.NotificationEmployeeItem.prototype.setUpdatedAt = function(value) {
|
|
1388
|
+
return jspb.Message.setProto3StringField(this, 11, value);
|
|
1389
|
+
};
|
|
1390
|
+
|
|
1391
|
+
|
|
1250
1392
|
|
|
1251
1393
|
|
|
1252
1394
|
|
|
@@ -1666,7 +1808,7 @@ proto.GetListNotificationEmployeeRes.prototype.hasMeta = function() {
|
|
|
1666
1808
|
* @private {!Array<number>}
|
|
1667
1809
|
* @const
|
|
1668
1810
|
*/
|
|
1669
|
-
proto.CreateNotificationReq.repeatedFields_ = [
|
|
1811
|
+
proto.CreateNotificationReq.repeatedFields_ = [5];
|
|
1670
1812
|
|
|
1671
1813
|
|
|
1672
1814
|
|
|
@@ -1701,7 +1843,9 @@ proto.CreateNotificationReq.toObject = function(includeInstance, msg) {
|
|
|
1701
1843
|
var f, obj = {
|
|
1702
1844
|
message: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
1703
1845
|
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
1704
|
-
|
|
1846
|
+
documentType: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
1847
|
+
documentReferenceId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
1848
|
+
receiversList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f
|
|
1705
1849
|
};
|
|
1706
1850
|
|
|
1707
1851
|
if (includeInstance) {
|
|
@@ -1747,6 +1891,14 @@ proto.CreateNotificationReq.deserializeBinaryFromReader = function(msg, reader)
|
|
|
1747
1891
|
msg.setType(value);
|
|
1748
1892
|
break;
|
|
1749
1893
|
case 3:
|
|
1894
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1895
|
+
msg.setDocumentType(value);
|
|
1896
|
+
break;
|
|
1897
|
+
case 4:
|
|
1898
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1899
|
+
msg.setDocumentReferenceId(value);
|
|
1900
|
+
break;
|
|
1901
|
+
case 5:
|
|
1750
1902
|
var value = /** @type {string} */ (reader.readString());
|
|
1751
1903
|
msg.addReceivers(value);
|
|
1752
1904
|
break;
|
|
@@ -1793,10 +1945,24 @@ proto.CreateNotificationReq.serializeBinaryToWriter = function(message, writer)
|
|
|
1793
1945
|
f
|
|
1794
1946
|
);
|
|
1795
1947
|
}
|
|
1948
|
+
f = message.getDocumentType();
|
|
1949
|
+
if (f.length > 0) {
|
|
1950
|
+
writer.writeString(
|
|
1951
|
+
3,
|
|
1952
|
+
f
|
|
1953
|
+
);
|
|
1954
|
+
}
|
|
1955
|
+
f = message.getDocumentReferenceId();
|
|
1956
|
+
if (f.length > 0) {
|
|
1957
|
+
writer.writeString(
|
|
1958
|
+
4,
|
|
1959
|
+
f
|
|
1960
|
+
);
|
|
1961
|
+
}
|
|
1796
1962
|
f = message.getReceiversList();
|
|
1797
1963
|
if (f.length > 0) {
|
|
1798
1964
|
writer.writeRepeatedString(
|
|
1799
|
-
|
|
1965
|
+
5,
|
|
1800
1966
|
f
|
|
1801
1967
|
);
|
|
1802
1968
|
}
|
|
@@ -1840,11 +2006,47 @@ proto.CreateNotificationReq.prototype.setType = function(value) {
|
|
|
1840
2006
|
|
|
1841
2007
|
|
|
1842
2008
|
/**
|
|
1843
|
-
*
|
|
2009
|
+
* optional string document_type = 3;
|
|
2010
|
+
* @return {string}
|
|
2011
|
+
*/
|
|
2012
|
+
proto.CreateNotificationReq.prototype.getDocumentType = function() {
|
|
2013
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
2014
|
+
};
|
|
2015
|
+
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
* @param {string} value
|
|
2019
|
+
* @return {!proto.CreateNotificationReq} returns this
|
|
2020
|
+
*/
|
|
2021
|
+
proto.CreateNotificationReq.prototype.setDocumentType = function(value) {
|
|
2022
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
2023
|
+
};
|
|
2024
|
+
|
|
2025
|
+
|
|
2026
|
+
/**
|
|
2027
|
+
* optional string document_reference_id = 4;
|
|
2028
|
+
* @return {string}
|
|
2029
|
+
*/
|
|
2030
|
+
proto.CreateNotificationReq.prototype.getDocumentReferenceId = function() {
|
|
2031
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
2032
|
+
};
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
/**
|
|
2036
|
+
* @param {string} value
|
|
2037
|
+
* @return {!proto.CreateNotificationReq} returns this
|
|
2038
|
+
*/
|
|
2039
|
+
proto.CreateNotificationReq.prototype.setDocumentReferenceId = function(value) {
|
|
2040
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
2041
|
+
};
|
|
2042
|
+
|
|
2043
|
+
|
|
2044
|
+
/**
|
|
2045
|
+
* repeated string receivers = 5;
|
|
1844
2046
|
* @return {!Array<string>}
|
|
1845
2047
|
*/
|
|
1846
2048
|
proto.CreateNotificationReq.prototype.getReceiversList = function() {
|
|
1847
|
-
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this,
|
|
2049
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 5));
|
|
1848
2050
|
};
|
|
1849
2051
|
|
|
1850
2052
|
|
|
@@ -1853,7 +2055,7 @@ proto.CreateNotificationReq.prototype.getReceiversList = function() {
|
|
|
1853
2055
|
* @return {!proto.CreateNotificationReq} returns this
|
|
1854
2056
|
*/
|
|
1855
2057
|
proto.CreateNotificationReq.prototype.setReceiversList = function(value) {
|
|
1856
|
-
return jspb.Message.setField(this,
|
|
2058
|
+
return jspb.Message.setField(this, 5, value || []);
|
|
1857
2059
|
};
|
|
1858
2060
|
|
|
1859
2061
|
|
|
@@ -1863,7 +2065,7 @@ proto.CreateNotificationReq.prototype.setReceiversList = function(value) {
|
|
|
1863
2065
|
* @return {!proto.CreateNotificationReq} returns this
|
|
1864
2066
|
*/
|
|
1865
2067
|
proto.CreateNotificationReq.prototype.addReceivers = function(value, opt_index) {
|
|
1866
|
-
return jspb.Message.addToRepeatedField(this,
|
|
2068
|
+
return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
|
|
1867
2069
|
};
|
|
1868
2070
|
|
|
1869
2071
|
|
|
@@ -2777,4 +2979,185 @@ proto.DeleteNotificationEmployeeRes.prototype.hasMeta = function() {
|
|
|
2777
2979
|
};
|
|
2778
2980
|
|
|
2779
2981
|
|
|
2982
|
+
|
|
2983
|
+
|
|
2984
|
+
|
|
2985
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
2986
|
+
/**
|
|
2987
|
+
* Creates an object representation of this proto.
|
|
2988
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
2989
|
+
* Optional fields that are not set will be set to undefined.
|
|
2990
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
2991
|
+
* For the list of reserved names please see:
|
|
2992
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
2993
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
2994
|
+
* JSPB instance for transitional soy proto support:
|
|
2995
|
+
* http://goto/soy-param-migration
|
|
2996
|
+
* @return {!Object}
|
|
2997
|
+
*/
|
|
2998
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.toObject = function(opt_includeInstance) {
|
|
2999
|
+
return proto.CountUnreadNotificationEmployeeRes.toObject(opt_includeInstance, this);
|
|
3000
|
+
};
|
|
3001
|
+
|
|
3002
|
+
|
|
3003
|
+
/**
|
|
3004
|
+
* Static version of the {@see toObject} method.
|
|
3005
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
3006
|
+
* the JSPB instance for transitional soy proto support:
|
|
3007
|
+
* http://goto/soy-param-migration
|
|
3008
|
+
* @param {!proto.CountUnreadNotificationEmployeeRes} msg The msg instance to transform.
|
|
3009
|
+
* @return {!Object}
|
|
3010
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3011
|
+
*/
|
|
3012
|
+
proto.CountUnreadNotificationEmployeeRes.toObject = function(includeInstance, msg) {
|
|
3013
|
+
var f, obj = {
|
|
3014
|
+
count: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
3015
|
+
meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
|
|
3016
|
+
};
|
|
3017
|
+
|
|
3018
|
+
if (includeInstance) {
|
|
3019
|
+
obj.$jspbMessageInstance = msg;
|
|
3020
|
+
}
|
|
3021
|
+
return obj;
|
|
3022
|
+
};
|
|
3023
|
+
}
|
|
3024
|
+
|
|
3025
|
+
|
|
3026
|
+
/**
|
|
3027
|
+
* Deserializes binary data (in protobuf wire format).
|
|
3028
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
3029
|
+
* @return {!proto.CountUnreadNotificationEmployeeRes}
|
|
3030
|
+
*/
|
|
3031
|
+
proto.CountUnreadNotificationEmployeeRes.deserializeBinary = function(bytes) {
|
|
3032
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
3033
|
+
var msg = new proto.CountUnreadNotificationEmployeeRes;
|
|
3034
|
+
return proto.CountUnreadNotificationEmployeeRes.deserializeBinaryFromReader(msg, reader);
|
|
3035
|
+
};
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
/**
|
|
3039
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
3040
|
+
* given reader into the given message object.
|
|
3041
|
+
* @param {!proto.CountUnreadNotificationEmployeeRes} msg The message object to deserialize into.
|
|
3042
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
3043
|
+
* @return {!proto.CountUnreadNotificationEmployeeRes}
|
|
3044
|
+
*/
|
|
3045
|
+
proto.CountUnreadNotificationEmployeeRes.deserializeBinaryFromReader = function(msg, reader) {
|
|
3046
|
+
while (reader.nextField()) {
|
|
3047
|
+
if (reader.isEndGroup()) {
|
|
3048
|
+
break;
|
|
3049
|
+
}
|
|
3050
|
+
var field = reader.getFieldNumber();
|
|
3051
|
+
switch (field) {
|
|
3052
|
+
case 1:
|
|
3053
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
3054
|
+
msg.setCount(value);
|
|
3055
|
+
break;
|
|
3056
|
+
case 2:
|
|
3057
|
+
var value = new prisca_v1_global_meta_meta_pb.Meta;
|
|
3058
|
+
reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
|
|
3059
|
+
msg.setMeta(value);
|
|
3060
|
+
break;
|
|
3061
|
+
default:
|
|
3062
|
+
reader.skipField();
|
|
3063
|
+
break;
|
|
3064
|
+
}
|
|
3065
|
+
}
|
|
3066
|
+
return msg;
|
|
3067
|
+
};
|
|
3068
|
+
|
|
3069
|
+
|
|
3070
|
+
/**
|
|
3071
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
3072
|
+
* @return {!Uint8Array}
|
|
3073
|
+
*/
|
|
3074
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.serializeBinary = function() {
|
|
3075
|
+
var writer = new jspb.BinaryWriter();
|
|
3076
|
+
proto.CountUnreadNotificationEmployeeRes.serializeBinaryToWriter(this, writer);
|
|
3077
|
+
return writer.getResultBuffer();
|
|
3078
|
+
};
|
|
3079
|
+
|
|
3080
|
+
|
|
3081
|
+
/**
|
|
3082
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
3083
|
+
* format), writing to the given BinaryWriter.
|
|
3084
|
+
* @param {!proto.CountUnreadNotificationEmployeeRes} message
|
|
3085
|
+
* @param {!jspb.BinaryWriter} writer
|
|
3086
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
3087
|
+
*/
|
|
3088
|
+
proto.CountUnreadNotificationEmployeeRes.serializeBinaryToWriter = function(message, writer) {
|
|
3089
|
+
var f = undefined;
|
|
3090
|
+
f = message.getCount();
|
|
3091
|
+
if (f !== 0) {
|
|
3092
|
+
writer.writeInt64(
|
|
3093
|
+
1,
|
|
3094
|
+
f
|
|
3095
|
+
);
|
|
3096
|
+
}
|
|
3097
|
+
f = message.getMeta();
|
|
3098
|
+
if (f != null) {
|
|
3099
|
+
writer.writeMessage(
|
|
3100
|
+
2,
|
|
3101
|
+
f,
|
|
3102
|
+
prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
|
|
3103
|
+
);
|
|
3104
|
+
}
|
|
3105
|
+
};
|
|
3106
|
+
|
|
3107
|
+
|
|
3108
|
+
/**
|
|
3109
|
+
* optional int64 count = 1;
|
|
3110
|
+
* @return {number}
|
|
3111
|
+
*/
|
|
3112
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.getCount = function() {
|
|
3113
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
3114
|
+
};
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
/**
|
|
3118
|
+
* @param {number} value
|
|
3119
|
+
* @return {!proto.CountUnreadNotificationEmployeeRes} returns this
|
|
3120
|
+
*/
|
|
3121
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.setCount = function(value) {
|
|
3122
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
3123
|
+
};
|
|
3124
|
+
|
|
3125
|
+
|
|
3126
|
+
/**
|
|
3127
|
+
* optional prisca.v1.global.meta.Meta meta = 2;
|
|
3128
|
+
* @return {?proto.prisca.v1.global.meta.Meta}
|
|
3129
|
+
*/
|
|
3130
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.getMeta = function() {
|
|
3131
|
+
return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
|
|
3132
|
+
jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
|
|
3133
|
+
};
|
|
3134
|
+
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
* @param {?proto.prisca.v1.global.meta.Meta|undefined} value
|
|
3138
|
+
* @return {!proto.CountUnreadNotificationEmployeeRes} returns this
|
|
3139
|
+
*/
|
|
3140
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.setMeta = function(value) {
|
|
3141
|
+
return jspb.Message.setWrapperField(this, 2, value);
|
|
3142
|
+
};
|
|
3143
|
+
|
|
3144
|
+
|
|
3145
|
+
/**
|
|
3146
|
+
* Clears the message field making it undefined.
|
|
3147
|
+
* @return {!proto.CountUnreadNotificationEmployeeRes} returns this
|
|
3148
|
+
*/
|
|
3149
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.clearMeta = function() {
|
|
3150
|
+
return this.setMeta(undefined);
|
|
3151
|
+
};
|
|
3152
|
+
|
|
3153
|
+
|
|
3154
|
+
/**
|
|
3155
|
+
* Returns whether this field is set.
|
|
3156
|
+
* @return {boolean}
|
|
3157
|
+
*/
|
|
3158
|
+
proto.CountUnreadNotificationEmployeeRes.prototype.hasMeta = function() {
|
|
3159
|
+
return jspb.Message.getField(this, 2) != null;
|
|
3160
|
+
};
|
|
3161
|
+
|
|
3162
|
+
|
|
2780
3163
|
goog.object.extend(exports, proto);
|