@superblocksteam/sabs-types-js 0.740.0 → 0.742.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.
@@ -12,6 +12,7 @@ import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-o
12
12
  interface ILiveEditServiceService extends grpc.ServiceDefinition<grpc.UntypedServiceImplementation> {
13
13
  createLiveEdit: ILiveEditServiceService_ICreateLiveEdit;
14
14
  terminateLiveEdit: ILiveEditServiceService_ITerminateLiveEdit;
15
+ retargetLiveEdit: ILiveEditServiceService_IRetargetLiveEdit;
15
16
  }
16
17
 
17
18
  interface ILiveEditServiceService_ICreateLiveEdit extends grpc.MethodDefinition<liveedit_v1_service_pb.CreateLiveEditRequest, liveedit_v1_service_pb.CreateLiveEditResponse> {
@@ -32,12 +33,22 @@ interface ILiveEditServiceService_ITerminateLiveEdit extends grpc.MethodDefiniti
32
33
  responseSerialize: grpc.serialize<liveedit_v1_service_pb.TerminateLiveEditResponse>;
33
34
  responseDeserialize: grpc.deserialize<liveedit_v1_service_pb.TerminateLiveEditResponse>;
34
35
  }
36
+ interface ILiveEditServiceService_IRetargetLiveEdit extends grpc.MethodDefinition<liveedit_v1_service_pb.RetargetLiveEditRequest, liveedit_v1_service_pb.RetargetLiveEditResponse> {
37
+ path: "/liveedit.v1.LiveEditService/RetargetLiveEdit";
38
+ requestStream: false;
39
+ responseStream: false;
40
+ requestSerialize: grpc.serialize<liveedit_v1_service_pb.RetargetLiveEditRequest>;
41
+ requestDeserialize: grpc.deserialize<liveedit_v1_service_pb.RetargetLiveEditRequest>;
42
+ responseSerialize: grpc.serialize<liveedit_v1_service_pb.RetargetLiveEditResponse>;
43
+ responseDeserialize: grpc.deserialize<liveedit_v1_service_pb.RetargetLiveEditResponse>;
44
+ }
35
45
 
36
46
  export const LiveEditServiceService: ILiveEditServiceService;
37
47
 
38
48
  export interface ILiveEditServiceServer extends grpc.UntypedServiceImplementation {
39
49
  createLiveEdit: grpc.handleUnaryCall<liveedit_v1_service_pb.CreateLiveEditRequest, liveedit_v1_service_pb.CreateLiveEditResponse>;
40
50
  terminateLiveEdit: grpc.handleUnaryCall<liveedit_v1_service_pb.TerminateLiveEditRequest, liveedit_v1_service_pb.TerminateLiveEditResponse>;
51
+ retargetLiveEdit: grpc.handleUnaryCall<liveedit_v1_service_pb.RetargetLiveEditRequest, liveedit_v1_service_pb.RetargetLiveEditResponse>;
41
52
  }
42
53
 
43
54
  export interface ILiveEditServiceClient {
@@ -47,6 +58,9 @@ export interface ILiveEditServiceClient {
47
58
  terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
48
59
  terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
49
60
  terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
61
+ retargetLiveEdit(request: liveedit_v1_service_pb.RetargetLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.RetargetLiveEditResponse) => void): grpc.ClientUnaryCall;
62
+ retargetLiveEdit(request: liveedit_v1_service_pb.RetargetLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.RetargetLiveEditResponse) => void): grpc.ClientUnaryCall;
63
+ retargetLiveEdit(request: liveedit_v1_service_pb.RetargetLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.RetargetLiveEditResponse) => void): grpc.ClientUnaryCall;
50
64
  }
51
65
 
52
66
  export class LiveEditServiceClient extends grpc.Client implements ILiveEditServiceClient {
@@ -57,4 +71,7 @@ export class LiveEditServiceClient extends grpc.Client implements ILiveEditServi
57
71
  public terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
58
72
  public terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
59
73
  public terminateLiveEdit(request: liveedit_v1_service_pb.TerminateLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.TerminateLiveEditResponse) => void): grpc.ClientUnaryCall;
