@aldiokta/protocgen 1.0.42 → 1.0.43

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.42",
3
+ "version": "1.0.43",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -301,7 +301,7 @@ referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
301
301
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
302
302
  telephone: jspb.Message.getFieldWithDefault(msg, 3, ""),
303
303
  faxNumber: jspb.Message.getFieldWithDefault(msg, 4, ""),
304
- extension: jspb.Message.getFieldWithDefault(msg, 5, ""),
304
+ extension: jspb.Message.getFieldWithDefault(msg, 5, 0),
305
305
  emailAddress: jspb.Message.getFieldWithDefault(msg, 6, "")
306
306
  };
307
307
 
@@ -356,7 +356,7 @@ proto.PurchasingGroup.deserializeBinaryFromReader = function(msg, reader) {
356
356
  msg.setFaxNumber(value);
357
357
  break;
358
358
  case 5:
359
- var value = /** @type {string} */ (reader.readString());
359
+ var value = /** @type {number} */ (reader.readInt64());
360
360
  msg.setExtension$(value);
361
361
  break;
362
362
  case 6:
@@ -421,8 +421,8 @@ proto.PurchasingGroup.serializeBinaryToWriter = function(message, writer) {
421
421
  );
422
422
  }
423
423
  f = message.getExtension$();
424
- if (f.length > 0) {
425
- writer.writeString(
424
+ if (f !== 0) {
425
+ writer.writeInt64(
426
426
  5,
427
427
  f
428
428
  );
@@ -510,20 +510,20 @@ proto.PurchasingGroup.prototype.setFaxNumber = function(value) {
510
510
 
511
511
 
512
512
  /**
513
- * optional string extension = 5;
514
- * @return {string}
513
+ * optional int64 extension = 5;
514
+ * @return {number}
515
515
  */
516
516
  proto.PurchasingGroup.prototype.getExtension$ = function() {
517
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
517
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
518
518
  };
519
519
 
520
520
 
521
521
  /**
522
- * @param {string} value
522
+ * @param {number} value
523
523
  * @return {!proto.PurchasingGroup} returns this
524
524
  */
525
525
  proto.PurchasingGroup.prototype.setExtension$ = function(value) {
526
- return jspb.Message.setProto3StringField(this, 5, value);
526
+ return jspb.Message.setProto3IntField(this, 5, value);
527
527
  };
528
528
 
529
529
 
@@ -299,8 +299,7 @@ proto.PurchasingOrganization.toObject = function(includeInstance, msg) {
299
299
  var f, obj = {
300
300
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
301
301
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
302
- organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
303
- organizations: (f = msg.getOrganizations()) && proto.PurOrg.toObject(includeInstance, f)
302
+ validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
304
303
  };
305
304
 
306
305
  if (includeInstance) {
@@ -346,13 +345,8 @@ proto.PurchasingOrganization.deserializeBinaryFromReader = function(msg, reader)
346
345
  msg.setDescription(value);
347
346
  break;
348
347
  case 3:
349
- var value = /** @type {string} */ (reader.readString());
350
- msg.setOrganizationReferencesId(value);
351
- break;
352
- case 4:
353
- var value = new proto.PurOrg;
354
- reader.readMessage(value,proto.PurOrg.deserializeBinaryFromReader);
355
- msg.setOrganizations(value);
348
+ var value = /** @type {boolean} */ (reader.readBool());
349
+ msg.setValidity(value);
356
350
  break;
357
351
  default:
358
352
  reader.skipField();
@@ -397,21 +391,13 @@ proto.PurchasingOrganization.serializeBinaryToWriter = function(message, writer)
397
391
  f
398
392
  );
399
393
  }
400
- f = message.getOrganizationReferencesId();
401
- if (f.length > 0) {
402
- writer.writeString(
394
+ f = message.getValidity();
395
+ if (f) {
396
+ writer.writeBool(
403
397
  3,
404
398
  f
405
399
  );
406
400
  }
407
- f = message.getOrganizations();
408
- if (f != null) {
409
- writer.writeMessage(
410
- 4,
411
- f,
412
- proto.PurOrg.serializeBinaryToWriter
413
- );
414
- }
415
401
  };
416
402
 
417
403
 
@@ -452,57 +438,20 @@ proto.PurchasingOrganization.prototype.setDescription = function(value) {
452
438
 
453
439
 
454
440
  /**
455
- * optional string organization_references_id = 3;
456
- * @return {string}
457
- */
458
- proto.PurchasingOrganization.prototype.getOrganizationReferencesId = function() {
459
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
460
- };
461
-
462
-
463
- /**
464
- * @param {string} value
465
- * @return {!proto.PurchasingOrganization} returns this
466
- */
467
- proto.PurchasingOrganization.prototype.setOrganizationReferencesId = function(value) {
468
- return jspb.Message.setProto3StringField(this, 3, value);
469
- };
470
-
471
-
472
- /**
473
- * optional PurOrg organizations = 4;
474
- * @return {?proto.PurOrg}
441
+ * optional bool validity = 3;
442
+ * @return {boolean}
475
443
  */
476
- proto.PurchasingOrganization.prototype.getOrganizations = function() {
477
- return /** @type{?proto.PurOrg} */ (
478
- jspb.Message.getWrapperField(this, proto.PurOrg, 4));
444
+ proto.PurchasingOrganization.prototype.getValidity = function() {
445
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
479
446
  };
480
447
 
481
448
 
482
449
  /**
483
- * @param {?proto.PurOrg|undefined} value
484
- * @return {!proto.PurchasingOrganization} returns this
485
- */
486
- proto.PurchasingOrganization.prototype.setOrganizations = function(value) {
487
- return jspb.Message.setWrapperField(this, 4, value);
488
- };
489
-
490
-
491
- /**
492
- * Clears the message field making it undefined.
450
+ * @param {boolean} value
493
451
  * @return {!proto.PurchasingOrganization} returns this
494
452
  */
495
- proto.PurchasingOrganization.prototype.clearOrganizations = function() {
496
- return this.setOrganizations(undefined);
497
- };
498
-
499
-
500
- /**
501
- * Returns whether this field is set.
502
- * @return {boolean}
503
- */
504
- proto.PurchasingOrganization.prototype.hasOrganizations = function() {
505
- return jspb.Message.getField(this, 4) != null;
453
+ proto.PurchasingOrganization.prototype.setValidity = function(value) {
454
+ return jspb.Message.setProto3BooleanField(this, 3, value);
506
455
  };
507
456
 
508
457
 
@@ -540,8 +489,7 @@ proto.BasePurchasingOrganization.toObject = function(includeInstance, msg) {
540
489
  var f, obj = {
541
490
  referencesId: jspb.Message.getFieldWithDefault(msg, 1, ""),
542
491
  description: jspb.Message.getFieldWithDefault(msg, 2, ""),
543
- organizationReferencesId: jspb.Message.getFieldWithDefault(msg, 3, ""),
544
- validity: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
492
+ validity: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
545
493
  };
546
494
 
547
495
  if (includeInstance) {
@@ -587,10 +535,6 @@ proto.BasePurchasingOrganization.deserializeBinaryFromReader = function(msg, rea
587
535
  msg.setDescription(value);
588
536
  break;
589
537
  case 3:
590
- var value = /** @type {string} */ (reader.readString());
591
- msg.setOrganizationReferencesId(value);
592
- break;
593
- case 4:
594
538
  var value = /** @type {boolean} */ (reader.readBool());
595
539
  msg.setValidity(value);
596
540
  break;
@@ -637,17 +581,10 @@ proto.BasePurchasingOrganization.serializeBinaryToWriter = function(message, wri
637
581
  f
638
582
  );
639
583
  }
640
- f = message.getOrganizationReferencesId();
641
- if (f.length > 0) {
642
- writer.writeString(
643
- 3,
644
- f
645
- );
646
- }
647
584
  f = message.getValidity();
648
585
  if (f) {
649
586
  writer.writeBool(
650
- 4,
587
+ 3,
651
588
  f
652
589
  );
653
590
  }
@@ -691,29 +628,11 @@ proto.BasePurchasingOrganization.prototype.setDescription = function(value) {
691
628
 
692
629
 
693
630
  /**
694
- * optional string organization_references_id = 3;
695
- * @return {string}
696
- */
697
- proto.BasePurchasingOrganization.prototype.getOrganizationReferencesId = function() {
698
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
699
- };
700
-
701
-
702
- /**
703
- * @param {string} value
704
- * @return {!proto.BasePurchasingOrganization} returns this
705
- */
706
- proto.BasePurchasingOrganization.prototype.setOrganizationReferencesId = function(value) {
707
- return jspb.Message.setProto3StringField(this, 3, value);
708
- };
709
-
710
-
711
- /**
712
- * optional bool validity = 4;
631
+ * optional bool validity = 3;
713
632
  * @return {boolean}
714
633
  */
715
634
  proto.BasePurchasingOrganization.prototype.getValidity = function() {
716
- return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
635
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
717
636
  };
718
637
 
719
638
 
@@ -722,7 +641,7 @@ proto.BasePurchasingOrganization.prototype.getValidity = function() {
722
641
  * @return {!proto.BasePurchasingOrganization} returns this
723
642
  */
724
643
  proto.BasePurchasingOrganization.prototype.setValidity = function(value) {
725
- return jspb.Message.setProto3BooleanField(this, 4, value);
644
+ return jspb.Message.setProto3BooleanField(this, 3, value);
726
645
  };
727
646
 
728
647