Deployment, not crn (#49)

Reviewed-on: cerc-io/laconic-sdk#49
Co-authored-by: Thomas E Lackey <telackey@bozemanpass.com>
Co-committed-by: Thomas E Lackey <telackey@bozemanpass.com>
This commit is contained in:
Thomas E Lackey 2023-12-08 04:37:09 +00:00 committed by Thomas E Lackey
parent fc2987a5ca
commit 99bc3f0ce5
3 changed files with 18 additions and 18 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "@cerc-io/laconic-sdk", "name": "@cerc-io/laconic-sdk",
"version": "0.1.10", "version": "0.1.11",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",
"repository": "git@github.com:cerc-io/laconic-sdk.git", "repository": "git@github.com:cerc-io/laconic-sdk.git",

View File

@ -68,7 +68,7 @@ message ApplicationDeploymentRequest {
string application = 4 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""]; string application = 4 [(gogoproto.moretags) = "json:\"application\" yaml:\"application\""];
string dns = 5 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""]; string dns = 5 [(gogoproto.moretags) = "json:\"dns\" yaml:\"dns\""];
string config = 6 [(gogoproto.moretags) = "json:\"config\" yaml:\"config\""]; string config = 6 [(gogoproto.moretags) = "json:\"config\" yaml:\"config\""];
repeated string crn = 7 [(gogoproto.moretags) = "json:\"crn\" yaml:\"crn\""]; string deployment = 7 [(gogoproto.moretags) = "json:\"deployment\" yaml:\"deployment\""];
string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""]; string meta = 20 [(gogoproto.moretags) = "json:\"meta\" yaml:\"meta\""];
repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""]; repeated string tags = 21 [(gogoproto.moretags) = "json:\"tags\" yaml:\"tags\""];
} }

View File

@ -1160,12 +1160,12 @@ export namespace vulcanize.registry.v1beta1 {
application?: string; application?: string;
dns?: string; dns?: string;
config?: string; config?: string;
crn?: string[]; deployment?: string;
meta?: string; meta?: string;
tags?: string[]; tags?: string[];
}) { }) {
super(); super();
pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [7, 21], this.#one_of_decls); pb_1.Message.initialize(this, Array.isArray(data) ? data : [], 0, -1, [21], this.#one_of_decls);
if (!Array.isArray(data) && typeof data == "object") { if (!Array.isArray(data) && typeof data == "object") {
if ("type" in data && data.type != undefined) { if ("type" in data && data.type != undefined) {
this.type = data.type; this.type = data.type;
@ -1185,8 +1185,8 @@ export namespace vulcanize.registry.v1beta1 {
if ("config" in data && data.config != undefined) { if ("config" in data && data.config != undefined) {
this.config = data.config; this.config = data.config;
} }
if ("crn" in data && data.crn != undefined) { if ("deployment" in data && data.deployment != undefined) {
this.crn = data.crn; this.deployment = data.deployment;
} }
if ("meta" in data && data.meta != undefined) { if ("meta" in data && data.meta != undefined) {
this.meta = data.meta; this.meta = data.meta;
@ -1232,10 +1232,10 @@ export namespace vulcanize.registry.v1beta1 {
set config(value: string) { set config(value: string) {
pb_1.Message.setField(this, 6, value); pb_1.Message.setField(this, 6, value);
} }
get crn() { get deployment() {
return pb_1.Message.getFieldWithDefault(this, 7, []) as string[]; return pb_1.Message.getFieldWithDefault(this, 7, "") as string;
} }
set crn(value: string[]) { set deployment(value: string) {
pb_1.Message.setField(this, 7, value); pb_1.Message.setField(this, 7, value);
} }
get meta() { get meta() {
@ -1257,7 +1257,7 @@ export namespace vulcanize.registry.v1beta1 {
application?: string; application?: string;
dns?: string; dns?: string;
config?: string; config?: string;
crn?: string[]; deployment?: string;
meta?: string; meta?: string;
tags?: string[]; tags?: string[];
}): ApplicationDeploymentRequest { }): ApplicationDeploymentRequest {
@ -1280,8 +1280,8 @@ export namespace vulcanize.registry.v1beta1 {
if (data.config != null) { if (data.config != null) {
message.config = data.config; message.config = data.config;
} }
if (data.crn != null) { if (data.deployment != null) {
message.crn = data.crn; message.deployment = data.deployment;
} }
if (data.meta != null) { if (data.meta != null) {
message.meta = data.meta; message.meta = data.meta;
@ -1299,7 +1299,7 @@ export namespace vulcanize.registry.v1beta1 {
application?: string; application?: string;
dns?: string; dns?: string;
config?: string; config?: string;
crn?: string[]; deployment?: string;
meta?: string; meta?: string;
tags?: string[]; tags?: string[];
} = {}; } = {};
@ -1321,8 +1321,8 @@ export namespace vulcanize.registry.v1beta1 {
if (this.config != null) { if (this.config != null) {
data.config = this.config; data.config = this.config;
} }
if (this.crn != null) { if (this.deployment != null) {
data.crn = this.crn; data.deployment = this.deployment;
} }
if (this.meta != null) { if (this.meta != null) {
data.meta = this.meta; data.meta = this.meta;
@ -1348,8 +1348,8 @@ export namespace vulcanize.registry.v1beta1 {
writer.writeString(5, this.dns); writer.writeString(5, this.dns);
if (this.config.length) if (this.config.length)
writer.writeString(6, this.config); writer.writeString(6, this.config);
if (this.crn.length) if (this.deployment.length)
writer.writeRepeatedString(7, this.crn); writer.writeString(7, this.deployment);
if (this.meta.length) if (this.meta.length)
writer.writeString(20, this.meta); writer.writeString(20, this.meta);
if (this.tags.length) if (this.tags.length)
@ -1382,7 +1382,7 @@ export namespace vulcanize.registry.v1beta1 {
message.config = reader.readString(); message.config = reader.readString();
break; break;
case 7: case 7:
pb_1.Message.addToRepeatedField(message, 7, reader.readString()); message.deployment = reader.readString();
break; break;
case 20: case 20:
message.meta = reader.readString(); message.meta = reader.readString();