74
+ public retargetLiveEdit(request: liveedit_v1_service_pb.RetargetLiveEditRequest, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.RetargetLiveEditResponse) => void): grpc.ClientUnaryCall;
75
+ public retargetLiveEdit(request: liveedit_v1_service_pb.RetargetLiveEditRequest, metadata: grpc.Metadata, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.RetargetLiveEditResponse) => void): grpc.ClientUnaryCall;
76
+ public retargetLiveEdit(request: liveedit_v1_service_pb.RetargetLiveEditRequest, metadata: grpc.Metadata, options: Partial<grpc.CallOptions>, callback: (error: grpc.ServiceError | null, response: liveedit_v1_service_pb.RetargetLiveEditResponse) => void): grpc.ClientUnaryCall;
60
77
  }
@@ -29,6 +29,28 @@ function deserialize_liveedit_v1_CreateLiveEditResponse(buffer_arg) {
29
29
  return liveedit_v1_service_pb.CreateLiveEditResponse.deserializeBinary(new Uint8Array(buffer_arg));
30
30
  }
31
31
 
32
+ function serialize_liveedit_v1_RetargetLiveEditRequest(arg) {
33
+ if (!(arg instanceof liveedit_v1_service_pb.RetargetLiveEditRequest)) {
34
+ throw new Error('Expected argument of type liveedit.v1.RetargetLiveEditRequest');
35
+ }
36
+ return Buffer.from(arg.serializeBinary());
37
+ }
38
+
39
+ function deserialize_liveedit_v1_RetargetLiveEditRequest(buffer_arg) {
40
+ return liveedit_v1_service_pb.RetargetLiveEditRequest.deserializeBinary(new Uint8Array(buffer_arg));
41
+ }
42
+
43
+ function serialize_liveedit_v1_RetargetLiveEditResponse(arg) {
44
+ if (!(arg instanceof liveedit_v1_service_pb.RetargetLiveEditResponse)) {
45
+ throw new Error('Expected argument of type liveedit.v1.RetargetLiveEditResponse');
46
+ }
47
+ return Buffer.from(arg.serializeBinary());
48
+ }
49
+
50
+ function deserialize_liveedit_v1_RetargetLiveEditResponse(buffer_arg) {
51
+ return liveedit_v1_service_pb.RetargetLiveEditResponse.deserializeBinary(new Uint8Array(buffer_arg));
52
+ }
53
+
32
54
  function serialize_liveedit_v1_TerminateLiveEditRequest(arg) {
33
55
  if (!(arg instanceof liveedit_v1_service_pb.TerminateLiveEditRequest)) {
34
56
  throw new Error('Expected argument of type liveedit.v1.TerminateLiveEditRequest');
@@ -75,6 +97,17 @@ var LiveEditServiceService = exports.LiveEditServiceService = {
75
97
  responseSerialize: serialize_liveedit_v1_TerminateLiveEditResponse,
76
98
  responseDeserialize: deserialize_liveedit_v1_TerminateLiveEditResponse,
77
99
  },
100
+ retargetLiveEdit: {
101
+ path: '/liveedit.v1.LiveEditService/RetargetLiveEdit',
102
+ requestStream: false,
103
+ responseStream: false,
104
+ requestType: liveedit_v1_service_pb.RetargetLiveEditRequest,
105
+ responseType: liveedit_v1_service_pb.RetargetLiveEditResponse,
106
+ requestSerialize: serialize_liveedit_v1_RetargetLiveEditRequest,
107
+ requestDeserialize: deserialize_liveedit_v1_RetargetLiveEditRequest,
108
+ responseSerialize: serialize_liveedit_v1_RetargetLiveEditResponse,
109
+ responseDeserialize: deserialize_liveedit_v1_RetargetLiveEditResponse,
110
+ },
78
111
  };
79
112
 
80
113
  exports.LiveEditServiceClient = grpc.makeGenericClientConstructor(LiveEditServiceService);
@@ -168,6 +168,61 @@ export namespace TerminateLiveEditResponse {
168
168
  }
169
169
  }
170
170
 
