@superblocksteam/sabs-types-js 0.472.0 → 0.475.0

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.
@@ -43,6 +43,11 @@ export class ApplicationMetadata extends jspb.Message {
43
43
  getOrganizationId(): string;
44
44
  setOrganizationId(value: string): ApplicationMetadata;
45
45
 
46
+ hasTemplateName(): boolean;
47
+ clearTemplateName(): void;
48
+ getTemplateName(): string | undefined;
49
+ setTemplateName(value: string): ApplicationMetadata;
50
+
46
51
  serializeBinary(): Uint8Array;
47
52
  toObject(includeInstance?: boolean): ApplicationMetadata.AsObject;
48
53
  static toObject(includeInstance: boolean, msg: ApplicationMetadata): ApplicationMetadata.AsObject;
@@ -57,6 +62,7 @@ export namespace ApplicationMetadata {
57
62
  export type AsObject = {
58
63
  id: string,
59
64
  organizationId: string,
65
+ templateName?: string,
60
66
  }
61
67
  }
62
68
 
@@ -552,7 +552,8 @@ proto.build.v1.ApplicationMetadata.prototype.toObject = function(opt_includeInst
552
552
  proto.build.v1.ApplicationMetadata.toObject = function(includeInstance, msg) {
553
553
  var f, obj = {
554
554
  id: jspb.Message.getFieldWithDefault(msg, 1, ""),
555
- organizationId: jspb.Message.getFieldWithDefault(msg, 2, "")
555
+ organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
556
+ templateName: (f = jspb.Message.getField(msg, 3)) == null ? undefined : f
556
557
  };
557
558
 
558
559
  if (includeInstance) {
@@ -597,6 +598,10 @@ proto.build.v1.ApplicationMetadata.deserializeBinaryFromReader = function(msg, r
597
598
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
598
599
  msg.setOrganizationId(value);
599
600
  break;
601
+ case 3:
602
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
603
+ msg.setTemplateName(value);
604
+ break;
600
605
  default:
601
606
  reader.skipField();
602
607
  break;
@@ -640,6 +645,13 @@ proto.build.v1.ApplicationMetadata.serializeBinaryToWriter = function(message, w
640
645
  f
641
646
  );
642
647
  }
648
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
649
+ if (f != null) {
650
+ writer.writeString(
651
+ 3,
652
+ f
653
+ );
654
+ }
643
655
  };
644
656
 
645
657
 
@@ -679,6 +691,42 @@ proto.build.v1.ApplicationMetadata.prototype.setOrganizationId = function(value)
679
691
  };
680
692
 
681
693
 
694
+ /**
695
+ * optional string template_name = 3;
696
+ * @return {string}
697
+ */
698
+ proto.build.v1.ApplicationMetadata.prototype.getTemplateName = function() {
699
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
700
+ };
701
+
702
+
703
+ /**
704
+ * @param {string} value
705
+ * @return {!proto.build.v1.ApplicationMetadata} returns this
706
+ */
707
+ proto.build.v1.ApplicationMetadata.prototype.setTemplateName = function(value) {
708
+ return jspb.Message.setField(this, 3, value);
709
+ };
710
+
711
+
712
+ /**
713
+ * Clears the field making it undefined.
714
+ * @return {!proto.build.v1.ApplicationMetadata} returns this
715
+ */
716
+ proto.build.v1.ApplicationMetadata.prototype.clearTemplateName = function() {
717
+ return jspb.Message.setField(this, 3, undefined);
718
+ };
719
+
720
+
721
+ /**
722
+ * Returns whether this field is set.
723
+ * @return {boolean}
724
+ */
725
+ proto.build.v1.ApplicationMetadata.prototype.hasTemplateName = function() {
726
+ return jspb.Message.getField(this, 3) != null;
727
+ };
728
+
729
+
682
730
 
683
731
 
684
732
 
@@ -48,6 +48,11 @@ export class Application extends jspb.Message {
48
48
  getBranch(): string;
49
49
  setBranch(value: string): Application;
50
50
 
51
+ hasTemplateName(): boolean;
52
+ clearTemplateName(): void;
53
+ getTemplateName(): string | undefined;
54
+ setTemplateName(value: string): Application;
55
+
51
56
  serializeBinary(): Uint8Array;
52
57
  toObject(includeInstance?: boolean): Application.AsObject;
53
58
  static toObject(includeInstance: boolean, msg: Application): Application.AsObject;
@@ -63,6 +68,7 @@ export namespace Application {
63
68
  applicationId: string,
64
69
  organizationId: string,
65
70
  branch: string,
71
+ templateName?: string,
66
72
  }
67
73
  }
68
74
 
@@ -78,6 +84,8 @@ export class CreateLiveEditResponse extends jspb.Message {
78
84
  setExpiresAt(value: number): CreateLiveEditResponse;
79
85
  getLiveEditId(): string;
80
86
  setLiveEditId(value: string): CreateLiveEditResponse;
87
+ getWasCreated(): boolean;
88
+ setWasCreated(value: boolean): CreateLiveEditResponse;
81
89
 
82
90
  serializeBinary(): Uint8Array;
83
91
  toObject(includeInstance?: boolean): CreateLiveEditResponse.AsObject;
@@ -95,6 +103,7 @@ export namespace CreateLiveEditResponse {
95
103
  application?: Application.AsObject,
96
104
  expiresAt: number,
97
105
  liveEditId: string,
106
+ wasCreated: boolean,
98
107
  }
99
108
  }
100
109
 
@@ -407,7 +407,8 @@ proto.liveedit.v1.Application.toObject = function(includeInstance, msg) {
407
407
  var f, obj = {
408
408
  applicationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
409
409
  organizationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
410
- branch: jspb.Message.getFieldWithDefault(msg, 3, "")
410
+ branch: jspb.Message.getFieldWithDefault(msg, 3, ""),
411
+ templateName: (f = jspb.Message.getField(msg, 4)) == null ? undefined : f
411
412
  };
412
413
 
413
414
  if (includeInstance) {
@@ -456,6 +457,10 @@ proto.liveedit.v1.Application.deserializeBinaryFromReader = function(msg, reader
456
457
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
457
458
  msg.setBranch(value);
458
459
  break;
460
+ case 4:
461
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
462
+ msg.setTemplateName(value);
463
+ break;
459
464
  default:
460
465
  reader.skipField();
461
466
  break;
@@ -506,6 +511,13 @@ proto.liveedit.v1.Application.serializeBinaryToWriter = function(message, writer
506
511
  f
507
512
  );
508
513
  }
514
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
515
+ if (f != null) {
516
+ writer.writeString(
517
+ 4,
518
+ f
519
+ );
520
+ }
509
521
  };
510
522
 
511
523
 
@@ -563,6 +575,42 @@ proto.liveedit.v1.Application.prototype.setBranch = function(value) {
563
575
  };
564
576
 
565
577
 
578
+ /**
579
+ * optional string template_name = 4;
580
+ * @return {string}
581
+ */
582
+ proto.liveedit.v1.Application.prototype.getTemplateName = function() {
583
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
584
+ };
585
+
586
+
587
+ /**
588
+ * @param {string} value
589
+ * @return {!proto.liveedit.v1.Application} returns this
590
+ */
591
+ proto.liveedit.v1.Application.prototype.setTemplateName = function(value) {
592
+ return jspb.Message.setField(this, 4, value);
593
+ };
594
+
595
+
596
+ /**
597
+ * Clears the field making it undefined.
598
+ * @return {!proto.liveedit.v1.Application} returns this
599
+ */
600
+ proto.liveedit.v1.Application.prototype.clearTemplateName = function() {
601
+ return jspb.Message.setField(this, 4, undefined);
602
+ };
603
+
604
+
605
+ /**
606
+ * Returns whether this field is set.
607
+ * @return {boolean}
608
+ */
609
+ proto.liveedit.v1.Application.prototype.hasTemplateName = function() {
610
+ return jspb.Message.getField(this, 4) != null;
611
+ };
612
+
613
+
566
614
 
567
615
 
568
616
 
@@ -598,7 +646,8 @@ proto.liveedit.v1.CreateLiveEditResponse.toObject = function(includeInstance, ms
598
646
  liveEditUrl: jspb.Message.getFieldWithDefault(msg, 1, ""),
599
647
  application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f),
600
648
  expiresAt: jspb.Message.getFieldWithDefault(msg, 3, 0),
601
- liveEditId: jspb.Message.getFieldWithDefault(msg, 4, "")
649
+ liveEditId: jspb.Message.getFieldWithDefault(msg, 4, ""),
650
+ wasCreated: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
602
651
  };
603
652
 
604
653
  if (includeInstance) {
@@ -652,6 +701,10 @@ proto.liveedit.v1.CreateLiveEditResponse.deserializeBinaryFromReader = function(
652
701
  var value = /** @type {string} */ (reader.readStringRequireUtf8());
653
702
  msg.setLiveEditId(value);
654
703
  break;
704
+ case 5:
705
+ var value = /** @type {boolean} */ (reader.readBool());
706
+ msg.setWasCreated(value);
707
+ break;
655
708
  default:
656
709
  reader.skipField();
657
710
  break;
@@ -710,6 +763,13 @@ proto.liveedit.v1.CreateLiveEditResponse.serializeBinaryToWriter = function(mess
710
763
  f
711
764
  );
712
765
  }
766
+ f = message.getWasCreated();
767
+ if (f) {
768
+ writer.writeBool(
769
+ 5,
770
+ f
771
+ );
772
+ }
713
773
  };
714
774
 
715
775
 
@@ -804,6 +864,24 @@ proto.liveedit.v1.CreateLiveEditResponse.prototype.setLiveEditId = function(valu
804
864
  };
805
865
 
806
866
 
867
+ /**
868
+ * optional bool was_created = 5;
869
+ * @return {boolean}
870
+ */
871
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.getWasCreated = function() {
872
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
873
+ };
874
+
875
+
876
+ /**
877
+ * @param {boolean} value
878
+ * @return {!proto.liveedit.v1.CreateLiveEditResponse} returns this
879
+ */
880
+ proto.liveedit.v1.CreateLiveEditResponse.prototype.setWasCreated = function(value) {
881
+ return jspb.Message.setProto3BooleanField(this, 5, value);
882
+ };
883
+
884
+
807
885
 
808
886
 
809
887
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/sabs-types-js",
3
- "version": "v0.472.0",
3
+ "version": "v0.475.0",
4
4
  "description": "Superblocks Application Build System Types for JavaScript",
5
5
  "repository": {
6
6
  "type": "git",