@replit/protocol 0.3.4 → 0.3.6
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/main/index.d.ts +22 -0
- package/main/index.js +78 -0
- package/main/index.js.flow +31 -0
- package/package.json +1 -1
package/main/index.d.ts
CHANGED
|
@@ -17004,6 +17004,12 @@ export namespace replit {
|
|
|
17004
17004
|
|
|
17005
17005
|
/** DeploymentConfig ignorePorts */
|
|
17006
17006
|
ignorePorts?: (boolean|null);
|
|
17007
|
+
|
|
17008
|
+
/** DeploymentConfig target */
|
|
17009
|
+
target?: (replit.goval.api.DeploymentConfig.Target|null);
|
|
17010
|
+
|
|
17011
|
+
/** DeploymentConfig publicDir */
|
|
17012
|
+
publicDir?: (string|null);
|
|
17007
17013
|
}
|
|
17008
17014
|
|
|
17009
17015
|
/** Represents a DeploymentConfig. */
|
|
@@ -17024,6 +17030,12 @@ export namespace replit {
|
|
|
17024
17030
|
/** DeploymentConfig ignorePorts. */
|
|
17025
17031
|
public ignorePorts: boolean;
|
|
17026
17032
|
|
|
17033
|
+
/** DeploymentConfig target. */
|
|
17034
|
+
public target: replit.goval.api.DeploymentConfig.Target;
|
|
17035
|
+
|
|
17036
|
+
/** DeploymentConfig publicDir. */
|
|
17037
|
+
public publicDir: string;
|
|
17038
|
+
|
|
17027
17039
|
/**
|
|
17028
17040
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
17029
17041
|
* @param [properties] Properties to set
|
|
@@ -17095,6 +17107,16 @@ export namespace replit {
|
|
|
17095
17107
|
public toJSON(): { [k: string]: any };
|
|
17096
17108
|
}
|
|
17097
17109
|
|
|
17110
|
+
namespace DeploymentConfig {
|
|
17111
|
+
|
|
17112
|
+
/** Target enum. */
|
|
17113
|
+
enum Target {
|
|
17114
|
+
GCE = 0,
|
|
17115
|
+
CLOUDRUN = 1,
|
|
17116
|
+
STATIC = 2
|
|
17117
|
+
}
|
|
17118
|
+
}
|
|
17119
|
+
|
|
17098
17120
|
/** Properties of an ExtensionConfig. */
|
|
17099
17121
|
interface IExtensionConfig {
|
|
17100
17122
|
|
package/main/index.js
CHANGED
|
@@ -42612,6 +42612,8 @@
|
|
|
42612
42612
|
* @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [run] DeploymentConfig run
|
|
42613
42613
|
* @property {replit.goval.api.Exec|replit.goval.api.IExec|null} [build] DeploymentConfig build
|
|
42614
42614
|
* @property {boolean|null} [ignorePorts] DeploymentConfig ignorePorts
|
|
42615
|
+
* @property {replit.goval.api.DeploymentConfig.Target|null} [target] DeploymentConfig target
|
|
42616
|
+
* @property {string|null} [publicDir] DeploymentConfig publicDir
|
|
42615
42617
|
*/
|
|
42616
42618
|
|
|
42617
42619
|
/**
|
|
@@ -42652,6 +42654,22 @@
|
|
|
42652
42654
|
*/
|
|
42653
42655
|
DeploymentConfig.prototype.ignorePorts = false;
|
|
42654
42656
|
|
|
42657
|
+
/**
|
|
42658
|
+
* DeploymentConfig target.
|
|
42659
|
+
* @member {replit.goval.api.DeploymentConfig.Target} target
|
|
42660
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
42661
|
+
* @instance
|
|
42662
|
+
*/
|
|
42663
|
+
DeploymentConfig.prototype.target = 0;
|
|
42664
|
+
|
|
42665
|
+
/**
|
|
42666
|
+
* DeploymentConfig publicDir.
|
|
42667
|
+
* @member {string} publicDir
|
|
42668
|
+
* @memberof replit.goval.api.DeploymentConfig
|
|
42669
|
+
* @instance
|
|
42670
|
+
*/
|
|
42671
|
+
DeploymentConfig.prototype.publicDir = "";
|
|
42672
|
+
|
|
42655
42673
|
/**
|
|
42656
42674
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
42657
42675
|
* @function create
|
|
@@ -42682,6 +42700,10 @@
|
|
|
42682
42700
|
$root.replit.goval.api.Exec.encode(message.build, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
42683
42701
|
if (message.ignorePorts != null && Object.hasOwnProperty.call(message, "ignorePorts"))
|
|
42684
42702
|
writer.uint32(/* id 3, wireType 0 =*/24).bool(message.ignorePorts);
|
|
42703
|
+
if (message.target != null && Object.hasOwnProperty.call(message, "target"))
|
|
42704
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.target);
|
|
42705
|
+
if (message.publicDir != null && Object.hasOwnProperty.call(message, "publicDir"))
|
|
42706
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.publicDir);
|
|
42685
42707
|
return writer;
|
|
42686
42708
|
};
|
|
42687
42709
|
|
|
@@ -42725,6 +42747,12 @@
|
|
|
42725
42747
|
case 3:
|
|
42726
42748
|
message.ignorePorts = reader.bool();
|
|
42727
42749
|
break;
|
|
42750
|
+
case 4:
|
|
42751
|
+
message.target = reader.int32();
|
|
42752
|
+
break;
|
|
42753
|
+
case 5:
|
|
42754
|
+
message.publicDir = reader.string();
|
|
42755
|
+
break;
|
|
42728
42756
|
default:
|
|
42729
42757
|
reader.skipType(tag & 7);
|
|
42730
42758
|
break;
|
|
@@ -42773,6 +42801,18 @@
|
|
|
42773
42801
|
if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
|
|
42774
42802
|
if (typeof message.ignorePorts !== "boolean")
|
|
42775
42803
|
return "ignorePorts: boolean expected";
|
|
42804
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
42805
|
+
switch (message.target) {
|
|
42806
|
+
default:
|
|
42807
|
+
return "target: enum value expected";
|
|
42808
|
+
case 0:
|
|
42809
|
+
case 1:
|
|
42810
|
+
case 2:
|
|
42811
|
+
break;
|
|
42812
|
+
}
|
|
42813
|
+
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
42814
|
+
if (!$util.isString(message.publicDir))
|
|
42815
|
+
return "publicDir: string expected";
|
|
42776
42816
|
return null;
|
|
42777
42817
|
};
|
|
42778
42818
|
|
|
@@ -42800,6 +42840,22 @@
|
|
|
42800
42840
|
}
|
|
42801
42841
|
if (object.ignorePorts != null)
|
|
42802
42842
|
message.ignorePorts = Boolean(object.ignorePorts);
|
|
42843
|
+
switch (object.target) {
|
|
42844
|
+
case "GCE":
|
|
42845
|
+
case 0:
|
|
42846
|
+
message.target = 0;
|
|
42847
|
+
break;
|
|
42848
|
+
case "CLOUDRUN":
|
|
42849
|
+
case 1:
|
|
42850
|
+
message.target = 1;
|
|
42851
|
+
break;
|
|
42852
|
+
case "STATIC":
|
|
42853
|
+
case 2:
|
|
42854
|
+
message.target = 2;
|
|
42855
|
+
break;
|
|
42856
|
+
}
|
|
42857
|
+
if (object.publicDir != null)
|
|
42858
|
+
message.publicDir = String(object.publicDir);
|
|
42803
42859
|
return message;
|
|
42804
42860
|
};
|
|
42805
42861
|
|
|
@@ -42820,6 +42876,8 @@
|
|
|
42820
42876
|
object.run = null;
|
|
42821
42877
|
object.build = null;
|
|
42822
42878
|
object.ignorePorts = false;
|
|
42879
|
+
object.target = options.enums === String ? "GCE" : 0;
|
|
42880
|
+
object.publicDir = "";
|
|
42823
42881
|
}
|
|
42824
42882
|
if (message.run != null && message.hasOwnProperty("run"))
|
|
42825
42883
|
object.run = $root.replit.goval.api.Exec.toObject(message.run, options);
|
|
@@ -42827,6 +42885,10 @@
|
|
|
42827
42885
|
object.build = $root.replit.goval.api.Exec.toObject(message.build, options);
|
|
42828
42886
|
if (message.ignorePorts != null && message.hasOwnProperty("ignorePorts"))
|
|
42829
42887
|
object.ignorePorts = message.ignorePorts;
|
|
42888
|
+
if (message.target != null && message.hasOwnProperty("target"))
|
|
42889
|
+
object.target = options.enums === String ? $root.replit.goval.api.DeploymentConfig.Target[message.target] : message.target;
|
|
42890
|
+
if (message.publicDir != null && message.hasOwnProperty("publicDir"))
|
|
42891
|
+
object.publicDir = message.publicDir;
|
|
42830
42892
|
return object;
|
|
42831
42893
|
};
|
|
42832
42894
|
|
|
@@ -42841,6 +42903,22 @@
|
|
|
42841
42903
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
42842
42904
|
};
|
|
42843
42905
|
|
|
42906
|
+
/**
|
|
42907
|
+
* Target enum.
|
|
42908
|
+
* @name replit.goval.api.DeploymentConfig.Target
|
|
42909
|
+
* @enum {number}
|
|
42910
|
+
* @property {number} GCE=0 GCE value
|
|
42911
|
+
* @property {number} CLOUDRUN=1 CLOUDRUN value
|
|
42912
|
+
* @property {number} STATIC=2 STATIC value
|
|
42913
|
+
*/
|
|
42914
|
+
DeploymentConfig.Target = (function() {
|
|
42915
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
42916
|
+
values[valuesById[0] = "GCE"] = 0;
|
|
42917
|
+
values[valuesById[1] = "CLOUDRUN"] = 1;
|
|
42918
|
+
values[valuesById[2] = "STATIC"] = 2;
|
|
42919
|
+
return values;
|
|
42920
|
+
})();
|
|
42921
|
+
|
|
42844
42922
|
return DeploymentConfig;
|
|
42845
42923
|
})();
|
|
42846
42924
|
|
package/main/index.js.flow
CHANGED
|
@@ -24379,6 +24379,16 @@ declare type replit$goval$api$IDeploymentConfig = {|
|
|
|
24379
24379
|
* DeploymentConfig ignorePorts
|
|
24380
24380
|
*/
|
|
24381
24381
|
ignorePorts?: boolean | null,
|
|
24382
|
+
|
|
24383
|
+
/**
|
|
24384
|
+
* DeploymentConfig target
|
|
24385
|
+
*/
|
|
24386
|
+
target?: $Values<typeof replit$goval$api$DeploymentConfig$Target> | null,
|
|
24387
|
+
|
|
24388
|
+
/**
|
|
24389
|
+
* DeploymentConfig publicDir
|
|
24390
|
+
*/
|
|
24391
|
+
publicDir?: string | null,
|
|
24382
24392
|
|};
|
|
24383
24393
|
|
|
24384
24394
|
/**
|
|
@@ -24406,6 +24416,16 @@ declare class replit$goval$api$DeploymentConfig {
|
|
|
24406
24416
|
*/
|
|
24407
24417
|
ignorePorts: boolean;
|
|
24408
24418
|
|
|
24419
|
+
/**
|
|
24420
|
+
* DeploymentConfig target.
|
|
24421
|
+
*/
|
|
24422
|
+
target: $Values<typeof replit$goval$api$DeploymentConfig$Target>;
|
|
24423
|
+
|
|
24424
|
+
/**
|
|
24425
|
+
* DeploymentConfig publicDir.
|
|
24426
|
+
*/
|
|
24427
|
+
publicDir: string;
|
|
24428
|
+
|
|
24409
24429
|
/**
|
|
24410
24430
|
* Creates a new DeploymentConfig instance using the specified properties.
|
|
24411
24431
|
* @param [properties] Properties to set
|
|
@@ -24499,8 +24519,19 @@ declare class replit$goval$api$DeploymentConfig {
|
|
|
24499
24519
|
toJSON(): {|
|
|
24500
24520
|
[k: string]: any,
|
|
24501
24521
|
|};
|
|
24522
|
+
static Target: typeof replit$goval$api$DeploymentConfig$Target;
|
|
24502
24523
|
}
|
|
24503
24524
|
|
|
24525
|
+
/**
|
|
24526
|
+
* Target enum.
|
|
24527
|
+
*/
|
|
24528
|
+
|
|
24529
|
+
declare var replit$goval$api$DeploymentConfig$Target: {|
|
|
24530
|
+
+GCE: 0, // 0
|
|
24531
|
+
+CLOUDRUN: 1, // 1
|
|
24532
|
+
+STATIC: 2, // 2
|
|
24533
|
+
|};
|
|
24534
|
+
|
|
24504
24535
|
/**
|
|
24505
24536
|
* Properties of an ExtensionConfig.
|
|
24506
24537
|
*/
|