171
+ export class RetargetLiveEditRequest extends jspb.Message {
172
+ getOrganizationId(): string;
173
+ setOrganizationId(value: string): RetargetLiveEditRequest;
174
+ getApplicationId(): string;
175
+ setApplicationId(value: string): RetargetLiveEditRequest;
176
+ getCurrentBranch(): string;
177
+ setCurrentBranch(value: string): RetargetLiveEditRequest;
178
+ getNewBranch(): string;
179
+ setNewBranch(value: string): RetargetLiveEditRequest;
180
+
181
+ serializeBinary(): Uint8Array;
182
+ toObject(includeInstance?: boolean): RetargetLiveEditRequest.AsObject;
183
+ static toObject(includeInstance: boolean, msg: RetargetLiveEditRequest): RetargetLiveEditRequest.AsObject;
184
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
185
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
186
+ static serializeBinaryToWriter(message: RetargetLiveEditRequest, writer: jspb.BinaryWriter): void;
187
+ static deserializeBinary(bytes: Uint8Array): RetargetLiveEditRequest;
188
+ static deserializeBinaryFromReader(message: RetargetLiveEditRequest, reader: jspb.BinaryReader): RetargetLiveEditRequest;
189
+ }
190
+
191
+ export namespace RetargetLiveEditRequest {
192
+ export type AsObject = {
193
+ organizationId: string,
194
+ applicationId: string,
195
+ currentBranch: string,
196
+ newBranch: string,
197
+ }
198
+ }
199
+
200
+ export class RetargetLiveEditResponse extends jspb.Message {
201
+ getLiveEditId(): string;
202
+ setLiveEditId(value: string): RetargetLiveEditResponse;
203
+
204
+ hasApplication(): boolean;
205
+ clearApplication(): void;
206
+ getApplication(): Application | undefined;
207
+ setApplication(value?: Application): RetargetLiveEditResponse;
208
+
209
+ serializeBinary(): Uint8Array;
210
+ toObject(includeInstance?: boolean): RetargetLiveEditResponse.AsObject;
211
+ static toObject(includeInstance: boolean, msg: RetargetLiveEditResponse): RetargetLiveEditResponse.AsObject;
212
+ static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
213
+ static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
214
+ static serializeBinaryToWriter(message: RetargetLiveEditResponse, writer: jspb.BinaryWriter): void;
215
+ static deserializeBinary(bytes: Uint8Array): RetargetLiveEditResponse;
216
+ static deserializeBinaryFromReader(message: RetargetLiveEditResponse, reader: jspb.BinaryReader): RetargetLiveEditResponse;
217
+ }
218
+
219
+ export namespace RetargetLiveEditResponse {
220
+ export type AsObject = {
221
+ liveEditId: string,
222
+ application?: Application.AsObject,
223
+ }
224
+ }
225
+
171
226
  export enum LiveEditStatus {
172
227
  LIVE_EDIT_STATUS_UNSPECIFIED = 0,
173
228
  LIVE_EDIT_STATUS_STARTING = 1,
@@ -25,6 +25,8 @@ goog.exportSymbol('proto.liveedit.v1.Application', null, global);
25
25
  goog.exportSymbol('proto.liveedit.v1.CreateLiveEditRequest', null, global);
26
26
  goog.exportSymbol('proto.liveedit.v1.CreateLiveEditResponse', null, global);
27
27
  goog.exportSymbol('proto.liveedit.v1.LiveEditStatus', null, global);
28
+ goog.exportSymbol('proto.liveedit.v1.RetargetLiveEditRequest', null, global);
29
+ goog.exportSymbol('proto.liveedit.v1.RetargetLiveEditResponse', null, global);
28
30
  goog.exportSymbol('proto.liveedit.v1.TerminateLiveEditRequest', null, global);
29
31
  goog.exportSymbol('proto.liveedit.v1.TerminateLiveEditResponse', null, global);
30
32
  /**
@@ -132,6 +134,48 @@ if (goog.DEBUG && !COMPILED) {
132
134
  */
133
135
  proto.liveedit.v1.TerminateLiveEditResponse.displayName = 'proto.liveedit.v1.TerminateLiveEditResponse';
134
136
  }
