@lace-cloud/proto 0.11.0 → 0.13.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.
- package/dist/index.cjs +108 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +9 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.mjs +108 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1935,7 +1935,7 @@ var Local = {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
};
|
|
1937
1937
|
function createBaseUse() {
|
|
1938
|
-
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0 };
|
|
1938
|
+
return { id: "", module: "", inputs: {}, depends_on: [], count: void 0, for_each: void 0, providers: {} };
|
|
1939
1939
|
}
|
|
1940
1940
|
var Use = {
|
|
1941
1941
|
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
@@ -1957,6 +1957,9 @@ var Use = {
|
|
|
1957
1957
|
if (message.for_each !== void 0) {
|
|
1958
1958
|
Binding.encode(message.for_each, writer.uint32(50).fork()).join();
|
|
1959
1959
|
}
|
|
1960
|
+
globalThis.Object.entries(message.providers).forEach(([key, value]) => {
|
|
1961
|
+
Use_ProvidersEntry.encode({ key, value }, writer.uint32(58).fork()).join();
|
|
1962
|
+
});
|
|
1960
1963
|
return writer;
|
|
1961
1964
|
},
|
|
1962
1965
|
decode(input, length) {
|
|
@@ -2011,6 +2014,16 @@ var Use = {
|
|
|
2011
2014
|
message.for_each = Binding.decode(reader, reader.uint32());
|
|
2012
2015
|
continue;
|
|
2013
2016
|
}
|
|
2017
|
+
case 7: {
|
|
2018
|
+
if (tag !== 58) {
|
|
2019
|
+
break;
|
|
2020
|
+
}
|
|
2021
|
+
const entry7 = Use_ProvidersEntry.decode(reader, reader.uint32());
|
|
2022
|
+
if (entry7.value !== void 0) {
|
|
2023
|
+
message.providers[entry7.key] = entry7.value;
|
|
2024
|
+
}
|
|
2025
|
+
continue;
|
|
2026
|
+
}
|
|
2014
2027
|
}
|
|
2015
2028
|
if ((tag & 7) === 4 || tag === 0) {
|
|
2016
2029
|
break;
|
|
@@ -2032,7 +2045,14 @@ var Use = {
|
|
|
2032
2045
|
) : {},
|
|
2033
2046
|
depends_on: globalThis.Array.isArray(object?.dependsOn) ? object.dependsOn.map((e) => globalThis.String(e)) : globalThis.Array.isArray(object?.depends_on) ? object.depends_on.map((e) => globalThis.String(e)) : [],
|
|
2034
2047
|
count: isSet2(object.count) ? Binding.fromJSON(object.count) : void 0,
|
|
2035
|
-
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0
|
|
2048
|
+
for_each: isSet2(object.forEach) ? Binding.fromJSON(object.forEach) : isSet2(object.for_each) ? Binding.fromJSON(object.for_each) : void 0,
|
|
2049
|
+
providers: isObject2(object.providers) ? globalThis.Object.entries(object.providers).reduce(
|
|
2050
|
+
(acc, [key, value]) => {
|
|
2051
|
+
acc[key] = globalThis.String(value);
|
|
2052
|
+
return acc;
|
|
2053
|
+
},
|
|
2054
|
+
{}
|
|
2055
|
+
) : {}
|
|
2036
2056
|
};
|
|
2037
2057
|
},
|
|
2038
2058
|
toJSON(message) {
|
|
@@ -2061,6 +2081,15 @@ var Use = {
|
|
|
2061
2081
|
if (message.for_each !== void 0) {
|
|
2062
2082
|
obj.forEach = Binding.toJSON(message.for_each);
|
|
2063
2083
|
}
|
|
2084
|
+
if (message.providers) {
|
|
2085
|
+
const entries = globalThis.Object.entries(message.providers);
|
|
2086
|
+
if (entries.length > 0) {
|
|
2087
|
+
obj.providers = {};
|
|
2088
|
+
entries.forEach(([k, v]) => {
|
|
2089
|
+
obj.providers[k] = v;
|
|
2090
|
+
});
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2064
2093
|
return obj;
|
|
2065
2094
|
},
|
|
2066
2095
|
create(base) {
|
|
@@ -2082,6 +2111,15 @@ var Use = {
|
|
|
2082
2111
|
message.depends_on = object.depends_on?.map((e) => e) || [];
|
|
2083
2112
|
message.count = object.count !== void 0 && object.count !== null ? Binding.fromPartial(object.count) : void 0;
|
|
2084
2113
|
message.for_each = object.for_each !== void 0 && object.for_each !== null ? Binding.fromPartial(object.for_each) : void 0;
|
|
2114
|
+
message.providers = globalThis.Object.entries(object.providers ?? {}).reduce(
|
|
2115
|
+
(acc, [key, value]) => {
|
|
2116
|
+
if (value !== void 0) {
|
|
2117
|
+
acc[key] = globalThis.String(value);
|
|
2118
|
+
}
|
|
2119
|
+
return acc;
|
|
2120
|
+
},
|
|
2121
|
+
{}
|
|
2122
|
+
);
|
|
2085
2123
|
return message;
|
|
2086
2124
|
}
|
|
2087
2125
|
};
|
|
@@ -2153,6 +2191,74 @@ var Use_InputsEntry = {
|
|
|
2153
2191
|
return message;
|
|
2154
2192
|
}
|
|
2155
2193
|
};
|
|
2194
|
+
function createBaseUse_ProvidersEntry() {
|
|
2195
|
+
return { key: "", value: "" };
|
|
2196
|
+
}
|
|
2197
|
+
var Use_ProvidersEntry = {
|
|
2198
|
+
encode(message, writer = new import_wire2.BinaryWriter()) {
|
|
2199
|
+
if (message.key !== "") {
|
|
2200
|
+
writer.uint32(10).string(message.key);
|
|
2201
|
+
}
|
|
2202
|
+
if (message.value !== "") {
|
|
2203
|
+
writer.uint32(18).string(message.value);
|
|
2204
|
+
}
|
|
2205
|
+
return writer;
|
|
2206
|
+
},
|
|
2207
|
+
decode(input, length) {
|
|
2208
|
+
const reader = input instanceof import_wire2.BinaryReader ? input : new import_wire2.BinaryReader(input);
|
|
2209
|
+
const end = length === void 0 ? reader.len : reader.pos + length;
|
|
2210
|
+
const message = createBaseUse_ProvidersEntry();
|
|
2211
|
+
while (reader.pos < end) {
|
|
2212
|
+
const tag = reader.uint32();
|
|
2213
|
+
switch (tag >>> 3) {
|
|
2214
|
+
case 1: {
|
|
2215
|
+
if (tag !== 10) {
|
|
2216
|
+
break;
|
|
2217
|
+
}
|
|
2218
|
+
message.key = reader.string();
|
|
2219
|
+
continue;
|
|
2220
|
+
}
|
|
2221
|
+
case 2: {
|
|
2222
|
+
if (tag !== 18) {
|
|
2223
|
+
break;
|
|
2224
|
+
}
|
|
2225
|
+
message.value = reader.string();
|
|
2226
|
+
continue;
|
|
2227
|
+
}
|
|
2228
|
+
}
|
|
2229
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
2230
|
+
break;
|
|
2231
|
+
}
|
|
2232
|
+
reader.skip(tag & 7);
|
|
2233
|
+
}
|
|
2234
|
+
return message;
|
|
2235
|
+
},
|
|
2236
|
+
fromJSON(object) {
|
|
2237
|
+
return {
|
|
2238
|
+
key: isSet2(object.key) ? globalThis.String(object.key) : "",
|
|
2239
|
+
value: isSet2(object.value) ? globalThis.String(object.value) : ""
|
|
2240
|
+
};
|
|
2241
|
+
},
|
|
2242
|
+
toJSON(message) {
|
|
2243
|
+
const obj = {};
|
|
2244
|
+
if (message.key !== "") {
|
|
2245
|
+
obj.key = message.key;
|
|
2246
|
+
}
|
|
2247
|
+
if (message.value !== "") {
|
|
2248
|
+
obj.value = message.value;
|
|
2249
|
+
}
|
|
2250
|
+
return obj;
|
|
2251
|
+
},
|
|
2252
|
+
create(base) {
|
|
2253
|
+
return Use_ProvidersEntry.fromPartial(base ?? {});
|
|
2254
|
+
},
|
|
2255
|
+
fromPartial(object) {
|
|
2256
|
+
const message = createBaseUse_ProvidersEntry();
|
|
2257
|
+
message.key = object.key ?? "";
|
|
2258
|
+
message.value = object.value ?? "";
|
|
2259
|
+
return message;
|
|
2260
|
+
}
|
|
2261
|
+
};
|
|
2156
2262
|
function createBaseResource() {
|
|
2157
2263
|
return {
|
|
2158
2264
|
id: "",
|