@aldiokta/protocgen 1.0.55 → 1.0.57

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.0.55",
3
+ "version": "1.0.57",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -85,6 +85,17 @@ function deserialize_ChangePasswordResponse(buffer_arg) {
85
85
  return prisca_v1_core_auth_auth_pb.ChangePasswordResponse.deserializeBinary(new Uint8Array(buffer_arg));
86
86
  }
87
87
 
88
+ function serialize_CheckCompaniesRequest(arg) {
89
+ if (!(arg instanceof prisca_v1_core_auth_auth_pb.CheckCompaniesRequest)) {
90
+ throw new Error('Expected argument of type CheckCompaniesRequest');
91
+ }
92
+ return Buffer.from(arg.serializeBinary());
93
+ }
94
+
95
+ function deserialize_CheckCompaniesRequest(buffer_arg) {
96
+ return prisca_v1_core_auth_auth_pb.CheckCompaniesRequest.deserializeBinary(new Uint8Array(buffer_arg));
97
+ }
98
+
88
99
  function serialize_CreateUserPayload(arg) {
89
100
  if (!(arg instanceof prisca_v1_core_auth_auth_pb.CreateUserPayload)) {
90
101
  throw new Error('Expected argument of type CreateUserPayload');
@@ -307,6 +318,17 @@ var AuthServiceService = exports.AuthServiceService = {
307
318
  responseSerialize: serialize_AccessResponse,
308
319
  responseDeserialize: deserialize_AccessResponse,
309
320
  },
321
+ checkCompanies: {
322
+ path: '/AuthService/CheckCompanies',
323
+ requestStream: false,
324
+ responseStream: false,
325
+ requestType: prisca_v1_core_auth_auth_pb.CheckCompaniesRequest,
326
+ responseType: prisca_v1_core_auth_auth_pb.UserResponse,
327
+ requestSerialize: serialize_CheckCompaniesRequest,
328
+ requestDeserialize: deserialize_CheckCompaniesRequest,
329
+ responseSerialize: serialize_UserResponse,
330
+ responseDeserialize: deserialize_UserResponse,
331
+ },
310
332
  requestForgotPassword: {
311
333
  path: '/AuthService/RequestForgotPassword',
312
334
  requestStream: false,
@@ -30,6 +30,7 @@ goog.exportSymbol('proto.AccessResponse', null, global);
30
30
  goog.exportSymbol('proto.AuthVerifyToken', null, global);
31
31
  goog.exportSymbol('proto.ChangePasswordRequest', null, global);
32
32
  goog.exportSymbol('proto.ChangePasswordResponse', null, global);
33
+ goog.exportSymbol('proto.CheckCompaniesRequest', null, global);
33
34
  goog.exportSymbol('proto.CreateUserPayload', null, global);
34
35
  goog.exportSymbol('proto.ForgotPassworReq', null, global);
35
36
  goog.exportSymbol('proto.GetAccessByIdPayload', null, global);
@@ -146,6 +147,27 @@ if (goog.DEBUG && !COMPILED) {
146
147
  */
147
148
  proto.GetListAccessRequest.displayName = 'proto.GetListAccessRequest';
148
149
  }
150
+ /**
151
+ * Generated by JsPbCodeGenerator.
152
+ * @param {Array=} opt_data Optional initial data array, typically from a
153
+ * server response, or constructed directly in Javascript. The array is used
154
+ * in place and becomes part of the constructed object. It is not cloned.
155
+ * If no data is provided, the constructed object will be empty, but still
156
+ * valid.
157
+ * @extends {jspb.Message}
158
+ * @constructor
159
+ */
160
+ proto.CheckCompaniesRequest = function(opt_data) {
161
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
162
+ };
163
+ goog.inherits(proto.CheckCompaniesRequest, jspb.Message);
164
+ if (goog.DEBUG && !COMPILED) {
165
+ /**
166
+ * @public
167
+ * @override
168
+ */
169
+ proto.CheckCompaniesRequest.displayName = 'proto.CheckCompaniesRequest';
170
+ }
149
171
  /**
150
172
  * Generated by JsPbCodeGenerator.
151
173
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1132,6 +1154,136 @@ proto.GetListAccessRequest.prototype.setOffset = function(value) {
1132
1154
 
1133
1155
 
1134
1156
 
1157
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1158
+ /**
1159
+ * Creates an object representation of this proto.
1160
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1161
+ * Optional fields that are not set will be set to undefined.
1162
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1163
+ * For the list of reserved names please see:
1164
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1165
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1166
+ * JSPB instance for transitional soy proto support:
1167
+ * http://goto/soy-param-migration
1168
+ * @return {!Object}
1169
+ */
1170
+ proto.CheckCompaniesRequest.prototype.toObject = function(opt_includeInstance) {
1171
+ return proto.CheckCompaniesRequest.toObject(opt_includeInstance, this);
1172
+ };
1173
+
1174
+
1175
+ /**
1176
+ * Static version of the {@see toObject} method.
1177
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1178
+ * the JSPB instance for transitional soy proto support:
1179
+ * http://goto/soy-param-migration
1180
+ * @param {!proto.CheckCompaniesRequest} msg The msg instance to transform.
1181
+ * @return {!Object}
1182
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1183
+ */
1184
+ proto.CheckCompaniesRequest.toObject = function(includeInstance, msg) {
1185
+ var f, obj = {
1186
+ companiesRef: jspb.Message.getFieldWithDefault(msg, 1, "")
1187
+ };
1188
+
1189
+ if (includeInstance) {
1190
+ obj.$jspbMessageInstance = msg;
1191
+ }
1192
+ return obj;
1193
+ };
1194
+ }
1195
+
1196
+
1197
+ /**
1198
+ * Deserializes binary data (in protobuf wire format).
1199
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1200
+ * @return {!proto.CheckCompaniesRequest}
1201
+ */
1202
+ proto.CheckCompaniesRequest.deserializeBinary = function(bytes) {
1203
+ var reader = new jspb.BinaryReader(bytes);
1204
+ var msg = new proto.CheckCompaniesRequest;
1205
+ return proto.CheckCompaniesRequest.deserializeBinaryFromReader(msg, reader);
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * Deserializes binary data (in protobuf wire format) from the
1211
+ * given reader into the given message object.
1212
+ * @param {!proto.CheckCompaniesRequest} msg The message object to deserialize into.
1213
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1214
+ * @return {!proto.CheckCompaniesRequest}
1215
+ */
1216
+ proto.CheckCompaniesRequest.deserializeBinaryFromReader = function(msg, reader) {
1217
+ while (reader.nextField()) {
1218
+ if (reader.isEndGroup()) {
1219
+ break;
1220
+ }
1221
+ var field = reader.getFieldNumber();
1222
+ switch (field) {
1223
+ case 1:
1224
+ var value = /** @type {string} */ (reader.readString());
1225
+ msg.setCompaniesRef(value);
1226
+ break;
1227
+ default:
1228
+ reader.skipField();
1229
+ break;
1230
+ }
1231
+ }
1232
+ return msg;
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * Serializes the message to binary data (in protobuf wire format).
1238
+ * @return {!Uint8Array}
1239
+ */
1240
+ proto.CheckCompaniesRequest.prototype.serializeBinary = function() {
1241
+ var writer = new jspb.BinaryWriter();
1242
+ proto.CheckCompaniesRequest.serializeBinaryToWriter(this, writer);
1243
+ return writer.getResultBuffer();
1244
+ };
1245
+
1246
+
1247
+ /**
1248
+ * Serializes the given message to binary data (in protobuf wire
1249
+ * format), writing to the given BinaryWriter.
1250
+ * @param {!proto.CheckCompaniesRequest} message
1251
+ * @param {!jspb.BinaryWriter} writer
1252
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1253
+ */
1254
+ proto.CheckCompaniesRequest.serializeBinaryToWriter = function(message, writer) {
1255
+ var f = undefined;
1256
+ f = message.getCompaniesRef();
1257
+ if (f.length > 0) {
1258
+ writer.writeString(
1259
+ 1,
1260
+ f
1261
+ );
1262
+ }
1263
+ };
1264
+
1265
+
1266
+ /**
1267
+ * optional string companies_ref = 1;
1268
+ * @return {string}
1269
+ */
1270
+ proto.CheckCompaniesRequest.prototype.getCompaniesRef = function() {
1271
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1272
+ };
1273
+
1274
+
1275
+ /**
1276
+ * @param {string} value
1277
+ * @return {!proto.CheckCompaniesRequest} returns this
1278
+ */
1279
+ proto.CheckCompaniesRequest.prototype.setCompaniesRef = function(value) {
1280
+ return jspb.Message.setProto3StringField(this, 1, value);
1281
+ };
1282
+
1283
+
1284
+
1285
+
1286
+
1135
1287
  if (jspb.Message.GENERATE_TO_OBJECT) {
1136
1288
  /**
1137
1289
  * Creates an object representation of this proto.
@@ -321,12 +321,13 @@ proto.LineOfApproval.toObject = function(includeInstance, msg) {
321
321
  var f, obj = {
322
322
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
323
323
  workflowRef: jspb.Message.getFieldWithDefault(msg, 2, ""),
324
- purchaseRequisitionRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
325
- userIdRef: jspb.Message.getFieldWithDefault(msg, 4, ""),
324
+ documentRef: jspb.Message.getFieldWithDefault(msg, 3, ""),
325
+ employeesRefId: jspb.Message.getFieldWithDefault(msg, 4, ""),
326
326
  status: jspb.Message.getFieldWithDefault(msg, 5, ""),
327
327
  referencesId: jspb.Message.getFieldWithDefault(msg, 6, ""),
328
328
  createdAt: jspb.Message.getFieldWithDefault(msg, 7, ""),
329
- updatedAt: jspb.Message.getFieldWithDefault(msg, 8, "")
329
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
330
+ documentType: jspb.Message.getFieldWithDefault(msg, 9, "")
330
331
  };
331
332
 
332
333
  if (includeInstance) {
@@ -373,11 +374,11 @@ proto.LineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
373
374
  break;
374
375
  case 3:
375
376
  var value = /** @type {string} */ (reader.readString());
376
- msg.setPurchaseRequisitionRef(value);
377
+ msg.setDocumentRef(value);
377
378
  break;
378
379
  case 4:
379
380
  var value = /** @type {string} */ (reader.readString());
380
- msg.setUserIdRef(value);
381
+ msg.setEmployeesRefId(value);
381
382
  break;
382
383
  case 5:
383
384
  var value = /** @type {string} */ (reader.readString());
@@ -395,6 +396,10 @@ proto.LineOfApproval.deserializeBinaryFromReader = function(msg, reader) {
395
396
  var value = /** @type {string} */ (reader.readString());
396
397
  msg.setUpdatedAt(value);
397
398
  break;
399
+ case 9:
400
+ var value = /** @type {string} */ (reader.readString());
401
+ msg.setDocumentType(value);
402
+ break;
398
403
  default:
399
404
  reader.skipField();
400
405
  break;
@@ -438,14 +443,14 @@ proto.LineOfApproval.serializeBinaryToWriter = function(message, writer) {
438
443
  f
439
444
  );
440
445
  }
441
- f = message.getPurchaseRequisitionRef();
446
+ f = message.getDocumentRef();
442
447
  if (f.length > 0) {
443
448
  writer.writeString(
444
449
  3,
445
450
  f
446
451
  );
447
452
  }
448
- f = message.getUserIdRef();
453
+ f = message.getEmployeesRefId();
449
454
  if (f.length > 0) {
450
455
  writer.writeString(
451
456
  4,
@@ -480,6 +485,13 @@ proto.LineOfApproval.serializeBinaryToWriter = function(message, writer) {
480
485
  f
481
486
  );
482
487
  }
488
+ f = message.getDocumentType();
489
+ if (f.length > 0) {
490
+ writer.writeString(
491
+ 9,
492
+ f
493
+ );
494
+ }
483
495
  };
484
496
 
485
497
 
@@ -520,10 +532,10 @@ proto.LineOfApproval.prototype.setWorkflowRef = function(value) {
520
532
 
521
533
 
522
534
  /**
523
- * optional string purchase_requisition_ref = 3;
535
+ * optional string document_ref = 3;
524
536
  * @return {string}
525
537
  */
526
- proto.LineOfApproval.prototype.getPurchaseRequisitionRef = function() {
538
+ proto.LineOfApproval.prototype.getDocumentRef = function() {
527
539
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
528
540
  };
529
541
 
@@ -532,16 +544,16 @@ proto.LineOfApproval.prototype.getPurchaseRequisitionRef = function() {
532
544
  * @param {string} value
533
545
  * @return {!proto.LineOfApproval} returns this
534
546
  */
535
- proto.LineOfApproval.prototype.setPurchaseRequisitionRef = function(value) {
547
+ proto.LineOfApproval.prototype.setDocumentRef = function(value) {
536
548
  return jspb.Message.setProto3StringField(this, 3, value);
537
549
  };
538
550
 
539
551
 
540
552
  /**
541
- * optional string user_id_ref = 4;
553
+ * optional string employees_ref_id = 4;
542
554
  * @return {string}
543
555
  */
544
- proto.LineOfApproval.prototype.getUserIdRef = function() {
556
+ proto.LineOfApproval.prototype.getEmployeesRefId = function() {
545
557
  return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
546
558
  };
547
559
 
@@ -550,7 +562,7 @@ proto.LineOfApproval.prototype.getUserIdRef = function() {
550
562
  * @param {string} value
551
563
  * @return {!proto.LineOfApproval} returns this
552
564
  */
553
- proto.LineOfApproval.prototype.setUserIdRef = function(value) {
565
+ proto.LineOfApproval.prototype.setEmployeesRefId = function(value) {
554
566
  return jspb.Message.setProto3StringField(this, 4, value);
555
567
  };
556
568
 
@@ -627,6 +639,24 @@ proto.LineOfApproval.prototype.setUpdatedAt = function(value) {
627
639
  };
628
640
 
629
641
 
642
+ /**
643
+ * optional string document_type = 9;
644
+ * @return {string}
645
+ */
646
+ proto.LineOfApproval.prototype.getDocumentType = function() {
647
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
648
+ };
649
+
650
+
651
+ /**
652
+ * @param {string} value
653
+ * @return {!proto.LineOfApproval} returns this
654
+ */
655
+ proto.LineOfApproval.prototype.setDocumentType = function(value) {
656
+ return jspb.Message.setProto3StringField(this, 9, value);
657
+ };
658
+
659
+
630
660
 
631
661
 
632
662
 
@@ -659,8 +689,7 @@ proto.BaseLineOfApprovalRequest.prototype.toObject = function(opt_includeInstanc
659
689
  */
660
690
  proto.BaseLineOfApprovalRequest.toObject = function(includeInstance, msg) {
661
691
  var f, obj = {
662
- status: jspb.Message.getFieldWithDefault(msg, 1, ""),
663
- id: jspb.Message.getFieldWithDefault(msg, 2, 0)
692
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
664
693
  };
665
694
 
666
695
  if (includeInstance) {
@@ -701,10 +730,6 @@ proto.BaseLineOfApprovalRequest.deserializeBinaryFromReader = function(msg, read
701
730
  var value = /** @type {string} */ (reader.readString());
702
731
  msg.setStatus(value);
703
732
  break;
704
- case 2:
705
- var value = /** @type {number} */ (reader.readInt32());
706
- msg.setId(value);
707
- break;
708
733
  default:
709
734
  reader.skipField();
710
735
  break;
@@ -741,13 +766,6 @@ proto.BaseLineOfApprovalRequest.serializeBinaryToWriter = function(message, writ
741
766
  f
742
767
  );
743
768
  }
744
- f = message.getId();
745
- if (f !== 0) {
746
- writer.writeInt32(
747
- 2,
748
- f
749
- );
750
- }
751
769
  };
752
770
 
753
771
 
@@ -769,24 +787,6 @@ proto.BaseLineOfApprovalRequest.prototype.setStatus = function(value) {
769
787
  };
770
788
 
771
789
 
772
- /**
773
- * optional int32 id = 2;
774
- * @return {number}
775
- */
776
- proto.BaseLineOfApprovalRequest.prototype.getId = function() {
777
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
778
- };
779
-
780
-
781
- /**
782
- * @param {number} value
783
- * @return {!proto.BaseLineOfApprovalRequest} returns this
784
- */
785
- proto.BaseLineOfApprovalRequest.prototype.setId = function(value) {
786
- return jspb.Message.setProto3IntField(this, 2, value);
787
- };
788
-
789
-
790
790
 
791
791
 
792
792