137
+ /**
138
+ * Generated by JsPbCodeGenerator.
139
+ * @param {Array=} opt_data Optional initial data array, typically from a
140
+ * server response, or constructed directly in Javascript. The array is used
141
+ * in place and becomes part of the constructed object. It is not cloned.
142
+ * If no data is provided, the constructed object will be empty, but still
143
+ * valid.
144
+ * @extends {jspb.Message}
145
+ * @constructor
146
+ */
147
+ proto.liveedit.v1.RetargetLiveEditRequest = function(opt_data) {
148
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
149
+ };
150
+ goog.inherits(proto.liveedit.v1.RetargetLiveEditRequest, jspb.Message);
151
+ if (goog.DEBUG && !COMPILED) {
152
+ /**
153
+ * @public
154
+ * @override
155
+ */
156
+ proto.liveedit.v1.RetargetLiveEditRequest.displayName = 'proto.liveedit.v1.RetargetLiveEditRequest';
157
+ }
158
+ /**
159
+ * Generated by JsPbCodeGenerator.
160
+ * @param {Array=} opt_data Optional initial data array, typically from a
161
+ * server response, or constructed directly in Javascript. The array is used
162
+ * in place and becomes part of the constructed object. It is not cloned.
163
+ * If no data is provided, the constructed object will be empty, but still
164
+ * valid.
165
+ * @extends {jspb.Message}
166
+ * @constructor
167
+ */
168
+ proto.liveedit.v1.RetargetLiveEditResponse = function(opt_data) {
169
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
170
+ };
171
+ goog.inherits(proto.liveedit.v1.RetargetLiveEditResponse, jspb.Message);
172
+ if (goog.DEBUG && !COMPILED) {
173
+ /**
174
+ * @public
175
+ * @override
176
+ */
177
+ proto.liveedit.v1.RetargetLiveEditResponse.displayName = 'proto.liveedit.v1.RetargetLiveEditResponse';
178
+ }
135
179
 
136
180
 
137
181
 
@@ -1325,6 +1369,407 @@ proto.liveedit.v1.TerminateLiveEditResponse.prototype.hasUpdated = function() {
1325
1369
  };
1326
1370
 
1327
1371
 
1372
+
1373
+
1374
+
1375
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1376
+ /**
1377
+ * Creates an object representation of this proto.
1378
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1379
+ * Optional fields that are not set will be set to undefined.
1380
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1381
+ * For the list of reserved names please see:
1382
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1383
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1384
+ * JSPB instance for transitional soy proto support:
1385
+ * http://goto/soy-param-migration
1386
+ * @return {!Object}
1387
+ */
1388
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.toObject = function(opt_includeInstance) {
1389
+ return proto.liveedit.v1.RetargetLiveEditRequest.toObject(opt_includeInstance, this);
1390
+ };
1391
+
1392
+
1393
+ /**
1394
+ * Static version of the {@see toObject} method.
1395
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1396
+ * the JSPB instance for transitional soy proto support:
1397
+ * http://goto/soy-param-migration
1398
+ * @param {!proto.liveedit.v1.RetargetLiveEditRequest} msg The msg instance to transform.
1399
+ * @return {!Object}
1400
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1401
+ */
1402
+ proto.liveedit.v1.RetargetLiveEditRequest.toObject = function(includeInstance, msg) {
1403
+ var f, obj = {
1404
+ organizationId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1405
+ applicationId: jspb.Message.getFieldWithDefault(msg, 2, ""),
1406
+ currentBranch: jspb.Message.getFieldWithDefault(msg, 3, ""),
1407
+ newBranch: jspb.Message.getFieldWithDefault(msg, 4, "")
1408
+ };
1409
+
1410
+ if (includeInstance) {
1411
+ obj.$jspbMessageInstance = msg;
1412
+ }
1413
+ return obj;
1414
+ };
1415
+ }
1416
+
1417
+
1418
+ /**
1419
+ * Deserializes binary data (in protobuf wire format).
1420
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1421
+ * @return {!proto.liveedit.v1.RetargetLiveEditRequest}
1422
+ */
1423
+ proto.liveedit.v1.RetargetLiveEditRequest.deserializeBinary = function(bytes) {
1424
+ var reader = new jspb.BinaryReader(bytes);
1425
+ var msg = new proto.liveedit.v1.RetargetLiveEditRequest;
1426
+ return proto.liveedit.v1.RetargetLiveEditRequest.deserializeBinaryFromReader(msg, reader);
1427
+ };
1428
+
1429
+
1430
+ /**
1431
+ * Deserializes binary data (in protobuf wire format) from the
1432
+ * given reader into the given message object.
1433
+ * @param {!proto.liveedit.v1.RetargetLiveEditRequest} msg The message object to deserialize into.
1434
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1435
+ * @return {!proto.liveedit.v1.RetargetLiveEditRequest}
1436
+ */
1437
+ proto.liveedit.v1.RetargetLiveEditRequest.deserializeBinaryFromReader = function(msg, reader) {
1438
+ while (reader.nextField()) {
1439
+ if (reader.isEndGroup()) {
1440
+ break;
1441
+ }
1442
+ var field = reader.getFieldNumber();
1443
+ switch (field) {
1444
+ case 1:
1445
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1446
+ msg.setOrganizationId(value);
1447
+ break;
1448
+ case 2:
1449
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1450
+ msg.setApplicationId(value);
1451
+ break;
1452
+ case 3:
1453
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1454
+ msg.setCurrentBranch(value);
1455
+ break;
1456
+ case 4:
1457
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1458
+ msg.setNewBranch(value);
1459
+ break;
1460
+ default:
1461
+ reader.skipField();
1462
+ break;
1463
+ }
1464
+ }
1465
+ return msg;
1466
+ };
1467
+
1468
+
1469
+ /**
1470
+ * Serializes the message to binary data (in protobuf wire format).
1471
+ * @return {!Uint8Array}
1472
+ */
1473
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.serializeBinary = function() {
1474
+ var writer = new jspb.BinaryWriter();
1475
+ proto.liveedit.v1.RetargetLiveEditRequest.serializeBinaryToWriter(this, writer);
1476
+ return writer.getResultBuffer();
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Serializes the given message to binary data (in protobuf wire
1482
+ * format), writing to the given BinaryWriter.
1483
+ * @param {!proto.liveedit.v1.RetargetLiveEditRequest} message
1484
+ * @param {!jspb.BinaryWriter} writer
1485
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1486
+ */
1487
+ proto.liveedit.v1.RetargetLiveEditRequest.serializeBinaryToWriter = function(message, writer) {
1488
+ var f = undefined;
1489
+ f = message.getOrganizationId();
1490
+ if (f.length > 0) {
1491
+ writer.writeString(
1492
+ 1,
1493
+ f
1494
+ );
1495
+ }
1496
+ f = message.getApplicationId();
1497
+ if (f.length > 0) {
1498
+ writer.writeString(
1499
+ 2,
1500
+ f
1501
+ );
1502
+ }
1503
+ f = message.getCurrentBranch();
1504
+ if (f.length > 0) {
1505
+ writer.writeString(
1506
+ 3,
1507
+ f
1508
+ );
1509
+ }
1510
+ f = message.getNewBranch();
1511
+ if (f.length > 0) {
1512
+ writer.writeString(
1513
+ 4,
1514
+ f
1515
+ );
1516
+ }
1517
+ };
1518
+
1519
+
1520
+ /**
1521
+ * optional string organization_id = 1;
1522
+ * @return {string}
1523
+ */
1524
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.getOrganizationId = function() {
1525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1526
+ };
1527
+
1528
+
1529
+ /**
1530
+ * @param {string} value
1531
+ * @return {!proto.liveedit.v1.RetargetLiveEditRequest} returns this
1532
+ */
1533
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.setOrganizationId = function(value) {
1534
+ return jspb.Message.setProto3StringField(this, 1, value);
1535
+ };
1536
+
1537
+
1538
+ /**
1539
+ * optional string application_id = 2;
1540
+ * @return {string}
1541
+ */
1542
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.getApplicationId = function() {
1543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1544
+ };
1545
+
1546
+
1547
+ /**
1548
+ * @param {string} value
1549
+ * @return {!proto.liveedit.v1.RetargetLiveEditRequest} returns this
1550
+ */
1551
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.setApplicationId = function(value) {
1552
+ return jspb.Message.setProto3StringField(this, 2, value);
1553
+ };
1554
+
1555
+
1556
+ /**
1557
+ * optional string current_branch = 3;
1558
+ * @return {string}
1559
+ */
1560
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.getCurrentBranch = function() {
1561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * @param {string} value
1567
+ * @return {!proto.liveedit.v1.RetargetLiveEditRequest} returns this
1568
+ */
1569
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.setCurrentBranch = function(value) {
1570
+ return jspb.Message.setProto3StringField(this, 3, value);
1571
+ };
1572
+
1573
+
1574
+ /**
1575
+ * optional string new_branch = 4;
1576
+ * @return {string}
1577
+ */
1578
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.getNewBranch = function() {
1579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1580
+ };
1581
+
1582
+
1583
+ /**
1584
+ * @param {string} value
1585
+ * @return {!proto.liveedit.v1.RetargetLiveEditRequest} returns this
1586
+ */
1587
+ proto.liveedit.v1.RetargetLiveEditRequest.prototype.setNewBranch = function(value) {
1588
+ return jspb.Message.setProto3StringField(this, 4, value);
1589
+ };
1590
+
1591
+
1592
+
1593
+
1594
+
1595
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1596
+ /**
1597
+ * Creates an object representation of this proto.
1598
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1599
+ * Optional fields that are not set will be set to undefined.
1600
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1601
+ * For the list of reserved names please see:
1602
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1603
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1604
+ * JSPB instance for transitional soy proto support:
1605
+ * http://goto/soy-param-migration
1606
+ * @return {!Object}
1607
+ */
1608
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.toObject = function(opt_includeInstance) {
1609
+ return proto.liveedit.v1.RetargetLiveEditResponse.toObject(opt_includeInstance, this);
1610
+ };
1611
+
1612
+
1613
+ /**
1614
+ * Static version of the {@see toObject} method.
1615
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1616
+ * the JSPB instance for transitional soy proto support:
1617
+ * http://goto/soy-param-migration
1618
+ * @param {!proto.liveedit.v1.RetargetLiveEditResponse} msg The msg instance to transform.
1619
+ * @return {!Object}
1620
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1621
+ */
1622
+ proto.liveedit.v1.RetargetLiveEditResponse.toObject = function(includeInstance, msg) {
1623
+ var f, obj = {
1624
+ liveEditId: jspb.Message.getFieldWithDefault(msg, 1, ""),
1625
+ application: (f = msg.getApplication()) && proto.liveedit.v1.Application.toObject(includeInstance, f)
1626
+ };
1627
+
1628
+ if (includeInstance) {
1629
+ obj.$jspbMessageInstance = msg;
1630
+ }
1631
+ return obj;
1632
+ };
1633
+ }
1634
+
1635
+
1636
+ /**
1637
+ * Deserializes binary data (in protobuf wire format).
1638
+ * @param {jspb.binary.bytesource.ByteSource} bytes The bytes to deserialize.
1639
+ * @return {!proto.liveedit.v1.RetargetLiveEditResponse}
1640
+ */
1641
+ proto.liveedit.v1.RetargetLiveEditResponse.deserializeBinary = function(bytes) {
1642
+ var reader = new jspb.BinaryReader(bytes);
1643
+ var msg = new proto.liveedit.v1.RetargetLiveEditResponse;
1644
+ return proto.liveedit.v1.RetargetLiveEditResponse.deserializeBinaryFromReader(msg, reader);
1645
+ };
1646
+
1647
+
1648
+ /**
1649
+ * Deserializes binary data (in protobuf wire format) from the
1650
+ * given reader into the given message object.
1651
+ * @param {!proto.liveedit.v1.RetargetLiveEditResponse} msg The message object to deserialize into.
1652
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1653
+ * @return {!proto.liveedit.v1.RetargetLiveEditResponse}
1654
+ */
1655
+ proto.liveedit.v1.RetargetLiveEditResponse.deserializeBinaryFromReader = function(msg, reader) {
1656
+ while (reader.nextField()) {
1657
+ if (reader.isEndGroup()) {
1658
+ break;
1659
+ }
1660
+ var field = reader.getFieldNumber();
1661
+ switch (field) {
1662
+ case 1:
1663
+ var value = /** @type {string} */ (reader.readStringRequireUtf8());
1664
+ msg.setLiveEditId(value);
1665
+ break;
1666
+ case 2:
1667
+ var value = new proto.liveedit.v1.Application;
1668
+ reader.readMessage(value,proto.liveedit.v1.Application.deserializeBinaryFromReader);
1669
+ msg.setApplication(value);
1670
+ break;
1671
+ default:
1672
+ reader.skipField();
1673
+ break;
1674
+ }
1675
+ }
1676
+ return msg;
1677
+ };
1678
+
1679
+
1680
+ /**
1681
+ * Serializes the message to binary data (in protobuf wire format).
1682
+ * @return {!Uint8Array}
1683
+ */
1684
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.serializeBinary = function() {
1685
+ var writer = new jspb.BinaryWriter();
1686
+ proto.liveedit.v1.RetargetLiveEditResponse.serializeBinaryToWriter(this, writer);
1687
+ return writer.getResultBuffer();
1688
+ };
1689
+
1690
+
1691
+ /**
1692
+ * Serializes the given message to binary data (in protobuf wire
1693
+ * format), writing to the given BinaryWriter.
1694
+ * @param {!proto.liveedit.v1.RetargetLiveEditResponse} message
1695
+ * @param {!jspb.BinaryWriter} writer
1696
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1697
+ */
1698
+ proto.liveedit.v1.RetargetLiveEditResponse.serializeBinaryToWriter = function(message, writer) {
1699
+ var f = undefined;
1700
+ f = message.getLiveEditId();
1701
+ if (f.length > 0) {
1702
+ writer.writeString(
1703
+ 1,
1704
+ f
1705
+ );
1706
+ }
1707
+ f = message.getApplication();
1708
+ if (f != null) {
1709
+ writer.writeMessage(
1710
+ 2,
1711
+ f,
1712
+ proto.liveedit.v1.Application.serializeBinaryToWriter
1713
+ );
1714
+ }
1715
+ };
1716
+
1717
+
1718
+ /**
1719
+ * optional string live_edit_id = 1;
1720
+ * @return {string}
1721
+ */
1722
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.getLiveEditId = function() {
1723
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * @param {string} value
1729
+ * @return {!proto.liveedit.v1.RetargetLiveEditResponse} returns this
1730
+ */
1731
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.setLiveEditId = function(value) {
1732
+ return jspb.Message.setProto3StringField(this, 1, value);
1733
+ };
1734
+
1735
+
1736
+ /**
1737
+ * optional Application application = 2;
1738
+ * @return {?proto.liveedit.v1.Application}
1739
+ */
1740
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.getApplication = function() {
1741
+ return /** @type{?proto.liveedit.v1.Application} */ (
1742
+ jspb.Message.getWrapperField(this, proto.liveedit.v1.Application, 2));
1743
+ };
1744
+
1745
+
1746
+ /**
1747
+ * @param {?proto.liveedit.v1.Application|undefined} value
1748
+ * @return {!proto.liveedit.v1.RetargetLiveEditResponse} returns this
1749
+ */
1750
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.setApplication = function(value) {
1751
+ return jspb.Message.setWrapperField(this, 2, value);
1752
+ };
1753
+
1754
+
1755
+ /**
1756
+ * Clears the message field making it undefined.
1757
+ * @return {!proto.liveedit.v1.RetargetLiveEditResponse} returns this
1758
+ */
1759
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.clearApplication = function() {
1760
+ return this.setApplication(undefined);
1761
+ };
1762
+
1763
+
1764
+ /**
1765
+ * Returns whether this field is set.
1766
+ * @return {boolean}
1767
+ */
1768
+ proto.liveedit.v1.RetargetLiveEditResponse.prototype.hasApplication = function() {
1769
+ return jspb.Message.getField(this, 2) != null;
1770
+ };
1771
+
1772
+
1328
1773
  /**
1329
1774
  * @enum {number}
1330
1775
  */
@@ -2,10 +2,10 @@
2
2
 
3
3
  'use strict';
4
4
  var grpc = require('@grpc/grpc-js');
5
- var liveedit_v2_service_pb = require('../../liveedit/v2/service_pb.js');
6
- var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
7
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
8
- var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb.js');
5
+ var liveedit_v2_service_pb = require('../../liveedit/v2/service_pb');
6
+ var google_api_annotations_pb = require('../../google/api/annotations_pb');
7
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb');
8
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
9
9
 
10
10
  function serialize_liveedit_v2_EnsureLiveEditRequest(arg) {
11
11
  if (!(arg instanceof liveedit_v2_service_pb.EnsureLiveEditRequest)) {
@@ -8,7 +8,7 @@ import * as jspb from "google-protobuf";
8
8
  import * as google_protobuf_timestamp_pb from "google-protobuf/google/protobuf/timestamp_pb";
9
9
  import * as protoc_gen_openapiv2_options_annotations_pb from "../../protoc-gen-openapiv2/options/annotations_pb";
10
10
 
11
- export class LiveEditSpec extends jspb.Message {
11
+ export class LiveEditSpec extends jspb.Message {
12
12
 
13
13
  hasApplication(): boolean;
14
14
  clearApplication(): void;
@@ -37,7 +37,7 @@ export namespace LiveEditSpec {
37
37
  }
38
38
  }
39
39
 
40
- export class LiveEdit extends jspb.Message {
40
+ export class LiveEdit extends jspb.Message {
41
41
  getLiveEditId(): string;
42
42
  setLiveEditId(value: string): LiveEdit;
43
43
  getStatus(): LiveEditStatus;
@@ -84,7 +84,7 @@ export namespace LiveEdit {
84
84
  }
85
85
  }
86
86
 
87
- export class EnsureLiveEditRequest extends jspb.Message {
87
+ export class EnsureLiveEditRequest extends jspb.Message {
88
88
 
89
89
  hasSpec(): boolean;
90
90
  clearSpec(): void;
@@ -110,7 +110,7 @@ export namespace EnsureLiveEditRequest {
110
110
  }
111
111
  }
112
112
 
113
- export class EnsureLiveEditResponse extends jspb.Message {
113
+ export class EnsureLiveEditResponse extends jspb.Message {
114
114
 
115
115
  hasLiveEdit(): boolean;
116
116
  clearLiveEdit(): void;
@@ -136,7 +136,7 @@ export namespace EnsureLiveEditResponse {
136
136
  }
137
137
  }
138
138
 
139
- export class GetLiveEditRequest extends jspb.Message {
139
+ export class GetLiveEditRequest extends jspb.Message {
140
140
  getLiveEditId(): string;
141
141
  setLiveEditId(value: string): GetLiveEditRequest;
142
142
 
@@ -156,7 +156,7 @@ export namespace GetLiveEditRequest {
156
156
  }
157
157
  }
158
158
 
159
- export class GetLiveEditResponse extends jspb.Message {
159
+ export class GetLiveEditResponse extends jspb.Message {
160
160
 
161
161
  hasLiveEdit(): boolean;
162
162
  clearLiveEdit(): void;
@@ -179,7 +179,7 @@ export namespace GetLiveEditResponse {
179
179
  }
180
180
  }
181
181
 
182
- export class Application extends jspb.Message {
182
+ export class Application extends jspb.Message {
183
183
  getApplicationId(): string;
184
184
  setApplicationId(value: string): Application;
185
185
  getOrganizationId(): string;
@@ -15,11 +15,11 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = globalThis;
17
17
 
18
- var google_api_annotations_pb = require('../../google/api/annotations_pb.js');
18
+ var google_api_annotations_pb = require('../../google/api/annotations_pb');
19
19
  goog.object.extend(proto, google_api_annotations_pb);
20
- var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb');
21
21
  goog.object.extend(proto, google_protobuf_timestamp_pb);
22
- var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb.js');
22
+ var protoc$gen$openapiv2_options_annotations_pb = require('../../protoc-gen-openapiv2/options/annotations_pb');
23
23
  goog.object.extend(proto, protoc$gen$openapiv2_options_annotations_pb);
24
24
  goog.exportSymbol('proto.liveedit.v2.Application', null, global);
25
25
  goog.exportSymbol('proto.liveedit.v2.EnsureLiveEditRequest', null, global);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@superblocksteam/sabs-types-js",
3
- "version": "v0.740.0",
3
+ "version": "v0.742.0",
4
4
  "description": "Superblocks Application Build System Types for JavaScript",
5
5
  "repository": {
6
6
  "type": "git",