From a7200c54524c7a79e009601d909479efb3460a66 Mon Sep 17 00:00:00 2001 From: Simon Merschjohann Date: Sun, 26 Jun 2022 14:37:26 +0000 Subject: [PATCH] yarn prettier --- dashboard/src/actions/namespace.ts | 2 +- .../Header/ContextSelector.test.tsx | 6 +- .../src/components/Header/ContextSelector.tsx | 6 +- .../LoginFormContainer.test.tsx | 1 + dashboard/src/gen/google/api/http.ts | 72 +- dashboard/src/gen/google/protobuf/any.ts | 30 +- .../src/gen/google/protobuf/descriptor.ts | 1026 ++++-------- dashboard/src/gen/google/protobuf/struct.ts | 129 +- dashboard/src/gen/google/protobuf/wrappers.ts | 111 +- .../core/packages/v1alpha1/packages.ts | 1482 ++++++----------- .../core/packages/v1alpha1/repositories.ts | 919 ++++------ .../core/plugins/v1alpha1/plugins.ts | 104 +- .../fluxv2/packages/v1alpha1/fluxv2.ts | 761 ++++----- .../plugins/helm/packages/v1alpha1/helm.ts | 984 +++++------ .../packages/v1alpha1/kapp_controller.ts | 673 +++----- .../plugins/resources/v1alpha1/resources.ts | 466 ++---- .../protoc-gen-openapiv2/options/openapiv2.ts | 842 +++------- dashboard/src/reducers/cluster.test.ts | 1 + dashboard/src/reducers/config.ts | 2 +- dashboard/src/shared/Auth.test.ts | 2 + dashboard/src/shared/Namespace.ts | 8 +- 21 files changed, 2706 insertions(+), 4921 deletions(-) diff --git a/dashboard/src/actions/namespace.ts b/dashboard/src/actions/namespace.ts index 984d91c04e77..1f7f8efce04b 100644 --- a/dashboard/src/actions/namespace.ts +++ b/dashboard/src/actions/namespace.ts @@ -82,7 +82,7 @@ export function fetchNamespaces( export function createNamespace( cluster: string, ns: string, - labels: {[key: string]: string} + labels: { [key: string]: string }, ): ThunkAction, IStoreState, null, NamespaceAction> { return async dispatch => { try { diff --git a/dashboard/src/components/Header/ContextSelector.test.tsx b/dashboard/src/components/Header/ContextSelector.test.tsx index 2dfc8b0e3ee1..a8f82a05f08a 100644 --- a/dashboard/src/components/Header/ContextSelector.test.tsx +++ b/dashboard/src/components/Header/ContextSelector.test.tsx @@ -139,7 +139,7 @@ it("submits the form to create a new namespace with custom labels", () => { const config = cloneDeep(initialState.config); config.createNamespaceLabels = { - "managed-by": "kubeapps" + "managed-by": "kubeapps", }; const wrapper = mountWrapper(getStore({ config }), ); @@ -160,7 +160,9 @@ it("submits the form to create a new namespace with custom labels", () => { }); wrapper.update(); - expect(createNamespace).toHaveBeenCalledWith(initialState.clusters.currentCluster, "new-ns", {"managed-by": "kubeapps"}); + expect(createNamespace).toHaveBeenCalledWith(initialState.clusters.currentCluster, "new-ns", { + "managed-by": "kubeapps", + }); }); it("shows an error creating a namespace", () => { diff --git a/dashboard/src/components/Header/ContextSelector.tsx b/dashboard/src/components/Header/ContextSelector.tsx index 45d74a1d3ca7..5a70b6efd56d 100644 --- a/dashboard/src/components/Header/ContextSelector.tsx +++ b/dashboard/src/components/Header/ContextSelector.tsx @@ -35,7 +35,7 @@ function ContextSelector() { const [namespace, setStateNamespace] = useState(namespaceSelected); const [newNSModalIsOpen, setNewNSModalIsOpen] = useState(false); const [newNS, setNewNS] = useState(""); - const { createNamespaceLabels } = useSelector( (state: IStoreState) => state.config) + const { createNamespaceLabels } = useSelector((state: IStoreState) => state.config); // Control when users click outside const ref = useRef(null); @@ -83,7 +83,9 @@ function ContextSelector() { setNewNS(event.target.value); const createNewNS = async (e: React.FormEvent) => { e.preventDefault(); - const created = await dispatch(actions.namespace.createNamespace(cluster, newNS, createNamespaceLabels)); + const created = await dispatch( + actions.namespace.createNamespace(cluster, newNS, createNamespaceLabels), + ); if (created) { closeNewNSModal(); dispatch(actions.namespace.setNamespace(cluster, newNS)); diff --git a/dashboard/src/containers/LoginFormContainer/LoginFormContainer.test.tsx b/dashboard/src/containers/LoginFormContainer/LoginFormContainer.test.tsx index 9476e504b53d..7a2bb495d4de 100644 --- a/dashboard/src/containers/LoginFormContainer/LoginFormContainer.test.tsx +++ b/dashboard/src/containers/LoginFormContainer/LoginFormContainer.test.tsx @@ -45,6 +45,7 @@ const makeStore = ( remoteComponentsUrl: "", customAppViews: [], skipAvailablePackageDetails: false, + createNamespaceLabels: {}, }; const clusters: IClustersState = { currentCluster: "default", diff --git a/dashboard/src/gen/google/api/http.ts b/dashboard/src/gen/google/api/http.ts index 136dbfc0b19e..1cd83268bde9 100644 --- a/dashboard/src/gen/google/api/http.ts +++ b/dashboard/src/gen/google/api/http.ts @@ -397,9 +397,7 @@ export const Http = { fromJSON(object: any): Http { return { - rules: Array.isArray(object?.rules) - ? object.rules.map((e: any) => HttpRule.fromJSON(e)) - : [], + rules: Array.isArray(object?.rules) ? object.rules.map((e: any) => HttpRule.fromJSON(e)) : [], fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion) ? Boolean(object.fullyDecodeReservedExpansion) : false, @@ -409,9 +407,7 @@ export const Http = { toJSON(message: Http): unknown { const obj: any = {}; if (message.rules) { - obj.rules = message.rules.map((e) => - e ? HttpRule.toJSON(e) : undefined - ); + obj.rules = message.rules.map(e => (e ? HttpRule.toJSON(e) : undefined)); } else { obj.rules = []; } @@ -422,9 +418,8 @@ export const Http = { fromPartial, I>>(object: I): Http { const message = createBaseHttp(); - message.rules = object.rules?.map((e) => HttpRule.fromPartial(e)) || []; - message.fullyDecodeReservedExpansion = - object.fullyDecodeReservedExpansion ?? false; + message.rules = object.rules?.map(e => HttpRule.fromPartial(e)) || []; + message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false; return message; }, }; @@ -445,10 +440,7 @@ function createBaseHttpRule(): HttpRule { } export const HttpRule = { - encode( - message: HttpRule, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: HttpRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.selector !== "") { writer.uint32(10).string(message.selector); } @@ -468,10 +460,7 @@ export const HttpRule = { writer.uint32(50).string(message.patch); } if (message.custom !== undefined) { - CustomHttpPattern.encode( - message.custom, - writer.uint32(66).fork() - ).ldelim(); + CustomHttpPattern.encode(message.custom, writer.uint32(66).fork()).ldelim(); } if (message.body !== "") { writer.uint32(58).string(message.body); @@ -520,9 +509,7 @@ export const HttpRule = { message.responseBody = reader.string(); break; case 11: - message.additionalBindings.push( - HttpRule.decode(reader, reader.uint32()) - ); + message.additionalBindings.push(HttpRule.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -540,13 +527,9 @@ export const HttpRule = { post: isSet(object.post) ? String(object.post) : undefined, delete: isSet(object.delete) ? String(object.delete) : undefined, patch: isSet(object.patch) ? String(object.patch) : undefined, - custom: isSet(object.custom) - ? CustomHttpPattern.fromJSON(object.custom) - : undefined, + custom: isSet(object.custom) ? CustomHttpPattern.fromJSON(object.custom) : undefined, body: isSet(object.body) ? String(object.body) : "", - responseBody: isSet(object.responseBody) - ? String(object.responseBody) - : "", + responseBody: isSet(object.responseBody) ? String(object.responseBody) : "", additionalBindings: Array.isArray(object?.additionalBindings) ? object.additionalBindings.map((e: any) => HttpRule.fromJSON(e)) : [], @@ -562,15 +545,12 @@ export const HttpRule = { message.delete !== undefined && (obj.delete = message.delete); message.patch !== undefined && (obj.patch = message.patch); message.custom !== undefined && - (obj.custom = message.custom - ? CustomHttpPattern.toJSON(message.custom) - : undefined); + (obj.custom = message.custom ? CustomHttpPattern.toJSON(message.custom) : undefined); message.body !== undefined && (obj.body = message.body); - message.responseBody !== undefined && - (obj.responseBody = message.responseBody); + message.responseBody !== undefined && (obj.responseBody = message.responseBody); if (message.additionalBindings) { - obj.additionalBindings = message.additionalBindings.map((e) => - e ? HttpRule.toJSON(e) : undefined + obj.additionalBindings = message.additionalBindings.map(e => + e ? HttpRule.toJSON(e) : undefined, ); } else { obj.additionalBindings = []; @@ -592,8 +572,7 @@ export const HttpRule = { : undefined; message.body = object.body ?? ""; message.responseBody = object.responseBody ?? ""; - message.additionalBindings = - object.additionalBindings?.map((e) => HttpRule.fromPartial(e)) || []; + message.additionalBindings = object.additionalBindings?.map(e => HttpRule.fromPartial(e)) || []; return message; }, }; @@ -603,10 +582,7 @@ function createBaseCustomHttpPattern(): CustomHttpPattern { } export const CustomHttpPattern = { - encode( - message: CustomHttpPattern, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: CustomHttpPattern, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.kind !== "") { writer.uint32(10).string(message.kind); } @@ -651,9 +627,7 @@ export const CustomHttpPattern = { return obj; }, - fromPartial, I>>( - object: I - ): CustomHttpPattern { + fromPartial, I>>(object: I): CustomHttpPattern { const message = createBaseCustomHttpPattern(); message.kind = object.kind ?? ""; message.path = object.path ?? ""; @@ -661,14 +635,7 @@ export const CustomHttpPattern = { }, }; -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -683,10 +650,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/google/protobuf/any.ts b/dashboard/src/gen/google/protobuf/any.ts index 959fa0aa6a60..c4924b0e4d1d 100644 --- a/dashboard/src/gen/google/protobuf/any.ts +++ b/dashboard/src/gen/google/protobuf/any.ts @@ -162,9 +162,7 @@ export const Any = { fromJSON(object: any): Any { return { typeUrl: isSet(object.typeUrl) ? String(object.typeUrl) : "", - value: isSet(object.value) - ? bytesFromBase64(object.value) - : new Uint8Array(), + value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(), }; }, @@ -172,9 +170,7 @@ export const Any = { const obj: any = {}; message.typeUrl !== undefined && (obj.typeUrl = message.typeUrl); message.value !== undefined && - (obj.value = base64FromBytes( - message.value !== undefined ? message.value : new Uint8Array() - )); + (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); return obj; }, @@ -198,8 +194,7 @@ var globalThis: any = (() => { })(); const atob: (b64: string) => string = - globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary")); + globalThis.atob || (b64 => globalThis.Buffer.from(b64, "base64").toString("binary")); function bytesFromBase64(b64: string): Uint8Array { const bin = atob(b64); const arr = new Uint8Array(bin.length); @@ -210,24 +205,16 @@ function bytesFromBase64(b64: string): Uint8Array { } const btoa: (bin: string) => string = - globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64")); + globalThis.btoa || (bin => globalThis.Buffer.from(bin, "binary").toString("base64")); function base64FromBytes(arr: Uint8Array): string { const bin: string[] = []; - arr.forEach((byte) => { + arr.forEach(byte => { bin.push(String.fromCharCode(byte)); }); return btoa(bin.join("")); } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -242,10 +229,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/google/protobuf/descriptor.ts b/dashboard/src/gen/google/protobuf/descriptor.ts index 19e56cb82c13..9e608e1409a2 100644 --- a/dashboard/src/gen/google/protobuf/descriptor.ts +++ b/dashboard/src/gen/google/protobuf/descriptor.ts @@ -203,9 +203,7 @@ export enum FieldDescriptorProto_Type { UNRECOGNIZED = -1, } -export function fieldDescriptorProto_TypeFromJSON( - object: any -): FieldDescriptorProto_Type { +export function fieldDescriptorProto_TypeFromJSON(object: any): FieldDescriptorProto_Type { switch (object) { case 1: case "TYPE_DOUBLE": @@ -268,9 +266,7 @@ export function fieldDescriptorProto_TypeFromJSON( } } -export function fieldDescriptorProto_TypeToJSON( - object: FieldDescriptorProto_Type -): string { +export function fieldDescriptorProto_TypeToJSON(object: FieldDescriptorProto_Type): string { switch (object) { case FieldDescriptorProto_Type.TYPE_DOUBLE: return "TYPE_DOUBLE"; @@ -322,9 +318,7 @@ export enum FieldDescriptorProto_Label { UNRECOGNIZED = -1, } -export function fieldDescriptorProto_LabelFromJSON( - object: any -): FieldDescriptorProto_Label { +export function fieldDescriptorProto_LabelFromJSON(object: any): FieldDescriptorProto_Label { switch (object) { case 1: case "LABEL_OPTIONAL": @@ -342,9 +336,7 @@ export function fieldDescriptorProto_LabelFromJSON( } } -export function fieldDescriptorProto_LabelToJSON( - object: FieldDescriptorProto_Label -): string { +export function fieldDescriptorProto_LabelToJSON(object: FieldDescriptorProto_Label): string { switch (object) { case FieldDescriptorProto_Label.LABEL_OPTIONAL: return "LABEL_OPTIONAL"; @@ -559,9 +551,7 @@ export enum FileOptions_OptimizeMode { UNRECOGNIZED = -1, } -export function fileOptions_OptimizeModeFromJSON( - object: any -): FileOptions_OptimizeMode { +export function fileOptions_OptimizeModeFromJSON(object: any): FileOptions_OptimizeMode { switch (object) { case 1: case "SPEED": @@ -579,9 +569,7 @@ export function fileOptions_OptimizeModeFromJSON( } } -export function fileOptions_OptimizeModeToJSON( - object: FileOptions_OptimizeMode -): string { +export function fileOptions_OptimizeModeToJSON(object: FileOptions_OptimizeMode): string { switch (object) { case FileOptions_OptimizeMode.SPEED: return "SPEED"; @@ -900,7 +888,7 @@ export enum MethodOptions_IdempotencyLevel { } export function methodOptions_IdempotencyLevelFromJSON( - object: any + object: any, ): MethodOptions_IdempotencyLevel { switch (object) { case 0: @@ -920,7 +908,7 @@ export function methodOptions_IdempotencyLevelFromJSON( } export function methodOptions_IdempotencyLevelToJSON( - object: MethodOptions_IdempotencyLevel + object: MethodOptions_IdempotencyLevel, ): string { switch (object) { case MethodOptions_IdempotencyLevel.IDEMPOTENCY_UNKNOWN: @@ -1150,10 +1138,7 @@ function createBaseFileDescriptorSet(): FileDescriptorSet { } export const FileDescriptorSet = { - encode( - message: FileDescriptorSet, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: FileDescriptorSet, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.file) { FileDescriptorProto.encode(v!, writer.uint32(10).fork()).ldelim(); } @@ -1168,9 +1153,7 @@ export const FileDescriptorSet = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.file.push( - FileDescriptorProto.decode(reader, reader.uint32()) - ); + message.file.push(FileDescriptorProto.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -1191,21 +1174,16 @@ export const FileDescriptorSet = { toJSON(message: FileDescriptorSet): unknown { const obj: any = {}; if (message.file) { - obj.file = message.file.map((e) => - e ? FileDescriptorProto.toJSON(e) : undefined - ); + obj.file = message.file.map(e => (e ? FileDescriptorProto.toJSON(e) : undefined)); } else { obj.file = []; } return obj; }, - fromPartial, I>>( - object: I - ): FileDescriptorSet { + fromPartial, I>>(object: I): FileDescriptorSet { const message = createBaseFileDescriptorSet(); - message.file = - object.file?.map((e) => FileDescriptorProto.fromPartial(e)) || []; + message.file = object.file?.map(e => FileDescriptorProto.fromPartial(e)) || []; return message; }, }; @@ -1228,10 +1206,7 @@ function createBaseFileDescriptorProto(): FileDescriptorProto { } export const FileDescriptorProto = { - encode( - message: FileDescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: FileDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -1267,10 +1242,7 @@ export const FileDescriptorProto = { FileOptions.encode(message.options, writer.uint32(66).fork()).ldelim(); } if (message.sourceCodeInfo !== undefined) { - SourceCodeInfo.encode( - message.sourceCodeInfo, - writer.uint32(74).fork() - ).ldelim(); + SourceCodeInfo.encode(message.sourceCodeInfo, writer.uint32(74).fork()).ldelim(); } if (message.syntax !== "") { writer.uint32(98).string(message.syntax); @@ -1315,33 +1287,22 @@ export const FileDescriptorProto = { } break; case 4: - message.messageType.push( - DescriptorProto.decode(reader, reader.uint32()) - ); + message.messageType.push(DescriptorProto.decode(reader, reader.uint32())); break; case 5: - message.enumType.push( - EnumDescriptorProto.decode(reader, reader.uint32()) - ); + message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); break; case 6: - message.service.push( - ServiceDescriptorProto.decode(reader, reader.uint32()) - ); + message.service.push(ServiceDescriptorProto.decode(reader, reader.uint32())); break; case 7: - message.extension.push( - FieldDescriptorProto.decode(reader, reader.uint32()) - ); + message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); break; case 8: message.options = FileOptions.decode(reader, reader.uint32()); break; case 9: - message.sourceCodeInfo = SourceCodeInfo.decode( - reader, - reader.uint32() - ); + message.sourceCodeInfo = SourceCodeInfo.decode(reader, reader.uint32()); break; case 12: message.syntax = reader.string(); @@ -1379,9 +1340,7 @@ export const FileDescriptorProto = { extension: Array.isArray(object?.extension) ? object.extension.map((e: any) => FieldDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) - ? FileOptions.fromJSON(object.options) - : undefined, + options: isSet(object.options) ? FileOptions.fromJSON(object.options) : undefined, sourceCodeInfo: isSet(object.sourceCodeInfo) ? SourceCodeInfo.fromJSON(object.sourceCodeInfo) : undefined, @@ -1394,52 +1353,42 @@ export const FileDescriptorProto = { message.name !== undefined && (obj.name = message.name); message.package !== undefined && (obj.package = message.package); if (message.dependency) { - obj.dependency = message.dependency.map((e) => e); + obj.dependency = message.dependency.map(e => e); } else { obj.dependency = []; } if (message.publicDependency) { - obj.publicDependency = message.publicDependency.map((e) => Math.round(e)); + obj.publicDependency = message.publicDependency.map(e => Math.round(e)); } else { obj.publicDependency = []; } if (message.weakDependency) { - obj.weakDependency = message.weakDependency.map((e) => Math.round(e)); + obj.weakDependency = message.weakDependency.map(e => Math.round(e)); } else { obj.weakDependency = []; } if (message.messageType) { - obj.messageType = message.messageType.map((e) => - e ? DescriptorProto.toJSON(e) : undefined - ); + obj.messageType = message.messageType.map(e => (e ? DescriptorProto.toJSON(e) : undefined)); } else { obj.messageType = []; } if (message.enumType) { - obj.enumType = message.enumType.map((e) => - e ? EnumDescriptorProto.toJSON(e) : undefined - ); + obj.enumType = message.enumType.map(e => (e ? EnumDescriptorProto.toJSON(e) : undefined)); } else { obj.enumType = []; } if (message.service) { - obj.service = message.service.map((e) => - e ? ServiceDescriptorProto.toJSON(e) : undefined - ); + obj.service = message.service.map(e => (e ? ServiceDescriptorProto.toJSON(e) : undefined)); } else { obj.service = []; } if (message.extension) { - obj.extension = message.extension.map((e) => - e ? FieldDescriptorProto.toJSON(e) : undefined - ); + obj.extension = message.extension.map(e => (e ? FieldDescriptorProto.toJSON(e) : undefined)); } else { obj.extension = []; } message.options !== undefined && - (obj.options = message.options - ? FileOptions.toJSON(message.options) - : undefined); + (obj.options = message.options ? FileOptions.toJSON(message.options) : undefined); message.sourceCodeInfo !== undefined && (obj.sourceCodeInfo = message.sourceCodeInfo ? SourceCodeInfo.toJSON(message.sourceCodeInfo) @@ -1449,22 +1398,18 @@ export const FileDescriptorProto = { }, fromPartial, I>>( - object: I + object: I, ): FileDescriptorProto { const message = createBaseFileDescriptorProto(); message.name = object.name ?? ""; message.package = object.package ?? ""; - message.dependency = object.dependency?.map((e) => e) || []; - message.publicDependency = object.publicDependency?.map((e) => e) || []; - message.weakDependency = object.weakDependency?.map((e) => e) || []; - message.messageType = - object.messageType?.map((e) => DescriptorProto.fromPartial(e)) || []; - message.enumType = - object.enumType?.map((e) => EnumDescriptorProto.fromPartial(e)) || []; - message.service = - object.service?.map((e) => ServiceDescriptorProto.fromPartial(e)) || []; - message.extension = - object.extension?.map((e) => FieldDescriptorProto.fromPartial(e)) || []; + message.dependency = object.dependency?.map(e => e) || []; + message.publicDependency = object.publicDependency?.map(e => e) || []; + message.weakDependency = object.weakDependency?.map(e => e) || []; + message.messageType = object.messageType?.map(e => DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; + message.service = object.service?.map(e => ServiceDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; message.options = object.options !== undefined && object.options !== null ? FileOptions.fromPartial(object.options) @@ -1494,10 +1439,7 @@ function createBaseDescriptorProto(): DescriptorProto { } export const DescriptorProto = { - encode( - message: DescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: DescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -1514,10 +1456,7 @@ export const DescriptorProto = { EnumDescriptorProto.encode(v!, writer.uint32(34).fork()).ldelim(); } for (const v of message.extensionRange) { - DescriptorProto_ExtensionRange.encode( - v!, - writer.uint32(42).fork() - ).ldelim(); + DescriptorProto_ExtensionRange.encode(v!, writer.uint32(42).fork()).ldelim(); } for (const v of message.oneofDecl) { OneofDescriptorProto.encode(v!, writer.uint32(66).fork()).ldelim(); @@ -1526,10 +1465,7 @@ export const DescriptorProto = { MessageOptions.encode(message.options, writer.uint32(58).fork()).ldelim(); } for (const v of message.reservedRange) { - DescriptorProto_ReservedRange.encode( - v!, - writer.uint32(74).fork() - ).ldelim(); + DescriptorProto_ReservedRange.encode(v!, writer.uint32(74).fork()).ldelim(); } for (const v of message.reservedName) { writer.uint32(82).string(v!); @@ -1548,42 +1484,30 @@ export const DescriptorProto = { message.name = reader.string(); break; case 2: - message.field.push( - FieldDescriptorProto.decode(reader, reader.uint32()) - ); + message.field.push(FieldDescriptorProto.decode(reader, reader.uint32())); break; case 6: - message.extension.push( - FieldDescriptorProto.decode(reader, reader.uint32()) - ); + message.extension.push(FieldDescriptorProto.decode(reader, reader.uint32())); break; case 3: - message.nestedType.push( - DescriptorProto.decode(reader, reader.uint32()) - ); + message.nestedType.push(DescriptorProto.decode(reader, reader.uint32())); break; case 4: - message.enumType.push( - EnumDescriptorProto.decode(reader, reader.uint32()) - ); + message.enumType.push(EnumDescriptorProto.decode(reader, reader.uint32())); break; case 5: message.extensionRange.push( - DescriptorProto_ExtensionRange.decode(reader, reader.uint32()) + DescriptorProto_ExtensionRange.decode(reader, reader.uint32()), ); break; case 8: - message.oneofDecl.push( - OneofDescriptorProto.decode(reader, reader.uint32()) - ); + message.oneofDecl.push(OneofDescriptorProto.decode(reader, reader.uint32())); break; case 7: message.options = MessageOptions.decode(reader, reader.uint32()); break; case 9: - message.reservedRange.push( - DescriptorProto_ReservedRange.decode(reader, reader.uint32()) - ); + message.reservedRange.push(DescriptorProto_ReservedRange.decode(reader, reader.uint32())); break; case 10: message.reservedName.push(reader.string()); @@ -1612,20 +1536,14 @@ export const DescriptorProto = { ? object.enumType.map((e: any) => EnumDescriptorProto.fromJSON(e)) : [], extensionRange: Array.isArray(object?.extensionRange) - ? object.extensionRange.map((e: any) => - DescriptorProto_ExtensionRange.fromJSON(e) - ) + ? object.extensionRange.map((e: any) => DescriptorProto_ExtensionRange.fromJSON(e)) : [], oneofDecl: Array.isArray(object?.oneofDecl) ? object.oneofDecl.map((e: any) => OneofDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) - ? MessageOptions.fromJSON(object.options) - : undefined, + options: isSet(object.options) ? MessageOptions.fromJSON(object.options) : undefined, reservedRange: Array.isArray(object?.reservedRange) - ? object.reservedRange.map((e: any) => - DescriptorProto_ReservedRange.fromJSON(e) - ) + ? object.reservedRange.map((e: any) => DescriptorProto_ReservedRange.fromJSON(e)) : [], reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) @@ -1637,94 +1555,71 @@ export const DescriptorProto = { const obj: any = {}; message.name !== undefined && (obj.name = message.name); if (message.field) { - obj.field = message.field.map((e) => - e ? FieldDescriptorProto.toJSON(e) : undefined - ); + obj.field = message.field.map(e => (e ? FieldDescriptorProto.toJSON(e) : undefined)); } else { obj.field = []; } if (message.extension) { - obj.extension = message.extension.map((e) => - e ? FieldDescriptorProto.toJSON(e) : undefined - ); + obj.extension = message.extension.map(e => (e ? FieldDescriptorProto.toJSON(e) : undefined)); } else { obj.extension = []; } if (message.nestedType) { - obj.nestedType = message.nestedType.map((e) => - e ? DescriptorProto.toJSON(e) : undefined - ); + obj.nestedType = message.nestedType.map(e => (e ? DescriptorProto.toJSON(e) : undefined)); } else { obj.nestedType = []; } if (message.enumType) { - obj.enumType = message.enumType.map((e) => - e ? EnumDescriptorProto.toJSON(e) : undefined - ); + obj.enumType = message.enumType.map(e => (e ? EnumDescriptorProto.toJSON(e) : undefined)); } else { obj.enumType = []; } if (message.extensionRange) { - obj.extensionRange = message.extensionRange.map((e) => - e ? DescriptorProto_ExtensionRange.toJSON(e) : undefined + obj.extensionRange = message.extensionRange.map(e => + e ? DescriptorProto_ExtensionRange.toJSON(e) : undefined, ); } else { obj.extensionRange = []; } if (message.oneofDecl) { - obj.oneofDecl = message.oneofDecl.map((e) => - e ? OneofDescriptorProto.toJSON(e) : undefined - ); + obj.oneofDecl = message.oneofDecl.map(e => (e ? OneofDescriptorProto.toJSON(e) : undefined)); } else { obj.oneofDecl = []; } message.options !== undefined && - (obj.options = message.options - ? MessageOptions.toJSON(message.options) - : undefined); + (obj.options = message.options ? MessageOptions.toJSON(message.options) : undefined); if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map((e) => - e ? DescriptorProto_ReservedRange.toJSON(e) : undefined + obj.reservedRange = message.reservedRange.map(e => + e ? DescriptorProto_ReservedRange.toJSON(e) : undefined, ); } else { obj.reservedRange = []; } if (message.reservedName) { - obj.reservedName = message.reservedName.map((e) => e); + obj.reservedName = message.reservedName.map(e => e); } else { obj.reservedName = []; } return obj; }, - fromPartial, I>>( - object: I - ): DescriptorProto { + fromPartial, I>>(object: I): DescriptorProto { const message = createBaseDescriptorProto(); message.name = object.name ?? ""; - message.field = - object.field?.map((e) => FieldDescriptorProto.fromPartial(e)) || []; - message.extension = - object.extension?.map((e) => FieldDescriptorProto.fromPartial(e)) || []; - message.nestedType = - object.nestedType?.map((e) => DescriptorProto.fromPartial(e)) || []; - message.enumType = - object.enumType?.map((e) => EnumDescriptorProto.fromPartial(e)) || []; + message.field = object.field?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.extension = object.extension?.map(e => FieldDescriptorProto.fromPartial(e)) || []; + message.nestedType = object.nestedType?.map(e => DescriptorProto.fromPartial(e)) || []; + message.enumType = object.enumType?.map(e => EnumDescriptorProto.fromPartial(e)) || []; message.extensionRange = - object.extensionRange?.map((e) => - DescriptorProto_ExtensionRange.fromPartial(e) - ) || []; - message.oneofDecl = - object.oneofDecl?.map((e) => OneofDescriptorProto.fromPartial(e)) || []; + object.extensionRange?.map(e => DescriptorProto_ExtensionRange.fromPartial(e)) || []; + message.oneofDecl = object.oneofDecl?.map(e => OneofDescriptorProto.fromPartial(e)) || []; message.options = object.options !== undefined && object.options !== null ? MessageOptions.fromPartial(object.options) : undefined; message.reservedRange = - object.reservedRange?.map((e) => - DescriptorProto_ReservedRange.fromPartial(e) - ) || []; - message.reservedName = object.reservedName?.map((e) => e) || []; + object.reservedRange?.map(e => DescriptorProto_ReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; return message; }, }; @@ -1736,7 +1631,7 @@ function createBaseDescriptorProto_ExtensionRange(): DescriptorProto_ExtensionRa export const DescriptorProto_ExtensionRange = { encode( message: DescriptorProto_ExtensionRange, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.start !== 0) { writer.uint32(8).int32(message.start); @@ -1745,18 +1640,12 @@ export const DescriptorProto_ExtensionRange = { writer.uint32(16).int32(message.end); } if (message.options !== undefined) { - ExtensionRangeOptions.encode( - message.options, - writer.uint32(26).fork() - ).ldelim(); + ExtensionRangeOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): DescriptorProto_ExtensionRange { + decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ExtensionRange { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseDescriptorProto_ExtensionRange(); @@ -1770,10 +1659,7 @@ export const DescriptorProto_ExtensionRange = { message.end = reader.int32(); break; case 3: - message.options = ExtensionRangeOptions.decode( - reader, - reader.uint32() - ); + message.options = ExtensionRangeOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1787,9 +1673,7 @@ export const DescriptorProto_ExtensionRange = { return { start: isSet(object.start) ? Number(object.start) : 0, end: isSet(object.end) ? Number(object.end) : 0, - options: isSet(object.options) - ? ExtensionRangeOptions.fromJSON(object.options) - : undefined, + options: isSet(object.options) ? ExtensionRangeOptions.fromJSON(object.options) : undefined, }; }, @@ -1798,14 +1682,12 @@ export const DescriptorProto_ExtensionRange = { message.start !== undefined && (obj.start = Math.round(message.start)); message.end !== undefined && (obj.end = Math.round(message.end)); message.options !== undefined && - (obj.options = message.options - ? ExtensionRangeOptions.toJSON(message.options) - : undefined); + (obj.options = message.options ? ExtensionRangeOptions.toJSON(message.options) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): DescriptorProto_ExtensionRange { const message = createBaseDescriptorProto_ExtensionRange(); message.start = object.start ?? 0; @@ -1825,7 +1707,7 @@ function createBaseDescriptorProto_ReservedRange(): DescriptorProto_ReservedRang export const DescriptorProto_ReservedRange = { encode( message: DescriptorProto_ReservedRange, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.start !== 0) { writer.uint32(8).int32(message.start); @@ -1836,10 +1718,7 @@ export const DescriptorProto_ReservedRange = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): DescriptorProto_ReservedRange { + decode(input: _m0.Reader | Uint8Array, length?: number): DescriptorProto_ReservedRange { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseDescriptorProto_ReservedRange(); @@ -1875,7 +1754,7 @@ export const DescriptorProto_ReservedRange = { }, fromPartial, I>>( - object: I + object: I, ): DescriptorProto_ReservedRange { const message = createBaseDescriptorProto_ReservedRange(); message.start = object.start ?? 0; @@ -1889,20 +1768,14 @@ function createBaseExtensionRangeOptions(): ExtensionRangeOptions { } export const ExtensionRangeOptions = { - encode( - message: ExtensionRangeOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: ExtensionRangeOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): ExtensionRangeOptions { + decode(input: _m0.Reader | Uint8Array, length?: number): ExtensionRangeOptions { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseExtensionRangeOptions(); @@ -1910,9 +1783,7 @@ export const ExtensionRangeOptions = { const tag = reader.uint32(); switch (tag >>> 3) { case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -1925,9 +1796,7 @@ export const ExtensionRangeOptions = { fromJSON(object: any): ExtensionRangeOptions { return { uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, @@ -1935,8 +1804,8 @@ export const ExtensionRangeOptions = { toJSON(message: ExtensionRangeOptions): unknown { const obj: any = {}; if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -1945,13 +1814,11 @@ export const ExtensionRangeOptions = { }, fromPartial, I>>( - object: I + object: I, ): ExtensionRangeOptions { const message = createBaseExtensionRangeOptions(); message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -1973,10 +1840,7 @@ function createBaseFieldDescriptorProto(): FieldDescriptorProto { } export const FieldDescriptorProto = { - encode( - message: FieldDescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: FieldDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2013,10 +1877,7 @@ export const FieldDescriptorProto = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): FieldDescriptorProto { + decode(input: _m0.Reader | Uint8Array, length?: number): FieldDescriptorProto { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseFieldDescriptorProto(); @@ -2068,25 +1929,15 @@ export const FieldDescriptorProto = { return { name: isSet(object.name) ? String(object.name) : "", number: isSet(object.number) ? Number(object.number) : 0, - label: isSet(object.label) - ? fieldDescriptorProto_LabelFromJSON(object.label) - : 1, - type: isSet(object.type) - ? fieldDescriptorProto_TypeFromJSON(object.type) - : 1, + label: isSet(object.label) ? fieldDescriptorProto_LabelFromJSON(object.label) : 1, + type: isSet(object.type) ? fieldDescriptorProto_TypeFromJSON(object.type) : 1, typeName: isSet(object.typeName) ? String(object.typeName) : "", extendee: isSet(object.extendee) ? String(object.extendee) : "", - defaultValue: isSet(object.defaultValue) - ? String(object.defaultValue) - : "", + defaultValue: isSet(object.defaultValue) ? String(object.defaultValue) : "", oneofIndex: isSet(object.oneofIndex) ? Number(object.oneofIndex) : 0, jsonName: isSet(object.jsonName) ? String(object.jsonName) : "", - options: isSet(object.options) - ? FieldOptions.fromJSON(object.options) - : undefined, - proto3Optional: isSet(object.proto3Optional) - ? Boolean(object.proto3Optional) - : false, + options: isSet(object.options) ? FieldOptions.fromJSON(object.options) : undefined, + proto3Optional: isSet(object.proto3Optional) ? Boolean(object.proto3Optional) : false, }; }, @@ -2094,28 +1945,21 @@ export const FieldDescriptorProto = { const obj: any = {}; message.name !== undefined && (obj.name = message.name); message.number !== undefined && (obj.number = Math.round(message.number)); - message.label !== undefined && - (obj.label = fieldDescriptorProto_LabelToJSON(message.label)); - message.type !== undefined && - (obj.type = fieldDescriptorProto_TypeToJSON(message.type)); + message.label !== undefined && (obj.label = fieldDescriptorProto_LabelToJSON(message.label)); + message.type !== undefined && (obj.type = fieldDescriptorProto_TypeToJSON(message.type)); message.typeName !== undefined && (obj.typeName = message.typeName); message.extendee !== undefined && (obj.extendee = message.extendee); - message.defaultValue !== undefined && - (obj.defaultValue = message.defaultValue); - message.oneofIndex !== undefined && - (obj.oneofIndex = Math.round(message.oneofIndex)); + message.defaultValue !== undefined && (obj.defaultValue = message.defaultValue); + message.oneofIndex !== undefined && (obj.oneofIndex = Math.round(message.oneofIndex)); message.jsonName !== undefined && (obj.jsonName = message.jsonName); message.options !== undefined && - (obj.options = message.options - ? FieldOptions.toJSON(message.options) - : undefined); - message.proto3Optional !== undefined && - (obj.proto3Optional = message.proto3Optional); + (obj.options = message.options ? FieldOptions.toJSON(message.options) : undefined); + message.proto3Optional !== undefined && (obj.proto3Optional = message.proto3Optional); return obj; }, fromPartial, I>>( - object: I + object: I, ): FieldDescriptorProto { const message = createBaseFieldDescriptorProto(); message.name = object.name ?? ""; @@ -2141,10 +1985,7 @@ function createBaseOneofDescriptorProto(): OneofDescriptorProto { } export const OneofDescriptorProto = { - encode( - message: OneofDescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: OneofDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2154,10 +1995,7 @@ export const OneofDescriptorProto = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): OneofDescriptorProto { + decode(input: _m0.Reader | Uint8Array, length?: number): OneofDescriptorProto { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseOneofDescriptorProto(); @@ -2181,9 +2019,7 @@ export const OneofDescriptorProto = { fromJSON(object: any): OneofDescriptorProto { return { name: isSet(object.name) ? String(object.name) : "", - options: isSet(object.options) - ? OneofOptions.fromJSON(object.options) - : undefined, + options: isSet(object.options) ? OneofOptions.fromJSON(object.options) : undefined, }; }, @@ -2191,14 +2027,12 @@ export const OneofDescriptorProto = { const obj: any = {}; message.name !== undefined && (obj.name = message.name); message.options !== undefined && - (obj.options = message.options - ? OneofOptions.toJSON(message.options) - : undefined); + (obj.options = message.options ? OneofOptions.toJSON(message.options) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): OneofDescriptorProto { const message = createBaseOneofDescriptorProto(); message.name = object.name ?? ""; @@ -2221,10 +2055,7 @@ function createBaseEnumDescriptorProto(): EnumDescriptorProto { } export const EnumDescriptorProto = { - encode( - message: EnumDescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: EnumDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2235,10 +2066,7 @@ export const EnumDescriptorProto = { EnumOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); } for (const v of message.reservedRange) { - EnumDescriptorProto_EnumReservedRange.encode( - v!, - writer.uint32(34).fork() - ).ldelim(); + EnumDescriptorProto_EnumReservedRange.encode(v!, writer.uint32(34).fork()).ldelim(); } for (const v of message.reservedName) { writer.uint32(42).string(v!); @@ -2257,19 +2085,14 @@ export const EnumDescriptorProto = { message.name = reader.string(); break; case 2: - message.value.push( - EnumValueDescriptorProto.decode(reader, reader.uint32()) - ); + message.value.push(EnumValueDescriptorProto.decode(reader, reader.uint32())); break; case 3: message.options = EnumOptions.decode(reader, reader.uint32()); break; case 4: message.reservedRange.push( - EnumDescriptorProto_EnumReservedRange.decode( - reader, - reader.uint32() - ) + EnumDescriptorProto_EnumReservedRange.decode(reader, reader.uint32()), ); break; case 5: @@ -2289,13 +2112,9 @@ export const EnumDescriptorProto = { value: Array.isArray(object?.value) ? object.value.map((e: any) => EnumValueDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) - ? EnumOptions.fromJSON(object.options) - : undefined, + options: isSet(object.options) ? EnumOptions.fromJSON(object.options) : undefined, reservedRange: Array.isArray(object?.reservedRange) - ? object.reservedRange.map((e: any) => - EnumDescriptorProto_EnumReservedRange.fromJSON(e) - ) + ? object.reservedRange.map((e: any) => EnumDescriptorProto_EnumReservedRange.fromJSON(e)) : [], reservedName: Array.isArray(object?.reservedName) ? object.reservedName.map((e: any) => String(e)) @@ -2307,25 +2126,21 @@ export const EnumDescriptorProto = { const obj: any = {}; message.name !== undefined && (obj.name = message.name); if (message.value) { - obj.value = message.value.map((e) => - e ? EnumValueDescriptorProto.toJSON(e) : undefined - ); + obj.value = message.value.map(e => (e ? EnumValueDescriptorProto.toJSON(e) : undefined)); } else { obj.value = []; } message.options !== undefined && - (obj.options = message.options - ? EnumOptions.toJSON(message.options) - : undefined); + (obj.options = message.options ? EnumOptions.toJSON(message.options) : undefined); if (message.reservedRange) { - obj.reservedRange = message.reservedRange.map((e) => - e ? EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined + obj.reservedRange = message.reservedRange.map(e => + e ? EnumDescriptorProto_EnumReservedRange.toJSON(e) : undefined, ); } else { obj.reservedRange = []; } if (message.reservedName) { - obj.reservedName = message.reservedName.map((e) => e); + obj.reservedName = message.reservedName.map(e => e); } else { obj.reservedName = []; } @@ -2333,21 +2148,18 @@ export const EnumDescriptorProto = { }, fromPartial, I>>( - object: I + object: I, ): EnumDescriptorProto { const message = createBaseEnumDescriptorProto(); message.name = object.name ?? ""; - message.value = - object.value?.map((e) => EnumValueDescriptorProto.fromPartial(e)) || []; + message.value = object.value?.map(e => EnumValueDescriptorProto.fromPartial(e)) || []; message.options = object.options !== undefined && object.options !== null ? EnumOptions.fromPartial(object.options) : undefined; message.reservedRange = - object.reservedRange?.map((e) => - EnumDescriptorProto_EnumReservedRange.fromPartial(e) - ) || []; - message.reservedName = object.reservedName?.map((e) => e) || []; + object.reservedRange?.map(e => EnumDescriptorProto_EnumReservedRange.fromPartial(e)) || []; + message.reservedName = object.reservedName?.map(e => e) || []; return message; }, }; @@ -2359,7 +2171,7 @@ function createBaseEnumDescriptorProto_EnumReservedRange(): EnumDescriptorProto_ export const EnumDescriptorProto_EnumReservedRange = { encode( message: EnumDescriptorProto_EnumReservedRange, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.start !== 0) { writer.uint32(8).int32(message.start); @@ -2370,10 +2182,7 @@ export const EnumDescriptorProto_EnumReservedRange = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): EnumDescriptorProto_EnumReservedRange { + decode(input: _m0.Reader | Uint8Array, length?: number): EnumDescriptorProto_EnumReservedRange { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseEnumDescriptorProto_EnumReservedRange(); @@ -2408,9 +2217,9 @@ export const EnumDescriptorProto_EnumReservedRange = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): EnumDescriptorProto_EnumReservedRange { + fromPartial, I>>( + object: I, + ): EnumDescriptorProto_EnumReservedRange { const message = createBaseEnumDescriptorProto_EnumReservedRange(); message.start = object.start ?? 0; message.end = object.end ?? 0; @@ -2423,10 +2232,7 @@ function createBaseEnumValueDescriptorProto(): EnumValueDescriptorProto { } export const EnumValueDescriptorProto = { - encode( - message: EnumValueDescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: EnumValueDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2434,18 +2240,12 @@ export const EnumValueDescriptorProto = { writer.uint32(16).int32(message.number); } if (message.options !== undefined) { - EnumValueOptions.encode( - message.options, - writer.uint32(26).fork() - ).ldelim(); + EnumValueOptions.encode(message.options, writer.uint32(26).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): EnumValueDescriptorProto { + decode(input: _m0.Reader | Uint8Array, length?: number): EnumValueDescriptorProto { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseEnumValueDescriptorProto(); @@ -2473,9 +2273,7 @@ export const EnumValueDescriptorProto = { return { name: isSet(object.name) ? String(object.name) : "", number: isSet(object.number) ? Number(object.number) : 0, - options: isSet(object.options) - ? EnumValueOptions.fromJSON(object.options) - : undefined, + options: isSet(object.options) ? EnumValueOptions.fromJSON(object.options) : undefined, }; }, @@ -2484,14 +2282,12 @@ export const EnumValueDescriptorProto = { message.name !== undefined && (obj.name = message.name); message.number !== undefined && (obj.number = Math.round(message.number)); message.options !== undefined && - (obj.options = message.options - ? EnumValueOptions.toJSON(message.options) - : undefined); + (obj.options = message.options ? EnumValueOptions.toJSON(message.options) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): EnumValueDescriptorProto { const message = createBaseEnumValueDescriptorProto(); message.name = object.name ?? ""; @@ -2509,10 +2305,7 @@ function createBaseServiceDescriptorProto(): ServiceDescriptorProto { } export const ServiceDescriptorProto = { - encode( - message: ServiceDescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: ServiceDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2525,10 +2318,7 @@ export const ServiceDescriptorProto = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): ServiceDescriptorProto { + decode(input: _m0.Reader | Uint8Array, length?: number): ServiceDescriptorProto { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseServiceDescriptorProto(); @@ -2539,9 +2329,7 @@ export const ServiceDescriptorProto = { message.name = reader.string(); break; case 2: - message.method.push( - MethodDescriptorProto.decode(reader, reader.uint32()) - ); + message.method.push(MethodDescriptorProto.decode(reader, reader.uint32())); break; case 3: message.options = ServiceOptions.decode(reader, reader.uint32()); @@ -2560,9 +2348,7 @@ export const ServiceDescriptorProto = { method: Array.isArray(object?.method) ? object.method.map((e: any) => MethodDescriptorProto.fromJSON(e)) : [], - options: isSet(object.options) - ? ServiceOptions.fromJSON(object.options) - : undefined, + options: isSet(object.options) ? ServiceOptions.fromJSON(object.options) : undefined, }; }, @@ -2570,26 +2356,21 @@ export const ServiceDescriptorProto = { const obj: any = {}; message.name !== undefined && (obj.name = message.name); if (message.method) { - obj.method = message.method.map((e) => - e ? MethodDescriptorProto.toJSON(e) : undefined - ); + obj.method = message.method.map(e => (e ? MethodDescriptorProto.toJSON(e) : undefined)); } else { obj.method = []; } message.options !== undefined && - (obj.options = message.options - ? ServiceOptions.toJSON(message.options) - : undefined); + (obj.options = message.options ? ServiceOptions.toJSON(message.options) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): ServiceDescriptorProto { const message = createBaseServiceDescriptorProto(); message.name = object.name ?? ""; - message.method = - object.method?.map((e) => MethodDescriptorProto.fromPartial(e)) || []; + message.method = object.method?.map(e => MethodDescriptorProto.fromPartial(e)) || []; message.options = object.options !== undefined && object.options !== null ? ServiceOptions.fromPartial(object.options) @@ -2610,10 +2391,7 @@ function createBaseMethodDescriptorProto(): MethodDescriptorProto { } export const MethodDescriptorProto = { - encode( - message: MethodDescriptorProto, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: MethodDescriptorProto, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2635,10 +2413,7 @@ export const MethodDescriptorProto = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): MethodDescriptorProto { + decode(input: _m0.Reader | Uint8Array, length?: number): MethodDescriptorProto { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseMethodDescriptorProto(); @@ -2676,15 +2451,9 @@ export const MethodDescriptorProto = { name: isSet(object.name) ? String(object.name) : "", inputType: isSet(object.inputType) ? String(object.inputType) : "", outputType: isSet(object.outputType) ? String(object.outputType) : "", - options: isSet(object.options) - ? MethodOptions.fromJSON(object.options) - : undefined, - clientStreaming: isSet(object.clientStreaming) - ? Boolean(object.clientStreaming) - : false, - serverStreaming: isSet(object.serverStreaming) - ? Boolean(object.serverStreaming) - : false, + options: isSet(object.options) ? MethodOptions.fromJSON(object.options) : undefined, + clientStreaming: isSet(object.clientStreaming) ? Boolean(object.clientStreaming) : false, + serverStreaming: isSet(object.serverStreaming) ? Boolean(object.serverStreaming) : false, }; }, @@ -2694,18 +2463,14 @@ export const MethodDescriptorProto = { message.inputType !== undefined && (obj.inputType = message.inputType); message.outputType !== undefined && (obj.outputType = message.outputType); message.options !== undefined && - (obj.options = message.options - ? MethodOptions.toJSON(message.options) - : undefined); - message.clientStreaming !== undefined && - (obj.clientStreaming = message.clientStreaming); - message.serverStreaming !== undefined && - (obj.serverStreaming = message.serverStreaming); + (obj.options = message.options ? MethodOptions.toJSON(message.options) : undefined); + message.clientStreaming !== undefined && (obj.clientStreaming = message.clientStreaming); + message.serverStreaming !== undefined && (obj.serverStreaming = message.serverStreaming); return obj; }, fromPartial, I>>( - object: I + object: I, ): MethodDescriptorProto { const message = createBaseMethodDescriptorProto(); message.name = object.name ?? ""; @@ -2748,10 +2513,7 @@ function createBaseFileOptions(): FileOptions { } export const FileOptions = { - encode( - message: FileOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: FileOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.javaPackage !== "") { writer.uint32(10).string(message.javaPackage); } @@ -2886,9 +2648,7 @@ export const FileOptions = { message.rubyPackage = reader.string(); break; case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -2901,9 +2661,7 @@ export const FileOptions = { fromJSON(object: any): FileOptions { return { javaPackage: isSet(object.javaPackage) ? String(object.javaPackage) : "", - javaOuterClassname: isSet(object.javaOuterClassname) - ? String(object.javaOuterClassname) - : "", + javaOuterClassname: isSet(object.javaOuterClassname) ? String(object.javaOuterClassname) : "", javaMultipleFiles: isSet(object.javaMultipleFiles) ? Boolean(object.javaMultipleFiles) : false, @@ -2930,42 +2688,28 @@ export const FileOptions = { ? Boolean(object.phpGenericServices) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, - ccEnableArenas: isSet(object.ccEnableArenas) - ? Boolean(object.ccEnableArenas) - : false, - objcClassPrefix: isSet(object.objcClassPrefix) - ? String(object.objcClassPrefix) - : "", - csharpNamespace: isSet(object.csharpNamespace) - ? String(object.csharpNamespace) - : "", + ccEnableArenas: isSet(object.ccEnableArenas) ? Boolean(object.ccEnableArenas) : false, + objcClassPrefix: isSet(object.objcClassPrefix) ? String(object.objcClassPrefix) : "", + csharpNamespace: isSet(object.csharpNamespace) ? String(object.csharpNamespace) : "", swiftPrefix: isSet(object.swiftPrefix) ? String(object.swiftPrefix) : "", - phpClassPrefix: isSet(object.phpClassPrefix) - ? String(object.phpClassPrefix) - : "", - phpNamespace: isSet(object.phpNamespace) - ? String(object.phpNamespace) - : "", + phpClassPrefix: isSet(object.phpClassPrefix) ? String(object.phpClassPrefix) : "", + phpNamespace: isSet(object.phpNamespace) ? String(object.phpNamespace) : "", phpMetadataNamespace: isSet(object.phpMetadataNamespace) ? String(object.phpMetadataNamespace) : "", rubyPackage: isSet(object.rubyPackage) ? String(object.rubyPackage) : "", uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: FileOptions): unknown { const obj: any = {}; - message.javaPackage !== undefined && - (obj.javaPackage = message.javaPackage); + message.javaPackage !== undefined && (obj.javaPackage = message.javaPackage); message.javaOuterClassname !== undefined && (obj.javaOuterClassname = message.javaOuterClassname); - message.javaMultipleFiles !== undefined && - (obj.javaMultipleFiles = message.javaMultipleFiles); + message.javaMultipleFiles !== undefined && (obj.javaMultipleFiles = message.javaMultipleFiles); message.javaGenerateEqualsAndHash !== undefined && (obj.javaGenerateEqualsAndHash = message.javaGenerateEqualsAndHash); message.javaStringCheckUtf8 !== undefined && @@ -2973,34 +2717,25 @@ export const FileOptions = { message.optimizeFor !== undefined && (obj.optimizeFor = fileOptions_OptimizeModeToJSON(message.optimizeFor)); message.goPackage !== undefined && (obj.goPackage = message.goPackage); - message.ccGenericServices !== undefined && - (obj.ccGenericServices = message.ccGenericServices); + message.ccGenericServices !== undefined && (obj.ccGenericServices = message.ccGenericServices); message.javaGenericServices !== undefined && (obj.javaGenericServices = message.javaGenericServices); - message.pyGenericServices !== undefined && - (obj.pyGenericServices = message.pyGenericServices); + message.pyGenericServices !== undefined && (obj.pyGenericServices = message.pyGenericServices); message.phpGenericServices !== undefined && (obj.phpGenericServices = message.phpGenericServices); message.deprecated !== undefined && (obj.deprecated = message.deprecated); - message.ccEnableArenas !== undefined && - (obj.ccEnableArenas = message.ccEnableArenas); - message.objcClassPrefix !== undefined && - (obj.objcClassPrefix = message.objcClassPrefix); - message.csharpNamespace !== undefined && - (obj.csharpNamespace = message.csharpNamespace); - message.swiftPrefix !== undefined && - (obj.swiftPrefix = message.swiftPrefix); - message.phpClassPrefix !== undefined && - (obj.phpClassPrefix = message.phpClassPrefix); - message.phpNamespace !== undefined && - (obj.phpNamespace = message.phpNamespace); + message.ccEnableArenas !== undefined && (obj.ccEnableArenas = message.ccEnableArenas); + message.objcClassPrefix !== undefined && (obj.objcClassPrefix = message.objcClassPrefix); + message.csharpNamespace !== undefined && (obj.csharpNamespace = message.csharpNamespace); + message.swiftPrefix !== undefined && (obj.swiftPrefix = message.swiftPrefix); + message.phpClassPrefix !== undefined && (obj.phpClassPrefix = message.phpClassPrefix); + message.phpNamespace !== undefined && (obj.phpNamespace = message.phpNamespace); message.phpMetadataNamespace !== undefined && (obj.phpMetadataNamespace = message.phpMetadataNamespace); - message.rubyPackage !== undefined && - (obj.rubyPackage = message.rubyPackage); + message.rubyPackage !== undefined && (obj.rubyPackage = message.rubyPackage); if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3008,15 +2743,12 @@ export const FileOptions = { return obj; }, - fromPartial, I>>( - object: I - ): FileOptions { + fromPartial, I>>(object: I): FileOptions { const message = createBaseFileOptions(); message.javaPackage = object.javaPackage ?? ""; message.javaOuterClassname = object.javaOuterClassname ?? ""; message.javaMultipleFiles = object.javaMultipleFiles ?? false; - message.javaGenerateEqualsAndHash = - object.javaGenerateEqualsAndHash ?? false; + message.javaGenerateEqualsAndHash = object.javaGenerateEqualsAndHash ?? false; message.javaStringCheckUtf8 = object.javaStringCheckUtf8 ?? false; message.optimizeFor = object.optimizeFor ?? 1; message.goPackage = object.goPackage ?? ""; @@ -3034,9 +2766,7 @@ export const FileOptions = { message.phpMetadataNamespace = object.phpMetadataNamespace ?? ""; message.rubyPackage = object.rubyPackage ?? ""; message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3052,10 +2782,7 @@ function createBaseMessageOptions(): MessageOptions { } export const MessageOptions = { - encode( - message: MessageOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: MessageOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.messageSetWireFormat === true) { writer.uint32(8).bool(message.messageSetWireFormat); } @@ -3094,9 +2821,7 @@ export const MessageOptions = { message.mapEntry = reader.bool(); break; case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3117,9 +2842,7 @@ export const MessageOptions = { deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, mapEntry: isSet(object.mapEntry) ? Boolean(object.mapEntry) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, @@ -3133,8 +2856,8 @@ export const MessageOptions = { message.deprecated !== undefined && (obj.deprecated = message.deprecated); message.mapEntry !== undefined && (obj.mapEntry = message.mapEntry); if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3142,19 +2865,14 @@ export const MessageOptions = { return obj; }, - fromPartial, I>>( - object: I - ): MessageOptions { + fromPartial, I>>(object: I): MessageOptions { const message = createBaseMessageOptions(); message.messageSetWireFormat = object.messageSetWireFormat ?? false; - message.noStandardDescriptorAccessor = - object.noStandardDescriptorAccessor ?? false; + message.noStandardDescriptorAccessor = object.noStandardDescriptorAccessor ?? false; message.deprecated = object.deprecated ?? false; message.mapEntry = object.mapEntry ?? false; message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3173,10 +2891,7 @@ function createBaseFieldOptions(): FieldOptions { } export const FieldOptions = { - encode( - message: FieldOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: FieldOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.ctype !== 0) { writer.uint32(8).int32(message.ctype); } @@ -3233,9 +2948,7 @@ export const FieldOptions = { message.weak = reader.bool(); break; case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3249,38 +2962,29 @@ export const FieldOptions = { return { ctype: isSet(object.ctype) ? fieldOptions_CTypeFromJSON(object.ctype) : 0, packed: isSet(object.packed) ? Boolean(object.packed) : false, - jstype: isSet(object.jstype) - ? fieldOptions_JSTypeFromJSON(object.jstype) - : 0, + jstype: isSet(object.jstype) ? fieldOptions_JSTypeFromJSON(object.jstype) : 0, lazy: isSet(object.lazy) ? Boolean(object.lazy) : false, - unverifiedLazy: isSet(object.unverifiedLazy) - ? Boolean(object.unverifiedLazy) - : false, + unverifiedLazy: isSet(object.unverifiedLazy) ? Boolean(object.unverifiedLazy) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, weak: isSet(object.weak) ? Boolean(object.weak) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, toJSON(message: FieldOptions): unknown { const obj: any = {}; - message.ctype !== undefined && - (obj.ctype = fieldOptions_CTypeToJSON(message.ctype)); + message.ctype !== undefined && (obj.ctype = fieldOptions_CTypeToJSON(message.ctype)); message.packed !== undefined && (obj.packed = message.packed); - message.jstype !== undefined && - (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype)); + message.jstype !== undefined && (obj.jstype = fieldOptions_JSTypeToJSON(message.jstype)); message.lazy !== undefined && (obj.lazy = message.lazy); - message.unverifiedLazy !== undefined && - (obj.unverifiedLazy = message.unverifiedLazy); + message.unverifiedLazy !== undefined && (obj.unverifiedLazy = message.unverifiedLazy); message.deprecated !== undefined && (obj.deprecated = message.deprecated); message.weak !== undefined && (obj.weak = message.weak); if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3288,9 +2992,7 @@ export const FieldOptions = { return obj; }, - fromPartial, I>>( - object: I - ): FieldOptions { + fromPartial, I>>(object: I): FieldOptions { const message = createBaseFieldOptions(); message.ctype = object.ctype ?? 0; message.packed = object.packed ?? false; @@ -3300,9 +3002,7 @@ export const FieldOptions = { message.deprecated = object.deprecated ?? false; message.weak = object.weak ?? false; message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3312,10 +3012,7 @@ function createBaseOneofOptions(): OneofOptions { } export const OneofOptions = { - encode( - message: OneofOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: OneofOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.uninterpretedOption) { UninterpretedOption.encode(v!, writer.uint32(7994).fork()).ldelim(); } @@ -3330,9 +3027,7 @@ export const OneofOptions = { const tag = reader.uint32(); switch (tag >>> 3) { case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3345,9 +3040,7 @@ export const OneofOptions = { fromJSON(object: any): OneofOptions { return { uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, @@ -3355,8 +3048,8 @@ export const OneofOptions = { toJSON(message: OneofOptions): unknown { const obj: any = {}; if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3364,14 +3057,10 @@ export const OneofOptions = { return obj; }, - fromPartial, I>>( - object: I - ): OneofOptions { + fromPartial, I>>(object: I): OneofOptions { const message = createBaseOneofOptions(); message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3381,10 +3070,7 @@ function createBaseEnumOptions(): EnumOptions { } export const EnumOptions = { - encode( - message: EnumOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: EnumOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.allowAlias === true) { writer.uint32(16).bool(message.allowAlias); } @@ -3411,9 +3097,7 @@ export const EnumOptions = { message.deprecated = reader.bool(); break; case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3428,9 +3112,7 @@ export const EnumOptions = { allowAlias: isSet(object.allowAlias) ? Boolean(object.allowAlias) : false, deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, @@ -3440,8 +3122,8 @@ export const EnumOptions = { message.allowAlias !== undefined && (obj.allowAlias = message.allowAlias); message.deprecated !== undefined && (obj.deprecated = message.deprecated); if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3449,16 +3131,12 @@ export const EnumOptions = { return obj; }, - fromPartial, I>>( - object: I - ): EnumOptions { + fromPartial, I>>(object: I): EnumOptions { const message = createBaseEnumOptions(); message.allowAlias = object.allowAlias ?? false; message.deprecated = object.deprecated ?? false; message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3468,10 +3146,7 @@ function createBaseEnumValueOptions(): EnumValueOptions { } export const EnumValueOptions = { - encode( - message: EnumValueOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: EnumValueOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.deprecated === true) { writer.uint32(8).bool(message.deprecated); } @@ -3492,9 +3167,7 @@ export const EnumValueOptions = { message.deprecated = reader.bool(); break; case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3508,9 +3181,7 @@ export const EnumValueOptions = { return { deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, @@ -3519,8 +3190,8 @@ export const EnumValueOptions = { const obj: any = {}; message.deprecated !== undefined && (obj.deprecated = message.deprecated); if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3528,15 +3199,11 @@ export const EnumValueOptions = { return obj; }, - fromPartial, I>>( - object: I - ): EnumValueOptions { + fromPartial, I>>(object: I): EnumValueOptions { const message = createBaseEnumValueOptions(); message.deprecated = object.deprecated ?? false; message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3546,10 +3213,7 @@ function createBaseServiceOptions(): ServiceOptions { } export const ServiceOptions = { - encode( - message: ServiceOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: ServiceOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.deprecated === true) { writer.uint32(264).bool(message.deprecated); } @@ -3570,9 +3234,7 @@ export const ServiceOptions = { message.deprecated = reader.bool(); break; case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3586,9 +3248,7 @@ export const ServiceOptions = { return { deprecated: isSet(object.deprecated) ? Boolean(object.deprecated) : false, uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, @@ -3597,8 +3257,8 @@ export const ServiceOptions = { const obj: any = {}; message.deprecated !== undefined && (obj.deprecated = message.deprecated); if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3606,15 +3266,11 @@ export const ServiceOptions = { return obj; }, - fromPartial, I>>( - object: I - ): ServiceOptions { + fromPartial, I>>(object: I): ServiceOptions { const message = createBaseServiceOptions(); message.deprecated = object.deprecated ?? false; message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3624,10 +3280,7 @@ function createBaseMethodOptions(): MethodOptions { } export const MethodOptions = { - encode( - message: MethodOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: MethodOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.deprecated === true) { writer.uint32(264).bool(message.deprecated); } @@ -3654,9 +3307,7 @@ export const MethodOptions = { message.idempotencyLevel = reader.int32() as any; break; case 999: - message.uninterpretedOption.push( - UninterpretedOption.decode(reader, reader.uint32()) - ); + message.uninterpretedOption.push(UninterpretedOption.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3673,9 +3324,7 @@ export const MethodOptions = { ? methodOptions_IdempotencyLevelFromJSON(object.idempotencyLevel) : 0, uninterpretedOption: Array.isArray(object?.uninterpretedOption) - ? object.uninterpretedOption.map((e: any) => - UninterpretedOption.fromJSON(e) - ) + ? object.uninterpretedOption.map((e: any) => UninterpretedOption.fromJSON(e)) : [], }; }, @@ -3684,12 +3333,10 @@ export const MethodOptions = { const obj: any = {}; message.deprecated !== undefined && (obj.deprecated = message.deprecated); message.idempotencyLevel !== undefined && - (obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON( - message.idempotencyLevel - )); + (obj.idempotencyLevel = methodOptions_IdempotencyLevelToJSON(message.idempotencyLevel)); if (message.uninterpretedOption) { - obj.uninterpretedOption = message.uninterpretedOption.map((e) => - e ? UninterpretedOption.toJSON(e) : undefined + obj.uninterpretedOption = message.uninterpretedOption.map(e => + e ? UninterpretedOption.toJSON(e) : undefined, ); } else { obj.uninterpretedOption = []; @@ -3697,16 +3344,12 @@ export const MethodOptions = { return obj; }, - fromPartial, I>>( - object: I - ): MethodOptions { + fromPartial, I>>(object: I): MethodOptions { const message = createBaseMethodOptions(); message.deprecated = object.deprecated ?? false; message.idempotencyLevel = object.idempotencyLevel ?? 0; message.uninterpretedOption = - object.uninterpretedOption?.map((e) => - UninterpretedOption.fromPartial(e) - ) || []; + object.uninterpretedOption?.map(e => UninterpretedOption.fromPartial(e)) || []; return message; }, }; @@ -3724,15 +3367,9 @@ function createBaseUninterpretedOption(): UninterpretedOption { } export const UninterpretedOption = { - encode( - message: UninterpretedOption, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: UninterpretedOption, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.name) { - UninterpretedOption_NamePart.encode( - v!, - writer.uint32(18).fork() - ).ldelim(); + UninterpretedOption_NamePart.encode(v!, writer.uint32(18).fork()).ldelim(); } if (message.identifierValue !== "") { writer.uint32(26).string(message.identifierValue); @@ -3763,9 +3400,7 @@ export const UninterpretedOption = { const tag = reader.uint32(); switch (tag >>> 3) { case 2: - message.name.push( - UninterpretedOption_NamePart.decode(reader, reader.uint32()) - ); + message.name.push(UninterpretedOption_NamePart.decode(reader, reader.uint32())); break; case 3: message.identifierValue = reader.string(); @@ -3798,60 +3433,43 @@ export const UninterpretedOption = { name: Array.isArray(object?.name) ? object.name.map((e: any) => UninterpretedOption_NamePart.fromJSON(e)) : [], - identifierValue: isSet(object.identifierValue) - ? String(object.identifierValue) - : "", - positiveIntValue: isSet(object.positiveIntValue) - ? Number(object.positiveIntValue) - : 0, - negativeIntValue: isSet(object.negativeIntValue) - ? Number(object.negativeIntValue) - : 0, + identifierValue: isSet(object.identifierValue) ? String(object.identifierValue) : "", + positiveIntValue: isSet(object.positiveIntValue) ? Number(object.positiveIntValue) : 0, + negativeIntValue: isSet(object.negativeIntValue) ? Number(object.negativeIntValue) : 0, doubleValue: isSet(object.doubleValue) ? Number(object.doubleValue) : 0, stringValue: isSet(object.stringValue) ? bytesFromBase64(object.stringValue) : new Uint8Array(), - aggregateValue: isSet(object.aggregateValue) - ? String(object.aggregateValue) - : "", + aggregateValue: isSet(object.aggregateValue) ? String(object.aggregateValue) : "", }; }, toJSON(message: UninterpretedOption): unknown { const obj: any = {}; if (message.name) { - obj.name = message.name.map((e) => - e ? UninterpretedOption_NamePart.toJSON(e) : undefined - ); + obj.name = message.name.map(e => (e ? UninterpretedOption_NamePart.toJSON(e) : undefined)); } else { obj.name = []; } - message.identifierValue !== undefined && - (obj.identifierValue = message.identifierValue); + message.identifierValue !== undefined && (obj.identifierValue = message.identifierValue); message.positiveIntValue !== undefined && (obj.positiveIntValue = Math.round(message.positiveIntValue)); message.negativeIntValue !== undefined && (obj.negativeIntValue = Math.round(message.negativeIntValue)); - message.doubleValue !== undefined && - (obj.doubleValue = message.doubleValue); + message.doubleValue !== undefined && (obj.doubleValue = message.doubleValue); message.stringValue !== undefined && (obj.stringValue = base64FromBytes( - message.stringValue !== undefined - ? message.stringValue - : new Uint8Array() + message.stringValue !== undefined ? message.stringValue : new Uint8Array(), )); - message.aggregateValue !== undefined && - (obj.aggregateValue = message.aggregateValue); + message.aggregateValue !== undefined && (obj.aggregateValue = message.aggregateValue); return obj; }, fromPartial, I>>( - object: I + object: I, ): UninterpretedOption { const message = createBaseUninterpretedOption(); - message.name = - object.name?.map((e) => UninterpretedOption_NamePart.fromPartial(e)) || - []; + message.name = object.name?.map(e => UninterpretedOption_NamePart.fromPartial(e)) || []; message.identifierValue = object.identifierValue ?? ""; message.positiveIntValue = object.positiveIntValue ?? 0; message.negativeIntValue = object.negativeIntValue ?? 0; @@ -3869,7 +3487,7 @@ function createBaseUninterpretedOption_NamePart(): UninterpretedOption_NamePart export const UninterpretedOption_NamePart = { encode( message: UninterpretedOption_NamePart, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.namePart !== "") { writer.uint32(10).string(message.namePart); @@ -3880,10 +3498,7 @@ export const UninterpretedOption_NamePart = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): UninterpretedOption_NamePart { + decode(input: _m0.Reader | Uint8Array, length?: number): UninterpretedOption_NamePart { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUninterpretedOption_NamePart(); @@ -3907,22 +3522,19 @@ export const UninterpretedOption_NamePart = { fromJSON(object: any): UninterpretedOption_NamePart { return { namePart: isSet(object.namePart) ? String(object.namePart) : "", - isExtension: isSet(object.isExtension) - ? Boolean(object.isExtension) - : false, + isExtension: isSet(object.isExtension) ? Boolean(object.isExtension) : false, }; }, toJSON(message: UninterpretedOption_NamePart): unknown { const obj: any = {}; message.namePart !== undefined && (obj.namePart = message.namePart); - message.isExtension !== undefined && - (obj.isExtension = message.isExtension); + message.isExtension !== undefined && (obj.isExtension = message.isExtension); return obj; }, fromPartial, I>>( - object: I + object: I, ): UninterpretedOption_NamePart { const message = createBaseUninterpretedOption_NamePart(); message.namePart = object.namePart ?? ""; @@ -3936,10 +3548,7 @@ function createBaseSourceCodeInfo(): SourceCodeInfo { } export const SourceCodeInfo = { - encode( - message: SourceCodeInfo, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: SourceCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.location) { SourceCodeInfo_Location.encode(v!, writer.uint32(10).fork()).ldelim(); } @@ -3954,9 +3563,7 @@ export const SourceCodeInfo = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.location.push( - SourceCodeInfo_Location.decode(reader, reader.uint32()) - ); + message.location.push(SourceCodeInfo_Location.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -3977,21 +3584,16 @@ export const SourceCodeInfo = { toJSON(message: SourceCodeInfo): unknown { const obj: any = {}; if (message.location) { - obj.location = message.location.map((e) => - e ? SourceCodeInfo_Location.toJSON(e) : undefined - ); + obj.location = message.location.map(e => (e ? SourceCodeInfo_Location.toJSON(e) : undefined)); } else { obj.location = []; } return obj; }, - fromPartial, I>>( - object: I - ): SourceCodeInfo { + fromPartial, I>>(object: I): SourceCodeInfo { const message = createBaseSourceCodeInfo(); - message.location = - object.location?.map((e) => SourceCodeInfo_Location.fromPartial(e)) || []; + message.location = object.location?.map(e => SourceCodeInfo_Location.fromPartial(e)) || []; return message; }, }; @@ -4007,10 +3609,7 @@ function createBaseSourceCodeInfo_Location(): SourceCodeInfo_Location { } export const SourceCodeInfo_Location = { - encode( - message: SourceCodeInfo_Location, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: SourceCodeInfo_Location, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { writer.uint32(10).fork(); for (const v of message.path) { writer.int32(v); @@ -4033,10 +3632,7 @@ export const SourceCodeInfo_Location = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): SourceCodeInfo_Location { + decode(input: _m0.Reader | Uint8Array, length?: number): SourceCodeInfo_Location { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSourceCodeInfo_Location(); @@ -4082,18 +3678,10 @@ export const SourceCodeInfo_Location = { fromJSON(object: any): SourceCodeInfo_Location { return { - path: Array.isArray(object?.path) - ? object.path.map((e: any) => Number(e)) - : [], - span: Array.isArray(object?.span) - ? object.span.map((e: any) => Number(e)) - : [], - leadingComments: isSet(object.leadingComments) - ? String(object.leadingComments) - : "", - trailingComments: isSet(object.trailingComments) - ? String(object.trailingComments) - : "", + path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [], + span: Array.isArray(object?.span) ? object.span.map((e: any) => Number(e)) : [], + leadingComments: isSet(object.leadingComments) ? String(object.leadingComments) : "", + trailingComments: isSet(object.trailingComments) ? String(object.trailingComments) : "", leadingDetachedComments: Array.isArray(object?.leadingDetachedComments) ? object.leadingDetachedComments.map((e: any) => String(e)) : [], @@ -4103,23 +3691,19 @@ export const SourceCodeInfo_Location = { toJSON(message: SourceCodeInfo_Location): unknown { const obj: any = {}; if (message.path) { - obj.path = message.path.map((e) => Math.round(e)); + obj.path = message.path.map(e => Math.round(e)); } else { obj.path = []; } if (message.span) { - obj.span = message.span.map((e) => Math.round(e)); + obj.span = message.span.map(e => Math.round(e)); } else { obj.span = []; } - message.leadingComments !== undefined && - (obj.leadingComments = message.leadingComments); - message.trailingComments !== undefined && - (obj.trailingComments = message.trailingComments); + message.leadingComments !== undefined && (obj.leadingComments = message.leadingComments); + message.trailingComments !== undefined && (obj.trailingComments = message.trailingComments); if (message.leadingDetachedComments) { - obj.leadingDetachedComments = message.leadingDetachedComments.map( - (e) => e - ); + obj.leadingDetachedComments = message.leadingDetachedComments.map(e => e); } else { obj.leadingDetachedComments = []; } @@ -4127,15 +3711,14 @@ export const SourceCodeInfo_Location = { }, fromPartial, I>>( - object: I + object: I, ): SourceCodeInfo_Location { const message = createBaseSourceCodeInfo_Location(); - message.path = object.path?.map((e) => e) || []; - message.span = object.span?.map((e) => e) || []; + message.path = object.path?.map(e => e) || []; + message.span = object.span?.map(e => e) || []; message.leadingComments = object.leadingComments ?? ""; message.trailingComments = object.trailingComments ?? ""; - message.leadingDetachedComments = - object.leadingDetachedComments?.map((e) => e) || []; + message.leadingDetachedComments = object.leadingDetachedComments?.map(e => e) || []; return message; }, }; @@ -4145,15 +3728,9 @@ function createBaseGeneratedCodeInfo(): GeneratedCodeInfo { } export const GeneratedCodeInfo = { - encode( - message: GeneratedCodeInfo, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: GeneratedCodeInfo, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.annotation) { - GeneratedCodeInfo_Annotation.encode( - v!, - writer.uint32(10).fork() - ).ldelim(); + GeneratedCodeInfo_Annotation.encode(v!, writer.uint32(10).fork()).ldelim(); } return writer; }, @@ -4166,9 +3743,7 @@ export const GeneratedCodeInfo = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.annotation.push( - GeneratedCodeInfo_Annotation.decode(reader, reader.uint32()) - ); + message.annotation.push(GeneratedCodeInfo_Annotation.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -4181,9 +3756,7 @@ export const GeneratedCodeInfo = { fromJSON(object: any): GeneratedCodeInfo { return { annotation: Array.isArray(object?.annotation) - ? object.annotation.map((e: any) => - GeneratedCodeInfo_Annotation.fromJSON(e) - ) + ? object.annotation.map((e: any) => GeneratedCodeInfo_Annotation.fromJSON(e)) : [], }; }, @@ -4191,8 +3764,8 @@ export const GeneratedCodeInfo = { toJSON(message: GeneratedCodeInfo): unknown { const obj: any = {}; if (message.annotation) { - obj.annotation = message.annotation.map((e) => - e ? GeneratedCodeInfo_Annotation.toJSON(e) : undefined + obj.annotation = message.annotation.map(e => + e ? GeneratedCodeInfo_Annotation.toJSON(e) : undefined, ); } else { obj.annotation = []; @@ -4200,14 +3773,10 @@ export const GeneratedCodeInfo = { return obj; }, - fromPartial, I>>( - object: I - ): GeneratedCodeInfo { + fromPartial, I>>(object: I): GeneratedCodeInfo { const message = createBaseGeneratedCodeInfo(); message.annotation = - object.annotation?.map((e) => - GeneratedCodeInfo_Annotation.fromPartial(e) - ) || []; + object.annotation?.map(e => GeneratedCodeInfo_Annotation.fromPartial(e)) || []; return message; }, }; @@ -4219,7 +3788,7 @@ function createBaseGeneratedCodeInfo_Annotation(): GeneratedCodeInfo_Annotation export const GeneratedCodeInfo_Annotation = { encode( message: GeneratedCodeInfo_Annotation, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { writer.uint32(10).fork(); for (const v of message.path) { @@ -4238,10 +3807,7 @@ export const GeneratedCodeInfo_Annotation = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GeneratedCodeInfo_Annotation { + decode(input: _m0.Reader | Uint8Array, length?: number): GeneratedCodeInfo_Annotation { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGeneratedCodeInfo_Annotation(); @@ -4277,9 +3843,7 @@ export const GeneratedCodeInfo_Annotation = { fromJSON(object: any): GeneratedCodeInfo_Annotation { return { - path: Array.isArray(object?.path) - ? object.path.map((e: any) => Number(e)) - : [], + path: Array.isArray(object?.path) ? object.path.map((e: any) => Number(e)) : [], sourceFile: isSet(object.sourceFile) ? String(object.sourceFile) : "", begin: isSet(object.begin) ? Number(object.begin) : 0, end: isSet(object.end) ? Number(object.end) : 0, @@ -4289,7 +3853,7 @@ export const GeneratedCodeInfo_Annotation = { toJSON(message: GeneratedCodeInfo_Annotation): unknown { const obj: any = {}; if (message.path) { - obj.path = message.path.map((e) => Math.round(e)); + obj.path = message.path.map(e => Math.round(e)); } else { obj.path = []; } @@ -4300,10 +3864,10 @@ export const GeneratedCodeInfo_Annotation = { }, fromPartial, I>>( - object: I + object: I, ): GeneratedCodeInfo_Annotation { const message = createBaseGeneratedCodeInfo_Annotation(); - message.path = object.path?.map((e) => e) || []; + message.path = object.path?.map(e => e) || []; message.sourceFile = object.sourceFile ?? ""; message.begin = object.begin ?? 0; message.end = object.end ?? 0; @@ -4323,8 +3887,7 @@ var globalThis: any = (() => { })(); const atob: (b64: string) => string = - globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary")); + globalThis.atob || (b64 => globalThis.Buffer.from(b64, "base64").toString("binary")); function bytesFromBase64(b64: string): Uint8Array { const bin = atob(b64); const arr = new Uint8Array(bin.length); @@ -4335,24 +3898,16 @@ function bytesFromBase64(b64: string): Uint8Array { } const btoa: (bin: string) => string = - globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64")); + globalThis.btoa || (bin => globalThis.Buffer.from(bin, "binary").toString("base64")); function base64FromBytes(arr: Uint8Array): string { const bin: string[] = []; - arr.forEach((byte) => { + arr.forEach(byte => { bin.push(String.fromCharCode(byte)); }); return btoa(bin.join("")); } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -4367,10 +3922,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; function longToNumber(long: Long): number { if (long.gt(Number.MAX_SAFE_INTEGER)) { diff --git a/dashboard/src/gen/google/protobuf/struct.ts b/dashboard/src/gen/google/protobuf/struct.ts index 7a24add9185b..a07dd327f0b7 100644 --- a/dashboard/src/gen/google/protobuf/struct.ts +++ b/dashboard/src/gen/google/protobuf/struct.ts @@ -96,16 +96,10 @@ function createBaseStruct(): Struct { } export const Struct = { - encode( - message: Struct, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Struct, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { Object.entries(message.fields).forEach(([key, value]) => { if (value !== undefined) { - Struct_FieldsEntry.encode( - { key: key as any, value }, - writer.uint32(10).fork() - ).ldelim(); + Struct_FieldsEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim(); } }); return writer; @@ -135,13 +129,10 @@ export const Struct = { fromJSON(object: any): Struct { return { fields: isObject(object.fields) - ? Object.entries(object.fields).reduce<{ [key: string]: any }>( - (acc, [key, value]) => { - acc[key] = value as any; - return acc; - }, - {} - ) + ? Object.entries(object.fields).reduce<{ [key: string]: any }>((acc, [key, value]) => { + acc[key] = value as any; + return acc; + }, {}) : {}, }; }, @@ -173,7 +164,7 @@ export const Struct = { wrap(object: { [key: string]: any } | undefined): Struct { const struct = createBaseStruct(); if (object !== undefined) { - Object.keys(object).forEach((key) => { + Object.keys(object).forEach(key => { struct.fields[key] = object[key]; }); } @@ -182,7 +173,7 @@ export const Struct = { unwrap(message: Struct): { [key: string]: any } { const object: { [key: string]: any } = {}; - Object.keys(message.fields).forEach((key) => { + Object.keys(message.fields).forEach(key => { object[key] = message.fields[key]; }); return object; @@ -194,18 +185,12 @@ function createBaseStruct_FieldsEntry(): Struct_FieldsEntry { } export const Struct_FieldsEntry = { - encode( - message: Struct_FieldsEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Struct_FieldsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } if (message.value !== undefined) { - Value.encode( - Value.wrap(message.value), - writer.uint32(18).fork() - ).ldelim(); + Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim(); } return writer; }, @@ -245,9 +230,7 @@ export const Struct_FieldsEntry = { return obj; }, - fromPartial, I>>( - object: I - ): Struct_FieldsEntry { + fromPartial, I>>(object: I): Struct_FieldsEntry { const message = createBaseStruct_FieldsEntry(); message.key = object.key ?? ""; message.value = object.value ?? undefined; @@ -281,16 +264,10 @@ export const Value = { writer.uint32(32).bool(message.boolValue); } if (message.structValue !== undefined) { - Struct.encode( - Struct.wrap(message.structValue), - writer.uint32(42).fork() - ).ldelim(); + Struct.encode(Struct.wrap(message.structValue), writer.uint32(42).fork()).ldelim(); } if (message.listValue !== undefined) { - ListValue.encode( - ListValue.wrap(message.listValue), - writer.uint32(50).fork() - ).ldelim(); + ListValue.encode(ListValue.wrap(message.listValue), writer.uint32(50).fork()).ldelim(); } return writer; }, @@ -315,14 +292,10 @@ export const Value = { message.boolValue = reader.bool(); break; case 5: - message.structValue = Struct.unwrap( - Struct.decode(reader, reader.uint32()) - ); + message.structValue = Struct.unwrap(Struct.decode(reader, reader.uint32())); break; case 6: - message.listValue = ListValue.unwrap( - ListValue.decode(reader, reader.uint32()) - ); + message.listValue = ListValue.unwrap(ListValue.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -334,24 +307,12 @@ export const Value = { fromJSON(object: any): Value { return { - nullValue: isSet(object.nullValue) - ? nullValueFromJSON(object.nullValue) - : undefined, - numberValue: isSet(object.numberValue) - ? Number(object.numberValue) - : undefined, - stringValue: isSet(object.stringValue) - ? String(object.stringValue) - : undefined, - boolValue: isSet(object.boolValue) - ? Boolean(object.boolValue) - : undefined, - structValue: isObject(object.structValue) - ? object.structValue - : undefined, - listValue: Array.isArray(object.listValue) - ? [...object.listValue] - : undefined, + nullValue: isSet(object.nullValue) ? nullValueFromJSON(object.nullValue) : undefined, + numberValue: isSet(object.numberValue) ? Number(object.numberValue) : undefined, + stringValue: isSet(object.stringValue) ? String(object.stringValue) : undefined, + boolValue: isSet(object.boolValue) ? Boolean(object.boolValue) : undefined, + structValue: isObject(object.structValue) ? object.structValue : undefined, + listValue: Array.isArray(object.listValue) ? [...object.listValue] : undefined, }; }, @@ -359,16 +320,11 @@ export const Value = { const obj: any = {}; message.nullValue !== undefined && (obj.nullValue = - message.nullValue !== undefined - ? nullValueToJSON(message.nullValue) - : undefined); - message.numberValue !== undefined && - (obj.numberValue = message.numberValue); - message.stringValue !== undefined && - (obj.stringValue = message.stringValue); + message.nullValue !== undefined ? nullValueToJSON(message.nullValue) : undefined); + message.numberValue !== undefined && (obj.numberValue = message.numberValue); + message.stringValue !== undefined && (obj.stringValue = message.stringValue); message.boolValue !== undefined && (obj.boolValue = message.boolValue); - message.structValue !== undefined && - (obj.structValue = message.structValue); + message.structValue !== undefined && (obj.structValue = message.structValue); message.listValue !== undefined && (obj.listValue = message.listValue); return obj; }, @@ -406,9 +362,7 @@ export const Value = { return result; }, - unwrap( - message: Value - ): string | number | boolean | Object | null | Array | undefined { + unwrap(message: Value): string | number | boolean | Object | null | Array | undefined { if (message?.stringValue !== undefined) { return message.stringValue; } else if (message?.numberValue !== undefined) { @@ -431,10 +385,7 @@ function createBaseListValue(): ListValue { } export const ListValue = { - encode( - message: ListValue, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: ListValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.values) { Value.encode(Value.wrap(v!), writer.uint32(10).fork()).ldelim(); } @@ -449,9 +400,7 @@ export const ListValue = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.values.push( - Value.unwrap(Value.decode(reader, reader.uint32())) - ); + message.values.push(Value.unwrap(Value.decode(reader, reader.uint32()))); break; default: reader.skipType(tag & 7); @@ -470,18 +419,16 @@ export const ListValue = { toJSON(message: ListValue): unknown { const obj: any = {}; if (message.values) { - obj.values = message.values.map((e) => e); + obj.values = message.values.map(e => e); } else { obj.values = []; } return obj; }, - fromPartial, I>>( - object: I - ): ListValue { + fromPartial, I>>(object: I): ListValue { const message = createBaseListValue(); - message.values = object.values?.map((e) => e) || []; + message.values = object.values?.map(e => e) || []; return message; }, @@ -498,14 +445,7 @@ export const ListValue = { }, }; -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -520,10 +460,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/google/protobuf/wrappers.ts b/dashboard/src/gen/google/protobuf/wrappers.ts index e4a27ba51b6b..c9426d37502e 100644 --- a/dashboard/src/gen/google/protobuf/wrappers.ts +++ b/dashboard/src/gen/google/protobuf/wrappers.ts @@ -99,10 +99,7 @@ function createBaseDoubleValue(): DoubleValue { } export const DoubleValue = { - encode( - message: DoubleValue, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: DoubleValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value !== 0) { writer.uint32(9).double(message.value); } @@ -139,9 +136,7 @@ export const DoubleValue = { return obj; }, - fromPartial, I>>( - object: I - ): DoubleValue { + fromPartial, I>>(object: I): DoubleValue { const message = createBaseDoubleValue(); message.value = object.value ?? 0; return message; @@ -153,10 +148,7 @@ function createBaseFloatValue(): FloatValue { } export const FloatValue = { - encode( - message: FloatValue, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: FloatValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value !== 0) { writer.uint32(13).float(message.value); } @@ -193,9 +185,7 @@ export const FloatValue = { return obj; }, - fromPartial, I>>( - object: I - ): FloatValue { + fromPartial, I>>(object: I): FloatValue { const message = createBaseFloatValue(); message.value = object.value ?? 0; return message; @@ -207,10 +197,7 @@ function createBaseInt64Value(): Int64Value { } export const Int64Value = { - encode( - message: Int64Value, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Int64Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value !== 0) { writer.uint32(8).int64(message.value); } @@ -247,9 +234,7 @@ export const Int64Value = { return obj; }, - fromPartial, I>>( - object: I - ): Int64Value { + fromPartial, I>>(object: I): Int64Value { const message = createBaseInt64Value(); message.value = object.value ?? 0; return message; @@ -261,10 +246,7 @@ function createBaseUInt64Value(): UInt64Value { } export const UInt64Value = { - encode( - message: UInt64Value, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: UInt64Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value !== 0) { writer.uint32(8).uint64(message.value); } @@ -301,9 +283,7 @@ export const UInt64Value = { return obj; }, - fromPartial, I>>( - object: I - ): UInt64Value { + fromPartial, I>>(object: I): UInt64Value { const message = createBaseUInt64Value(); message.value = object.value ?? 0; return message; @@ -315,10 +295,7 @@ function createBaseInt32Value(): Int32Value { } export const Int32Value = { - encode( - message: Int32Value, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Int32Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value !== 0) { writer.uint32(8).int32(message.value); } @@ -355,9 +332,7 @@ export const Int32Value = { return obj; }, - fromPartial, I>>( - object: I - ): Int32Value { + fromPartial, I>>(object: I): Int32Value { const message = createBaseInt32Value(); message.value = object.value ?? 0; return message; @@ -369,10 +344,7 @@ function createBaseUInt32Value(): UInt32Value { } export const UInt32Value = { - encode( - message: UInt32Value, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: UInt32Value, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value !== 0) { writer.uint32(8).uint32(message.value); } @@ -409,9 +381,7 @@ export const UInt32Value = { return obj; }, - fromPartial, I>>( - object: I - ): UInt32Value { + fromPartial, I>>(object: I): UInt32Value { const message = createBaseUInt32Value(); message.value = object.value ?? 0; return message; @@ -423,10 +393,7 @@ function createBaseBoolValue(): BoolValue { } export const BoolValue = { - encode( - message: BoolValue, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: BoolValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value === true) { writer.uint32(8).bool(message.value); } @@ -463,9 +430,7 @@ export const BoolValue = { return obj; }, - fromPartial, I>>( - object: I - ): BoolValue { + fromPartial, I>>(object: I): BoolValue { const message = createBaseBoolValue(); message.value = object.value ?? false; return message; @@ -477,10 +442,7 @@ function createBaseStringValue(): StringValue { } export const StringValue = { - encode( - message: StringValue, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: StringValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value !== "") { writer.uint32(10).string(message.value); } @@ -517,9 +479,7 @@ export const StringValue = { return obj; }, - fromPartial, I>>( - object: I - ): StringValue { + fromPartial, I>>(object: I): StringValue { const message = createBaseStringValue(); message.value = object.value ?? ""; return message; @@ -531,10 +491,7 @@ function createBaseBytesValue(): BytesValue { } export const BytesValue = { - encode( - message: BytesValue, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: BytesValue, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.value.length !== 0) { writer.uint32(10).bytes(message.value); } @@ -561,24 +518,18 @@ export const BytesValue = { fromJSON(object: any): BytesValue { return { - value: isSet(object.value) - ? bytesFromBase64(object.value) - : new Uint8Array(), + value: isSet(object.value) ? bytesFromBase64(object.value) : new Uint8Array(), }; }, toJSON(message: BytesValue): unknown { const obj: any = {}; message.value !== undefined && - (obj.value = base64FromBytes( - message.value !== undefined ? message.value : new Uint8Array() - )); + (obj.value = base64FromBytes(message.value !== undefined ? message.value : new Uint8Array())); return obj; }, - fromPartial, I>>( - object: I - ): BytesValue { + fromPartial, I>>(object: I): BytesValue { const message = createBaseBytesValue(); message.value = object.value ?? new Uint8Array(); return message; @@ -597,8 +548,7 @@ var globalThis: any = (() => { })(); const atob: (b64: string) => string = - globalThis.atob || - ((b64) => globalThis.Buffer.from(b64, "base64").toString("binary")); + globalThis.atob || (b64 => globalThis.Buffer.from(b64, "base64").toString("binary")); function bytesFromBase64(b64: string): Uint8Array { const bin = atob(b64); const arr = new Uint8Array(bin.length); @@ -609,24 +559,16 @@ function bytesFromBase64(b64: string): Uint8Array { } const btoa: (bin: string) => string = - globalThis.btoa || - ((bin) => globalThis.Buffer.from(bin, "binary").toString("base64")); + globalThis.btoa || (bin => globalThis.Buffer.from(bin, "binary").toString("base64")); function base64FromBytes(arr: Uint8Array): string { const bin: string[] = []; - arr.forEach((byte) => { + arr.forEach(byte => { bin.push(String.fromCharCode(byte)); }); return btoa(bin.join("")); } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -641,10 +583,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; function longToNumber(long: Long): number { if (long.gt(Number.MAX_SAFE_INTEGER)) { diff --git a/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/packages.ts b/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/packages.ts index c8dfd5b7f561..9958baafc745 100644 --- a/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/packages.ts +++ b/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/packages.ts @@ -872,7 +872,7 @@ export enum InstalledPackageStatus_StatusReason { } export function installedPackageStatus_StatusReasonFromJSON( - object: any + object: any, ): InstalledPackageStatus_StatusReason { switch (object) { case 0: @@ -898,7 +898,7 @@ export function installedPackageStatus_StatusReasonFromJSON( } export function installedPackageStatus_StatusReasonToJSON( - object: InstalledPackageStatus_StatusReason + object: InstalledPackageStatus_StatusReason, ): string { switch (object) { case InstalledPackageStatus_StatusReason.STATUS_REASON_UNSPECIFIED: @@ -1009,30 +1009,21 @@ function createBaseGetAvailablePackageSummariesRequest(): GetAvailablePackageSum export const GetAvailablePackageSummariesRequest = { encode( message: GetAvailablePackageSummariesRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); } if (message.filterOptions !== undefined) { - FilterOptions.encode( - message.filterOptions, - writer.uint32(18).fork() - ).ldelim(); + FilterOptions.encode(message.filterOptions, writer.uint32(18).fork()).ldelim(); } if (message.paginationOptions !== undefined) { - PaginationOptions.encode( - message.paginationOptions, - writer.uint32(26).fork() - ).ldelim(); + PaginationOptions.encode(message.paginationOptions, writer.uint32(26).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetAvailablePackageSummariesRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetAvailablePackageSummariesRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetAvailablePackageSummariesRequest(); @@ -1046,10 +1037,7 @@ export const GetAvailablePackageSummariesRequest = { message.filterOptions = FilterOptions.decode(reader, reader.uint32()); break; case 3: - message.paginationOptions = PaginationOptions.decode( - reader, - reader.uint32() - ); + message.paginationOptions = PaginationOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1061,9 +1049,7 @@ export const GetAvailablePackageSummariesRequest = { fromJSON(object: any): GetAvailablePackageSummariesRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, filterOptions: isSet(object.filterOptions) ? FilterOptions.fromJSON(object.filterOptions) : undefined, @@ -1076,9 +1062,7 @@ export const GetAvailablePackageSummariesRequest = { toJSON(message: GetAvailablePackageSummariesRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); message.filterOptions !== undefined && (obj.filterOptions = message.filterOptions ? FilterOptions.toJSON(message.filterOptions) @@ -1090,9 +1074,9 @@ export const GetAvailablePackageSummariesRequest = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetAvailablePackageSummariesRequest { + fromPartial, I>>( + object: I, + ): GetAvailablePackageSummariesRequest { const message = createBaseGetAvailablePackageSummariesRequest(); message.context = object.context !== undefined && object.context !== null @@ -1103,8 +1087,7 @@ export const GetAvailablePackageSummariesRequest = { ? FilterOptions.fromPartial(object.filterOptions) : undefined; message.paginationOptions = - object.paginationOptions !== undefined && - object.paginationOptions !== null + object.paginationOptions !== undefined && object.paginationOptions !== null ? PaginationOptions.fromPartial(object.paginationOptions) : undefined; return message; @@ -1118,12 +1101,12 @@ function createBaseGetAvailablePackageDetailRequest(): GetAvailablePackageDetail export const GetAvailablePackageDetailRequest = { encode( message: GetAvailablePackageDetailRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.availablePackageRef !== undefined) { AvailablePackageReference.encode( message.availablePackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.pkgVersion !== "") { @@ -1132,10 +1115,7 @@ export const GetAvailablePackageDetailRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetAvailablePackageDetailRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetAvailablePackageDetailRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetAvailablePackageDetailRequest(); @@ -1143,10 +1123,7 @@ export const GetAvailablePackageDetailRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.availablePackageRef = AvailablePackageReference.decode( - reader, - reader.uint32() - ); + message.availablePackageRef = AvailablePackageReference.decode(reader, reader.uint32()); break; case 2: message.pkgVersion = reader.string(); @@ -1178,13 +1155,12 @@ export const GetAvailablePackageDetailRequest = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetAvailablePackageDetailRequest { + fromPartial, I>>( + object: I, + ): GetAvailablePackageDetailRequest { const message = createBaseGetAvailablePackageDetailRequest(); message.availablePackageRef = - object.availablePackageRef !== undefined && - object.availablePackageRef !== null + object.availablePackageRef !== undefined && object.availablePackageRef !== null ? AvailablePackageReference.fromPartial(object.availablePackageRef) : undefined; message.pkgVersion = object.pkgVersion ?? ""; @@ -1199,12 +1175,12 @@ function createBaseGetAvailablePackageVersionsRequest(): GetAvailablePackageVers export const GetAvailablePackageVersionsRequest = { encode( message: GetAvailablePackageVersionsRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.availablePackageRef !== undefined) { AvailablePackageReference.encode( message.availablePackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.pkgVersion !== "") { @@ -1213,10 +1189,7 @@ export const GetAvailablePackageVersionsRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetAvailablePackageVersionsRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetAvailablePackageVersionsRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetAvailablePackageVersionsRequest(); @@ -1224,10 +1197,7 @@ export const GetAvailablePackageVersionsRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.availablePackageRef = AvailablePackageReference.decode( - reader, - reader.uint32() - ); + message.availablePackageRef = AvailablePackageReference.decode(reader, reader.uint32()); break; case 2: message.pkgVersion = reader.string(); @@ -1259,13 +1229,12 @@ export const GetAvailablePackageVersionsRequest = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetAvailablePackageVersionsRequest { + fromPartial, I>>( + object: I, + ): GetAvailablePackageVersionsRequest { const message = createBaseGetAvailablePackageVersionsRequest(); message.availablePackageRef = - object.availablePackageRef !== undefined && - object.availablePackageRef !== null + object.availablePackageRef !== undefined && object.availablePackageRef !== null ? AvailablePackageReference.fromPartial(object.availablePackageRef) : undefined; message.pkgVersion = object.pkgVersion ?? ""; @@ -1280,24 +1249,18 @@ function createBaseGetInstalledPackageSummariesRequest(): GetInstalledPackageSum export const GetInstalledPackageSummariesRequest = { encode( message: GetInstalledPackageSummariesRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); } if (message.paginationOptions !== undefined) { - PaginationOptions.encode( - message.paginationOptions, - writer.uint32(18).fork() - ).ldelim(); + PaginationOptions.encode(message.paginationOptions, writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetInstalledPackageSummariesRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetInstalledPackageSummariesRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetInstalledPackageSummariesRequest(); @@ -1308,10 +1271,7 @@ export const GetInstalledPackageSummariesRequest = { message.context = Context.decode(reader, reader.uint32()); break; case 2: - message.paginationOptions = PaginationOptions.decode( - reader, - reader.uint32() - ); + message.paginationOptions = PaginationOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1323,9 +1283,7 @@ export const GetInstalledPackageSummariesRequest = { fromJSON(object: any): GetInstalledPackageSummariesRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, paginationOptions: isSet(object.paginationOptions) ? PaginationOptions.fromJSON(object.paginationOptions) : undefined, @@ -1335,9 +1293,7 @@ export const GetInstalledPackageSummariesRequest = { toJSON(message: GetInstalledPackageSummariesRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); message.paginationOptions !== undefined && (obj.paginationOptions = message.paginationOptions ? PaginationOptions.toJSON(message.paginationOptions) @@ -1345,17 +1301,16 @@ export const GetInstalledPackageSummariesRequest = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetInstalledPackageSummariesRequest { + fromPartial, I>>( + object: I, + ): GetInstalledPackageSummariesRequest { const message = createBaseGetInstalledPackageSummariesRequest(); message.context = object.context !== undefined && object.context !== null ? Context.fromPartial(object.context) : undefined; message.paginationOptions = - object.paginationOptions !== undefined && - object.paginationOptions !== null + object.paginationOptions !== undefined && object.paginationOptions !== null ? PaginationOptions.fromPartial(object.paginationOptions) : undefined; return message; @@ -1369,21 +1324,18 @@ function createBaseGetInstalledPackageDetailRequest(): GetInstalledPackageDetail export const GetInstalledPackageDetailRequest = { encode( message: GetInstalledPackageDetailRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetInstalledPackageDetailRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetInstalledPackageDetailRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetInstalledPackageDetailRequest(); @@ -1391,10 +1343,7 @@ export const GetInstalledPackageDetailRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1421,13 +1370,12 @@ export const GetInstalledPackageDetailRequest = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetInstalledPackageDetailRequest { + fromPartial, I>>( + object: I, + ): GetInstalledPackageDetailRequest { const message = createBaseGetInstalledPackageDetailRequest(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; return message; @@ -1448,12 +1396,12 @@ function createBaseCreateInstalledPackageRequest(): CreateInstalledPackageReques export const CreateInstalledPackageRequest = { encode( message: CreateInstalledPackageRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.availablePackageRef !== undefined) { AvailablePackageReference.encode( message.availablePackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.targetContext !== undefined) { @@ -1463,10 +1411,7 @@ export const CreateInstalledPackageRequest = { writer.uint32(26).string(message.name); } if (message.pkgVersionReference !== undefined) { - VersionReference.encode( - message.pkgVersionReference, - writer.uint32(34).fork() - ).ldelim(); + VersionReference.encode(message.pkgVersionReference, writer.uint32(34).fork()).ldelim(); } if (message.values !== "") { writer.uint32(42).string(message.values); @@ -1474,16 +1419,13 @@ export const CreateInstalledPackageRequest = { if (message.reconciliationOptions !== undefined) { ReconciliationOptions.encode( message.reconciliationOptions, - writer.uint32(50).fork() + writer.uint32(50).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CreateInstalledPackageRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): CreateInstalledPackageRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCreateInstalledPackageRequest(); @@ -1491,10 +1433,7 @@ export const CreateInstalledPackageRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.availablePackageRef = AvailablePackageReference.decode( - reader, - reader.uint32() - ); + message.availablePackageRef = AvailablePackageReference.decode(reader, reader.uint32()); break; case 2: message.targetContext = Context.decode(reader, reader.uint32()); @@ -1503,19 +1442,13 @@ export const CreateInstalledPackageRequest = { message.name = reader.string(); break; case 4: - message.pkgVersionReference = VersionReference.decode( - reader, - reader.uint32() - ); + message.pkgVersionReference = VersionReference.decode(reader, reader.uint32()); break; case 5: message.values = reader.string(); break; case 6: - message.reconciliationOptions = ReconciliationOptions.decode( - reader, - reader.uint32() - ); + message.reconciliationOptions = ReconciliationOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1568,12 +1501,11 @@ export const CreateInstalledPackageRequest = { }, fromPartial, I>>( - object: I + object: I, ): CreateInstalledPackageRequest { const message = createBaseCreateInstalledPackageRequest(); message.availablePackageRef = - object.availablePackageRef !== undefined && - object.availablePackageRef !== null + object.availablePackageRef !== undefined && object.availablePackageRef !== null ? AvailablePackageReference.fromPartial(object.availablePackageRef) : undefined; message.targetContext = @@ -1582,14 +1514,12 @@ export const CreateInstalledPackageRequest = { : undefined; message.name = object.name ?? ""; message.pkgVersionReference = - object.pkgVersionReference !== undefined && - object.pkgVersionReference !== null + object.pkgVersionReference !== undefined && object.pkgVersionReference !== null ? VersionReference.fromPartial(object.pkgVersionReference) : undefined; message.values = object.values ?? ""; message.reconciliationOptions = - object.reconciliationOptions !== undefined && - object.reconciliationOptions !== null + object.reconciliationOptions !== undefined && object.reconciliationOptions !== null ? ReconciliationOptions.fromPartial(object.reconciliationOptions) : undefined; return message; @@ -1608,19 +1538,16 @@ function createBaseUpdateInstalledPackageRequest(): UpdateInstalledPackageReques export const UpdateInstalledPackageRequest = { encode( message: UpdateInstalledPackageRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.pkgVersionReference !== undefined) { - VersionReference.encode( - message.pkgVersionReference, - writer.uint32(18).fork() - ).ldelim(); + VersionReference.encode(message.pkgVersionReference, writer.uint32(18).fork()).ldelim(); } if (message.values !== "") { writer.uint32(26).string(message.values); @@ -1628,16 +1555,13 @@ export const UpdateInstalledPackageRequest = { if (message.reconciliationOptions !== undefined) { ReconciliationOptions.encode( message.reconciliationOptions, - writer.uint32(34).fork() + writer.uint32(34).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): UpdateInstalledPackageRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstalledPackageRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUpdateInstalledPackageRequest(); @@ -1645,25 +1569,16 @@ export const UpdateInstalledPackageRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; case 2: - message.pkgVersionReference = VersionReference.decode( - reader, - reader.uint32() - ); + message.pkgVersionReference = VersionReference.decode(reader, reader.uint32()); break; case 3: message.values = reader.string(); break; case 4: - message.reconciliationOptions = ReconciliationOptions.decode( - reader, - reader.uint32() - ); + message.reconciliationOptions = ReconciliationOptions.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1707,23 +1622,20 @@ export const UpdateInstalledPackageRequest = { }, fromPartial, I>>( - object: I + object: I, ): UpdateInstalledPackageRequest { const message = createBaseUpdateInstalledPackageRequest(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; message.pkgVersionReference = - object.pkgVersionReference !== undefined && - object.pkgVersionReference !== null + object.pkgVersionReference !== undefined && object.pkgVersionReference !== null ? VersionReference.fromPartial(object.pkgVersionReference) : undefined; message.values = object.values ?? ""; message.reconciliationOptions = - object.reconciliationOptions !== undefined && - object.reconciliationOptions !== null + object.reconciliationOptions !== undefined && object.reconciliationOptions !== null ? ReconciliationOptions.fromPartial(object.reconciliationOptions) : undefined; return message; @@ -1737,21 +1649,18 @@ function createBaseDeleteInstalledPackageRequest(): DeleteInstalledPackageReques export const DeleteInstalledPackageRequest = { encode( message: DeleteInstalledPackageRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): DeleteInstalledPackageRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): DeleteInstalledPackageRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseDeleteInstalledPackageRequest(); @@ -1759,10 +1668,7 @@ export const DeleteInstalledPackageRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1790,12 +1696,11 @@ export const DeleteInstalledPackageRequest = { }, fromPartial, I>>( - object: I + object: I, ): DeleteInstalledPackageRequest { const message = createBaseDeleteInstalledPackageRequest(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; return message; @@ -1809,21 +1714,18 @@ function createBaseGetInstalledPackageResourceRefsRequest(): GetInstalledPackage export const GetInstalledPackageResourceRefsRequest = { encode( message: GetInstalledPackageResourceRefsRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetInstalledPackageResourceRefsRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetInstalledPackageResourceRefsRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetInstalledPackageResourceRefsRequest(); @@ -1831,10 +1733,7 @@ export const GetInstalledPackageResourceRefsRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1861,13 +1760,12 @@ export const GetInstalledPackageResourceRefsRequest = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetInstalledPackageResourceRefsRequest { + fromPartial, I>>( + object: I, + ): GetInstalledPackageResourceRefsRequest { const message = createBaseGetInstalledPackageResourceRefsRequest(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; return message; @@ -1881,7 +1779,7 @@ function createBaseGetAvailablePackageSummariesResponse(): GetAvailablePackageSu export const GetAvailablePackageSummariesResponse = { encode( message: GetAvailablePackageSummariesResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.availablePackageSummaries) { AvailablePackageSummary.encode(v!, writer.uint32(10).fork()).ldelim(); @@ -1895,10 +1793,7 @@ export const GetAvailablePackageSummariesResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetAvailablePackageSummariesResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetAvailablePackageSummariesResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetAvailablePackageSummariesResponse(); @@ -1907,7 +1802,7 @@ export const GetAvailablePackageSummariesResponse = { switch (tag >>> 3) { case 1: message.availablePackageSummaries.push( - AvailablePackageSummary.decode(reader, reader.uint32()) + AvailablePackageSummary.decode(reader, reader.uint32()), ); break; case 2: @@ -1926,16 +1821,10 @@ export const GetAvailablePackageSummariesResponse = { fromJSON(object: any): GetAvailablePackageSummariesResponse { return { - availablePackageSummaries: Array.isArray( - object?.availablePackageSummaries - ) - ? object.availablePackageSummaries.map((e: any) => - AvailablePackageSummary.fromJSON(e) - ) + availablePackageSummaries: Array.isArray(object?.availablePackageSummaries) + ? object.availablePackageSummaries.map((e: any) => AvailablePackageSummary.fromJSON(e)) : [], - nextPageToken: isSet(object.nextPageToken) - ? String(object.nextPageToken) - : "", + nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "", categories: Array.isArray(object?.categories) ? object.categories.map((e: any) => String(e)) : [], @@ -1945,32 +1834,29 @@ export const GetAvailablePackageSummariesResponse = { toJSON(message: GetAvailablePackageSummariesResponse): unknown { const obj: any = {}; if (message.availablePackageSummaries) { - obj.availablePackageSummaries = message.availablePackageSummaries.map( - (e) => (e ? AvailablePackageSummary.toJSON(e) : undefined) + obj.availablePackageSummaries = message.availablePackageSummaries.map(e => + e ? AvailablePackageSummary.toJSON(e) : undefined, ); } else { obj.availablePackageSummaries = []; } - message.nextPageToken !== undefined && - (obj.nextPageToken = message.nextPageToken); + message.nextPageToken !== undefined && (obj.nextPageToken = message.nextPageToken); if (message.categories) { - obj.categories = message.categories.map((e) => e); + obj.categories = message.categories.map(e => e); } else { obj.categories = []; } return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetAvailablePackageSummariesResponse { + fromPartial, I>>( + object: I, + ): GetAvailablePackageSummariesResponse { const message = createBaseGetAvailablePackageSummariesResponse(); message.availablePackageSummaries = - object.availablePackageSummaries?.map((e) => - AvailablePackageSummary.fromPartial(e) - ) || []; + object.availablePackageSummaries?.map(e => AvailablePackageSummary.fromPartial(e)) || []; message.nextPageToken = object.nextPageToken ?? ""; - message.categories = object.categories?.map((e) => e) || []; + message.categories = object.categories?.map(e => e) || []; return message; }, }; @@ -1982,21 +1868,18 @@ function createBaseGetAvailablePackageDetailResponse(): GetAvailablePackageDetai export const GetAvailablePackageDetailResponse = { encode( message: GetAvailablePackageDetailResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.availablePackageDetail !== undefined) { AvailablePackageDetail.encode( message.availablePackageDetail, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetAvailablePackageDetailResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetAvailablePackageDetailResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetAvailablePackageDetailResponse(); @@ -2004,10 +1887,7 @@ export const GetAvailablePackageDetailResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.availablePackageDetail = AvailablePackageDetail.decode( - reader, - reader.uint32() - ); + message.availablePackageDetail = AvailablePackageDetail.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2034,13 +1914,12 @@ export const GetAvailablePackageDetailResponse = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetAvailablePackageDetailResponse { + fromPartial, I>>( + object: I, + ): GetAvailablePackageDetailResponse { const message = createBaseGetAvailablePackageDetailResponse(); message.availablePackageDetail = - object.availablePackageDetail !== undefined && - object.availablePackageDetail !== null + object.availablePackageDetail !== undefined && object.availablePackageDetail !== null ? AvailablePackageDetail.fromPartial(object.availablePackageDetail) : undefined; return message; @@ -2054,7 +1933,7 @@ function createBaseGetAvailablePackageVersionsResponse(): GetAvailablePackageVer export const GetAvailablePackageVersionsResponse = { encode( message: GetAvailablePackageVersionsResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.packageAppVersions) { PackageAppVersion.encode(v!, writer.uint32(10).fork()).ldelim(); @@ -2062,10 +1941,7 @@ export const GetAvailablePackageVersionsResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetAvailablePackageVersionsResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetAvailablePackageVersionsResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetAvailablePackageVersionsResponse(); @@ -2073,9 +1949,7 @@ export const GetAvailablePackageVersionsResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageAppVersions.push( - PackageAppVersion.decode(reader, reader.uint32()) - ); + message.packageAppVersions.push(PackageAppVersion.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -2088,9 +1962,7 @@ export const GetAvailablePackageVersionsResponse = { fromJSON(object: any): GetAvailablePackageVersionsResponse { return { packageAppVersions: Array.isArray(object?.packageAppVersions) - ? object.packageAppVersions.map((e: any) => - PackageAppVersion.fromJSON(e) - ) + ? object.packageAppVersions.map((e: any) => PackageAppVersion.fromJSON(e)) : [], }; }, @@ -2098,8 +1970,8 @@ export const GetAvailablePackageVersionsResponse = { toJSON(message: GetAvailablePackageVersionsResponse): unknown { const obj: any = {}; if (message.packageAppVersions) { - obj.packageAppVersions = message.packageAppVersions.map((e) => - e ? PackageAppVersion.toJSON(e) : undefined + obj.packageAppVersions = message.packageAppVersions.map(e => + e ? PackageAppVersion.toJSON(e) : undefined, ); } else { obj.packageAppVersions = []; @@ -2107,13 +1979,12 @@ export const GetAvailablePackageVersionsResponse = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetAvailablePackageVersionsResponse { + fromPartial, I>>( + object: I, + ): GetAvailablePackageVersionsResponse { const message = createBaseGetAvailablePackageVersionsResponse(); message.packageAppVersions = - object.packageAppVersions?.map((e) => PackageAppVersion.fromPartial(e)) || - []; + object.packageAppVersions?.map(e => PackageAppVersion.fromPartial(e)) || []; return message; }, }; @@ -2125,7 +1996,7 @@ function createBaseGetInstalledPackageSummariesResponse(): GetInstalledPackageSu export const GetInstalledPackageSummariesResponse = { encode( message: GetInstalledPackageSummariesResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.installedPackageSummaries) { InstalledPackageSummary.encode(v!, writer.uint32(10).fork()).ldelim(); @@ -2136,10 +2007,7 @@ export const GetInstalledPackageSummariesResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetInstalledPackageSummariesResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetInstalledPackageSummariesResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetInstalledPackageSummariesResponse(); @@ -2148,7 +2016,7 @@ export const GetInstalledPackageSummariesResponse = { switch (tag >>> 3) { case 1: message.installedPackageSummaries.push( - InstalledPackageSummary.decode(reader, reader.uint32()) + InstalledPackageSummary.decode(reader, reader.uint32()), ); break; case 2: @@ -2164,41 +2032,32 @@ export const GetInstalledPackageSummariesResponse = { fromJSON(object: any): GetInstalledPackageSummariesResponse { return { - installedPackageSummaries: Array.isArray( - object?.installedPackageSummaries - ) - ? object.installedPackageSummaries.map((e: any) => - InstalledPackageSummary.fromJSON(e) - ) + installedPackageSummaries: Array.isArray(object?.installedPackageSummaries) + ? object.installedPackageSummaries.map((e: any) => InstalledPackageSummary.fromJSON(e)) : [], - nextPageToken: isSet(object.nextPageToken) - ? String(object.nextPageToken) - : "", + nextPageToken: isSet(object.nextPageToken) ? String(object.nextPageToken) : "", }; }, toJSON(message: GetInstalledPackageSummariesResponse): unknown { const obj: any = {}; if (message.installedPackageSummaries) { - obj.installedPackageSummaries = message.installedPackageSummaries.map( - (e) => (e ? InstalledPackageSummary.toJSON(e) : undefined) + obj.installedPackageSummaries = message.installedPackageSummaries.map(e => + e ? InstalledPackageSummary.toJSON(e) : undefined, ); } else { obj.installedPackageSummaries = []; } - message.nextPageToken !== undefined && - (obj.nextPageToken = message.nextPageToken); + message.nextPageToken !== undefined && (obj.nextPageToken = message.nextPageToken); return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetInstalledPackageSummariesResponse { + fromPartial, I>>( + object: I, + ): GetInstalledPackageSummariesResponse { const message = createBaseGetInstalledPackageSummariesResponse(); message.installedPackageSummaries = - object.installedPackageSummaries?.map((e) => - InstalledPackageSummary.fromPartial(e) - ) || []; + object.installedPackageSummaries?.map(e => InstalledPackageSummary.fromPartial(e)) || []; message.nextPageToken = object.nextPageToken ?? ""; return message; }, @@ -2211,21 +2070,18 @@ function createBaseGetInstalledPackageDetailResponse(): GetInstalledPackageDetai export const GetInstalledPackageDetailResponse = { encode( message: GetInstalledPackageDetailResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageDetail !== undefined) { InstalledPackageDetail.encode( message.installedPackageDetail, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetInstalledPackageDetailResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetInstalledPackageDetailResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetInstalledPackageDetailResponse(); @@ -2233,10 +2089,7 @@ export const GetInstalledPackageDetailResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageDetail = InstalledPackageDetail.decode( - reader, - reader.uint32() - ); + message.installedPackageDetail = InstalledPackageDetail.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2263,13 +2116,12 @@ export const GetInstalledPackageDetailResponse = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetInstalledPackageDetailResponse { + fromPartial, I>>( + object: I, + ): GetInstalledPackageDetailResponse { const message = createBaseGetInstalledPackageDetailResponse(); message.installedPackageDetail = - object.installedPackageDetail !== undefined && - object.installedPackageDetail !== null + object.installedPackageDetail !== undefined && object.installedPackageDetail !== null ? InstalledPackageDetail.fromPartial(object.installedPackageDetail) : undefined; return message; @@ -2283,21 +2135,18 @@ function createBaseCreateInstalledPackageResponse(): CreateInstalledPackageRespo export const CreateInstalledPackageResponse = { encode( message: CreateInstalledPackageResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CreateInstalledPackageResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): CreateInstalledPackageResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCreateInstalledPackageResponse(); @@ -2305,10 +2154,7 @@ export const CreateInstalledPackageResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2336,12 +2182,11 @@ export const CreateInstalledPackageResponse = { }, fromPartial, I>>( - object: I + object: I, ): CreateInstalledPackageResponse { const message = createBaseCreateInstalledPackageResponse(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; return message; @@ -2355,21 +2200,18 @@ function createBaseUpdateInstalledPackageResponse(): UpdateInstalledPackageRespo export const UpdateInstalledPackageResponse = { encode( message: UpdateInstalledPackageResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): UpdateInstalledPackageResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstalledPackageResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUpdateInstalledPackageResponse(); @@ -2377,10 +2219,7 @@ export const UpdateInstalledPackageResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2408,12 +2247,11 @@ export const UpdateInstalledPackageResponse = { }, fromPartial, I>>( - object: I + object: I, ): UpdateInstalledPackageResponse { const message = createBaseUpdateInstalledPackageResponse(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; return message; @@ -2425,17 +2263,11 @@ function createBaseDeleteInstalledPackageResponse(): DeleteInstalledPackageRespo } export const DeleteInstalledPackageResponse = { - encode( - _: DeleteInstalledPackageResponse, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(_: DeleteInstalledPackageResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): DeleteInstalledPackageResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): DeleteInstalledPackageResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseDeleteInstalledPackageResponse(); @@ -2460,7 +2292,7 @@ export const DeleteInstalledPackageResponse = { }, fromPartial, I>>( - _: I + _: I, ): DeleteInstalledPackageResponse { const message = createBaseDeleteInstalledPackageResponse(); return message; @@ -2474,7 +2306,7 @@ function createBaseGetInstalledPackageResourceRefsResponse(): GetInstalledPackag export const GetInstalledPackageResourceRefsResponse = { encode( message: GetInstalledPackageResourceRefsResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); @@ -2485,10 +2317,7 @@ export const GetInstalledPackageResourceRefsResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetInstalledPackageResourceRefsResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetInstalledPackageResourceRefsResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetInstalledPackageResourceRefsResponse(); @@ -2499,9 +2328,7 @@ export const GetInstalledPackageResourceRefsResponse = { message.context = Context.decode(reader, reader.uint32()); break; case 2: - message.resourceRefs.push( - ResourceRef.decode(reader, reader.uint32()) - ); + message.resourceRefs.push(ResourceRef.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -2513,9 +2340,7 @@ export const GetInstalledPackageResourceRefsResponse = { fromJSON(object: any): GetInstalledPackageResourceRefsResponse { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, resourceRefs: Array.isArray(object?.resourceRefs) ? object.resourceRefs.map((e: any) => ResourceRef.fromJSON(e)) : [], @@ -2525,29 +2350,24 @@ export const GetInstalledPackageResourceRefsResponse = { toJSON(message: GetInstalledPackageResourceRefsResponse): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); if (message.resourceRefs) { - obj.resourceRefs = message.resourceRefs.map((e) => - e ? ResourceRef.toJSON(e) : undefined - ); + obj.resourceRefs = message.resourceRefs.map(e => (e ? ResourceRef.toJSON(e) : undefined)); } else { obj.resourceRefs = []; } return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetInstalledPackageResourceRefsResponse { + fromPartial, I>>( + object: I, + ): GetInstalledPackageResourceRefsResponse { const message = createBaseGetInstalledPackageResourceRefsResponse(); message.context = object.context !== undefined && object.context !== null ? Context.fromPartial(object.context) : undefined; - message.resourceRefs = - object.resourceRefs?.map((e) => ResourceRef.fromPartial(e)) || []; + message.resourceRefs = object.resourceRefs?.map(e => ResourceRef.fromPartial(e)) || []; return message; }, }; @@ -2565,24 +2385,18 @@ function createBaseAvailablePackageSummary(): AvailablePackageSummary { } export const AvailablePackageSummary = { - encode( - message: AvailablePackageSummary, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: AvailablePackageSummary, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.availablePackageRef !== undefined) { AvailablePackageReference.encode( message.availablePackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.name !== "") { writer.uint32(18).string(message.name); } if (message.latestVersion !== undefined) { - PackageAppVersion.encode( - message.latestVersion, - writer.uint32(26).fork() - ).ldelim(); + PackageAppVersion.encode(message.latestVersion, writer.uint32(26).fork()).ldelim(); } if (message.iconUrl !== "") { writer.uint32(34).string(message.iconUrl); @@ -2599,10 +2413,7 @@ export const AvailablePackageSummary = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): AvailablePackageSummary { + decode(input: _m0.Reader | Uint8Array, length?: number): AvailablePackageSummary { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseAvailablePackageSummary(); @@ -2610,19 +2421,13 @@ export const AvailablePackageSummary = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.availablePackageRef = AvailablePackageReference.decode( - reader, - reader.uint32() - ); + message.availablePackageRef = AvailablePackageReference.decode(reader, reader.uint32()); break; case 2: message.name = reader.string(); break; case 3: - message.latestVersion = PackageAppVersion.decode( - reader, - reader.uint32() - ); + message.latestVersion = PackageAppVersion.decode(reader, reader.uint32()); break; case 4: message.iconUrl = reader.string(); @@ -2655,9 +2460,7 @@ export const AvailablePackageSummary = { : undefined, iconUrl: isSet(object.iconUrl) ? String(object.iconUrl) : "", displayName: isSet(object.displayName) ? String(object.displayName) : "", - shortDescription: isSet(object.shortDescription) - ? String(object.shortDescription) - : "", + shortDescription: isSet(object.shortDescription) ? String(object.shortDescription) : "", categories: Array.isArray(object?.categories) ? object.categories.map((e: any) => String(e)) : [], @@ -2676,12 +2479,10 @@ export const AvailablePackageSummary = { ? PackageAppVersion.toJSON(message.latestVersion) : undefined); message.iconUrl !== undefined && (obj.iconUrl = message.iconUrl); - message.displayName !== undefined && - (obj.displayName = message.displayName); - message.shortDescription !== undefined && - (obj.shortDescription = message.shortDescription); + message.displayName !== undefined && (obj.displayName = message.displayName); + message.shortDescription !== undefined && (obj.shortDescription = message.shortDescription); if (message.categories) { - obj.categories = message.categories.map((e) => e); + obj.categories = message.categories.map(e => e); } else { obj.categories = []; } @@ -2689,12 +2490,11 @@ export const AvailablePackageSummary = { }, fromPartial, I>>( - object: I + object: I, ): AvailablePackageSummary { const message = createBaseAvailablePackageSummary(); message.availablePackageRef = - object.availablePackageRef !== undefined && - object.availablePackageRef !== null + object.availablePackageRef !== undefined && object.availablePackageRef !== null ? AvailablePackageReference.fromPartial(object.availablePackageRef) : undefined; message.name = object.name ?? ""; @@ -2705,7 +2505,7 @@ export const AvailablePackageSummary = { message.iconUrl = object.iconUrl ?? ""; message.displayName = object.displayName ?? ""; message.shortDescription = object.shortDescription ?? ""; - message.categories = object.categories?.map((e) => e) || []; + message.categories = object.categories?.map(e => e) || []; return message; }, }; @@ -2732,24 +2532,18 @@ function createBaseAvailablePackageDetail(): AvailablePackageDetail { } export const AvailablePackageDetail = { - encode( - message: AvailablePackageDetail, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: AvailablePackageDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.availablePackageRef !== undefined) { AvailablePackageReference.encode( message.availablePackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.name !== "") { writer.uint32(18).string(message.name); } if (message.version !== undefined) { - PackageAppVersion.encode( - message.version, - writer.uint32(26).fork() - ).ldelim(); + PackageAppVersion.encode(message.version, writer.uint32(26).fork()).ldelim(); } if (message.repoUrl !== "") { writer.uint32(34).string(message.repoUrl); @@ -2793,10 +2587,7 @@ export const AvailablePackageDetail = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): AvailablePackageDetail { + decode(input: _m0.Reader | Uint8Array, length?: number): AvailablePackageDetail { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseAvailablePackageDetail(); @@ -2804,10 +2595,7 @@ export const AvailablePackageDetail = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.availablePackageRef = AvailablePackageReference.decode( - reader, - reader.uint32() - ); + message.availablePackageRef = AvailablePackageReference.decode(reader, reader.uint32()); break; case 2: message.name = reader.string(); @@ -2868,26 +2656,16 @@ export const AvailablePackageDetail = { ? AvailablePackageReference.fromJSON(object.availablePackageRef) : undefined, name: isSet(object.name) ? String(object.name) : "", - version: isSet(object.version) - ? PackageAppVersion.fromJSON(object.version) - : undefined, + version: isSet(object.version) ? PackageAppVersion.fromJSON(object.version) : undefined, repoUrl: isSet(object.repoUrl) ? String(object.repoUrl) : "", homeUrl: isSet(object.homeUrl) ? String(object.homeUrl) : "", iconUrl: isSet(object.iconUrl) ? String(object.iconUrl) : "", displayName: isSet(object.displayName) ? String(object.displayName) : "", - shortDescription: isSet(object.shortDescription) - ? String(object.shortDescription) - : "", - longDescription: isSet(object.longDescription) - ? String(object.longDescription) - : "", + shortDescription: isSet(object.shortDescription) ? String(object.shortDescription) : "", + longDescription: isSet(object.longDescription) ? String(object.longDescription) : "", readme: isSet(object.readme) ? String(object.readme) : "", - defaultValues: isSet(object.defaultValues) - ? String(object.defaultValues) - : "", - valuesSchema: isSet(object.valuesSchema) - ? String(object.valuesSchema) - : "", + defaultValues: isSet(object.defaultValues) ? String(object.defaultValues) : "", + valuesSchema: isSet(object.valuesSchema) ? String(object.valuesSchema) : "", sourceUrls: Array.isArray(object?.sourceUrls) ? object.sourceUrls.map((e: any) => String(e)) : [], @@ -2897,9 +2675,7 @@ export const AvailablePackageDetail = { categories: Array.isArray(object?.categories) ? object.categories.map((e: any) => String(e)) : [], - customDetail: isSet(object.customDetail) - ? Any.fromJSON(object.customDetail) - : undefined, + customDetail: isSet(object.customDetail) ? Any.fromJSON(object.customDetail) : undefined, }; }, @@ -2911,54 +2687,42 @@ export const AvailablePackageDetail = { : undefined); message.name !== undefined && (obj.name = message.name); message.version !== undefined && - (obj.version = message.version - ? PackageAppVersion.toJSON(message.version) - : undefined); + (obj.version = message.version ? PackageAppVersion.toJSON(message.version) : undefined); message.repoUrl !== undefined && (obj.repoUrl = message.repoUrl); message.homeUrl !== undefined && (obj.homeUrl = message.homeUrl); message.iconUrl !== undefined && (obj.iconUrl = message.iconUrl); - message.displayName !== undefined && - (obj.displayName = message.displayName); - message.shortDescription !== undefined && - (obj.shortDescription = message.shortDescription); - message.longDescription !== undefined && - (obj.longDescription = message.longDescription); + message.displayName !== undefined && (obj.displayName = message.displayName); + message.shortDescription !== undefined && (obj.shortDescription = message.shortDescription); + message.longDescription !== undefined && (obj.longDescription = message.longDescription); message.readme !== undefined && (obj.readme = message.readme); - message.defaultValues !== undefined && - (obj.defaultValues = message.defaultValues); - message.valuesSchema !== undefined && - (obj.valuesSchema = message.valuesSchema); + message.defaultValues !== undefined && (obj.defaultValues = message.defaultValues); + message.valuesSchema !== undefined && (obj.valuesSchema = message.valuesSchema); if (message.sourceUrls) { - obj.sourceUrls = message.sourceUrls.map((e) => e); + obj.sourceUrls = message.sourceUrls.map(e => e); } else { obj.sourceUrls = []; } if (message.maintainers) { - obj.maintainers = message.maintainers.map((e) => - e ? Maintainer.toJSON(e) : undefined - ); + obj.maintainers = message.maintainers.map(e => (e ? Maintainer.toJSON(e) : undefined)); } else { obj.maintainers = []; } if (message.categories) { - obj.categories = message.categories.map((e) => e); + obj.categories = message.categories.map(e => e); } else { obj.categories = []; } message.customDetail !== undefined && - (obj.customDetail = message.customDetail - ? Any.toJSON(message.customDetail) - : undefined); + (obj.customDetail = message.customDetail ? Any.toJSON(message.customDetail) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): AvailablePackageDetail { const message = createBaseAvailablePackageDetail(); message.availablePackageRef = - object.availablePackageRef !== undefined && - object.availablePackageRef !== null + object.availablePackageRef !== undefined && object.availablePackageRef !== null ? AvailablePackageReference.fromPartial(object.availablePackageRef) : undefined; message.name = object.name ?? ""; @@ -2975,10 +2739,9 @@ export const AvailablePackageDetail = { message.readme = object.readme ?? ""; message.defaultValues = object.defaultValues ?? ""; message.valuesSchema = object.valuesSchema ?? ""; - message.sourceUrls = object.sourceUrls?.map((e) => e) || []; - message.maintainers = - object.maintainers?.map((e) => Maintainer.fromPartial(e)) || []; - message.categories = object.categories?.map((e) => e) || []; + message.sourceUrls = object.sourceUrls?.map(e => e) || []; + message.maintainers = object.maintainers?.map(e => Maintainer.fromPartial(e)) || []; + message.categories = object.categories?.map(e => e) || []; message.customDetail = object.customDetail !== undefined && object.customDetail !== null ? Any.fromPartial(object.customDetail) @@ -3003,30 +2766,21 @@ function createBaseInstalledPackageSummary(): InstalledPackageSummary { } export const InstalledPackageSummary = { - encode( - message: InstalledPackageSummary, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: InstalledPackageSummary, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.name !== "") { writer.uint32(18).string(message.name); } if (message.pkgVersionReference !== undefined) { - VersionReference.encode( - message.pkgVersionReference, - writer.uint32(26).fork() - ).ldelim(); + VersionReference.encode(message.pkgVersionReference, writer.uint32(26).fork()).ldelim(); } if (message.currentVersion !== undefined) { - PackageAppVersion.encode( - message.currentVersion, - writer.uint32(34).fork() - ).ldelim(); + PackageAppVersion.encode(message.currentVersion, writer.uint32(34).fork()).ldelim(); } if (message.iconUrl !== "") { writer.uint32(42).string(message.iconUrl); @@ -3038,30 +2792,18 @@ export const InstalledPackageSummary = { writer.uint32(58).string(message.shortDescription); } if (message.latestMatchingVersion !== undefined) { - PackageAppVersion.encode( - message.latestMatchingVersion, - writer.uint32(66).fork() - ).ldelim(); + PackageAppVersion.encode(message.latestMatchingVersion, writer.uint32(66).fork()).ldelim(); } if (message.latestVersion !== undefined) { - PackageAppVersion.encode( - message.latestVersion, - writer.uint32(74).fork() - ).ldelim(); + PackageAppVersion.encode(message.latestVersion, writer.uint32(74).fork()).ldelim(); } if (message.status !== undefined) { - InstalledPackageStatus.encode( - message.status, - writer.uint32(82).fork() - ).ldelim(); + InstalledPackageStatus.encode(message.status, writer.uint32(82).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): InstalledPackageSummary { + decode(input: _m0.Reader | Uint8Array, length?: number): InstalledPackageSummary { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseInstalledPackageSummary(); @@ -3069,25 +2811,16 @@ export const InstalledPackageSummary = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; case 2: message.name = reader.string(); break; case 3: - message.pkgVersionReference = VersionReference.decode( - reader, - reader.uint32() - ); + message.pkgVersionReference = VersionReference.decode(reader, reader.uint32()); break; case 4: - message.currentVersion = PackageAppVersion.decode( - reader, - reader.uint32() - ); + message.currentVersion = PackageAppVersion.decode(reader, reader.uint32()); break; case 5: message.iconUrl = reader.string(); @@ -3099,22 +2832,13 @@ export const InstalledPackageSummary = { message.shortDescription = reader.string(); break; case 8: - message.latestMatchingVersion = PackageAppVersion.decode( - reader, - reader.uint32() - ); + message.latestMatchingVersion = PackageAppVersion.decode(reader, reader.uint32()); break; case 9: - message.latestVersion = PackageAppVersion.decode( - reader, - reader.uint32() - ); + message.latestVersion = PackageAppVersion.decode(reader, reader.uint32()); break; case 10: - message.status = InstalledPackageStatus.decode( - reader, - reader.uint32() - ); + message.status = InstalledPackageStatus.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3137,21 +2861,15 @@ export const InstalledPackageSummary = { ? PackageAppVersion.fromJSON(object.currentVersion) : undefined, iconUrl: isSet(object.iconUrl) ? String(object.iconUrl) : "", - pkgDisplayName: isSet(object.pkgDisplayName) - ? String(object.pkgDisplayName) - : "", - shortDescription: isSet(object.shortDescription) - ? String(object.shortDescription) - : "", + pkgDisplayName: isSet(object.pkgDisplayName) ? String(object.pkgDisplayName) : "", + shortDescription: isSet(object.shortDescription) ? String(object.shortDescription) : "", latestMatchingVersion: isSet(object.latestMatchingVersion) ? PackageAppVersion.fromJSON(object.latestMatchingVersion) : undefined, latestVersion: isSet(object.latestVersion) ? PackageAppVersion.fromJSON(object.latestVersion) : undefined, - status: isSet(object.status) - ? InstalledPackageStatus.fromJSON(object.status) - : undefined, + status: isSet(object.status) ? InstalledPackageStatus.fromJSON(object.status) : undefined, }; }, @@ -3171,10 +2889,8 @@ export const InstalledPackageSummary = { ? PackageAppVersion.toJSON(message.currentVersion) : undefined); message.iconUrl !== undefined && (obj.iconUrl = message.iconUrl); - message.pkgDisplayName !== undefined && - (obj.pkgDisplayName = message.pkgDisplayName); - message.shortDescription !== undefined && - (obj.shortDescription = message.shortDescription); + message.pkgDisplayName !== undefined && (obj.pkgDisplayName = message.pkgDisplayName); + message.shortDescription !== undefined && (obj.shortDescription = message.shortDescription); message.latestMatchingVersion !== undefined && (obj.latestMatchingVersion = message.latestMatchingVersion ? PackageAppVersion.toJSON(message.latestMatchingVersion) @@ -3184,25 +2900,21 @@ export const InstalledPackageSummary = { ? PackageAppVersion.toJSON(message.latestVersion) : undefined); message.status !== undefined && - (obj.status = message.status - ? InstalledPackageStatus.toJSON(message.status) - : undefined); + (obj.status = message.status ? InstalledPackageStatus.toJSON(message.status) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): InstalledPackageSummary { const message = createBaseInstalledPackageSummary(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; message.name = object.name ?? ""; message.pkgVersionReference = - object.pkgVersionReference !== undefined && - object.pkgVersionReference !== null + object.pkgVersionReference !== undefined && object.pkgVersionReference !== null ? VersionReference.fromPartial(object.pkgVersionReference) : undefined; message.currentVersion = @@ -3213,8 +2925,7 @@ export const InstalledPackageSummary = { message.pkgDisplayName = object.pkgDisplayName ?? ""; message.shortDescription = object.shortDescription ?? ""; message.latestMatchingVersion = - object.latestMatchingVersion !== undefined && - object.latestMatchingVersion !== null + object.latestMatchingVersion !== undefined && object.latestMatchingVersion !== null ? PackageAppVersion.fromPartial(object.latestMatchingVersion) : undefined; message.latestVersion = @@ -3247,30 +2958,21 @@ function createBaseInstalledPackageDetail(): InstalledPackageDetail { } export const InstalledPackageDetail = { - encode( - message: InstalledPackageDetail, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: InstalledPackageDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.pkgVersionReference !== undefined) { - VersionReference.encode( - message.pkgVersionReference, - writer.uint32(18).fork() - ).ldelim(); + VersionReference.encode(message.pkgVersionReference, writer.uint32(18).fork()).ldelim(); } if (message.name !== "") { writer.uint32(26).string(message.name); } if (message.currentVersion !== undefined) { - PackageAppVersion.encode( - message.currentVersion, - writer.uint32(34).fork() - ).ldelim(); + PackageAppVersion.encode(message.currentVersion, writer.uint32(34).fork()).ldelim(); } if (message.valuesApplied !== "") { writer.uint32(42).string(message.valuesApplied); @@ -3278,14 +2980,11 @@ export const InstalledPackageDetail = { if (message.reconciliationOptions !== undefined) { ReconciliationOptions.encode( message.reconciliationOptions, - writer.uint32(50).fork() + writer.uint32(50).fork(), ).ldelim(); } if (message.status !== undefined) { - InstalledPackageStatus.encode( - message.status, - writer.uint32(58).fork() - ).ldelim(); + InstalledPackageStatus.encode(message.status, writer.uint32(58).fork()).ldelim(); } if (message.postInstallationNotes !== "") { writer.uint32(66).string(message.postInstallationNotes); @@ -3293,20 +2992,14 @@ export const InstalledPackageDetail = { if (message.availablePackageRef !== undefined) { AvailablePackageReference.encode( message.availablePackageRef, - writer.uint32(74).fork() + writer.uint32(74).fork(), ).ldelim(); } if (message.latestMatchingVersion !== undefined) { - PackageAppVersion.encode( - message.latestMatchingVersion, - writer.uint32(82).fork() - ).ldelim(); + PackageAppVersion.encode(message.latestMatchingVersion, writer.uint32(82).fork()).ldelim(); } if (message.latestVersion !== undefined) { - PackageAppVersion.encode( - message.latestVersion, - writer.uint32(90).fork() - ).ldelim(); + PackageAppVersion.encode(message.latestVersion, writer.uint32(90).fork()).ldelim(); } if (message.customDetail !== undefined) { Any.encode(message.customDetail, writer.uint32(114).fork()).ldelim(); @@ -3314,10 +3007,7 @@ export const InstalledPackageDetail = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): InstalledPackageDetail { + decode(input: _m0.Reader | Uint8Array, length?: number): InstalledPackageDetail { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseInstalledPackageDetail(); @@ -3325,61 +3015,37 @@ export const InstalledPackageDetail = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; case 2: - message.pkgVersionReference = VersionReference.decode( - reader, - reader.uint32() - ); + message.pkgVersionReference = VersionReference.decode(reader, reader.uint32()); break; case 3: message.name = reader.string(); break; case 4: - message.currentVersion = PackageAppVersion.decode( - reader, - reader.uint32() - ); + message.currentVersion = PackageAppVersion.decode(reader, reader.uint32()); break; case 5: message.valuesApplied = reader.string(); break; case 6: - message.reconciliationOptions = ReconciliationOptions.decode( - reader, - reader.uint32() - ); + message.reconciliationOptions = ReconciliationOptions.decode(reader, reader.uint32()); break; case 7: - message.status = InstalledPackageStatus.decode( - reader, - reader.uint32() - ); + message.status = InstalledPackageStatus.decode(reader, reader.uint32()); break; case 8: message.postInstallationNotes = reader.string(); break; case 9: - message.availablePackageRef = AvailablePackageReference.decode( - reader, - reader.uint32() - ); + message.availablePackageRef = AvailablePackageReference.decode(reader, reader.uint32()); break; case 10: - message.latestMatchingVersion = PackageAppVersion.decode( - reader, - reader.uint32() - ); + message.latestMatchingVersion = PackageAppVersion.decode(reader, reader.uint32()); break; case 11: - message.latestVersion = PackageAppVersion.decode( - reader, - reader.uint32() - ); + message.latestVersion = PackageAppVersion.decode(reader, reader.uint32()); break; case 14: message.customDetail = Any.decode(reader, reader.uint32()); @@ -3404,15 +3070,11 @@ export const InstalledPackageDetail = { currentVersion: isSet(object.currentVersion) ? PackageAppVersion.fromJSON(object.currentVersion) : undefined, - valuesApplied: isSet(object.valuesApplied) - ? String(object.valuesApplied) - : "", + valuesApplied: isSet(object.valuesApplied) ? String(object.valuesApplied) : "", reconciliationOptions: isSet(object.reconciliationOptions) ? ReconciliationOptions.fromJSON(object.reconciliationOptions) : undefined, - status: isSet(object.status) - ? InstalledPackageStatus.fromJSON(object.status) - : undefined, + status: isSet(object.status) ? InstalledPackageStatus.fromJSON(object.status) : undefined, postInstallationNotes: isSet(object.postInstallationNotes) ? String(object.postInstallationNotes) : "", @@ -3425,9 +3087,7 @@ export const InstalledPackageDetail = { latestVersion: isSet(object.latestVersion) ? PackageAppVersion.fromJSON(object.latestVersion) : undefined, - customDetail: isSet(object.customDetail) - ? Any.fromJSON(object.customDetail) - : undefined, + customDetail: isSet(object.customDetail) ? Any.fromJSON(object.customDetail) : undefined, }; }, @@ -3446,16 +3106,13 @@ export const InstalledPackageDetail = { (obj.currentVersion = message.currentVersion ? PackageAppVersion.toJSON(message.currentVersion) : undefined); - message.valuesApplied !== undefined && - (obj.valuesApplied = message.valuesApplied); + message.valuesApplied !== undefined && (obj.valuesApplied = message.valuesApplied); message.reconciliationOptions !== undefined && (obj.reconciliationOptions = message.reconciliationOptions ? ReconciliationOptions.toJSON(message.reconciliationOptions) : undefined); message.status !== undefined && - (obj.status = message.status - ? InstalledPackageStatus.toJSON(message.status) - : undefined); + (obj.status = message.status ? InstalledPackageStatus.toJSON(message.status) : undefined); message.postInstallationNotes !== undefined && (obj.postInstallationNotes = message.postInstallationNotes); message.availablePackageRef !== undefined && @@ -3471,24 +3128,20 @@ export const InstalledPackageDetail = { ? PackageAppVersion.toJSON(message.latestVersion) : undefined); message.customDetail !== undefined && - (obj.customDetail = message.customDetail - ? Any.toJSON(message.customDetail) - : undefined); + (obj.customDetail = message.customDetail ? Any.toJSON(message.customDetail) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): InstalledPackageDetail { const message = createBaseInstalledPackageDetail(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; message.pkgVersionReference = - object.pkgVersionReference !== undefined && - object.pkgVersionReference !== null + object.pkgVersionReference !== undefined && object.pkgVersionReference !== null ? VersionReference.fromPartial(object.pkgVersionReference) : undefined; message.name = object.name ?? ""; @@ -3498,8 +3151,7 @@ export const InstalledPackageDetail = { : undefined; message.valuesApplied = object.valuesApplied ?? ""; message.reconciliationOptions = - object.reconciliationOptions !== undefined && - object.reconciliationOptions !== null + object.reconciliationOptions !== undefined && object.reconciliationOptions !== null ? ReconciliationOptions.fromPartial(object.reconciliationOptions) : undefined; message.status = @@ -3508,13 +3160,11 @@ export const InstalledPackageDetail = { : undefined; message.postInstallationNotes = object.postInstallationNotes ?? ""; message.availablePackageRef = - object.availablePackageRef !== undefined && - object.availablePackageRef !== null + object.availablePackageRef !== undefined && object.availablePackageRef !== null ? AvailablePackageReference.fromPartial(object.availablePackageRef) : undefined; message.latestMatchingVersion = - object.latestMatchingVersion !== undefined && - object.latestMatchingVersion !== null + object.latestMatchingVersion !== undefined && object.latestMatchingVersion !== null ? PackageAppVersion.fromPartial(object.latestMatchingVersion) : undefined; message.latestVersion = @@ -3534,10 +3184,7 @@ function createBaseContext(): Context { } export const Context = { - encode( - message: Context, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Context, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.cluster !== "") { writer.uint32(10).string(message.cluster); } @@ -3595,10 +3242,7 @@ function createBaseAvailablePackageReference(): AvailablePackageReference { } export const AvailablePackageReference = { - encode( - message: AvailablePackageReference, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: AvailablePackageReference, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); } @@ -3611,10 +3255,7 @@ export const AvailablePackageReference = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): AvailablePackageReference { + decode(input: _m0.Reader | Uint8Array, length?: number): AvailablePackageReference { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseAvailablePackageReference(); @@ -3640,9 +3281,7 @@ export const AvailablePackageReference = { fromJSON(object: any): AvailablePackageReference { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, identifier: isSet(object.identifier) ? String(object.identifier) : "", plugin: isSet(object.plugin) ? Plugin.fromJSON(object.plugin) : undefined, }; @@ -3651,9 +3290,7 @@ export const AvailablePackageReference = { toJSON(message: AvailablePackageReference): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); message.identifier !== undefined && (obj.identifier = message.identifier); message.plugin !== undefined && (obj.plugin = message.plugin ? Plugin.toJSON(message.plugin) : undefined); @@ -3661,7 +3298,7 @@ export const AvailablePackageReference = { }, fromPartial, I>>( - object: I + object: I, ): AvailablePackageReference { const message = createBaseAvailablePackageReference(); message.context = @@ -3682,10 +3319,7 @@ function createBaseMaintainer(): Maintainer { } export const Maintainer = { - encode( - message: Maintainer, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Maintainer, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -3730,9 +3364,7 @@ export const Maintainer = { return obj; }, - fromPartial, I>>( - object: I - ): Maintainer { + fromPartial, I>>(object: I): Maintainer { const message = createBaseMaintainer(); message.name = object.name ?? ""; message.email = object.email ?? ""; @@ -3751,10 +3383,7 @@ function createBaseFilterOptions(): FilterOptions { } export const FilterOptions = { - encode( - message: FilterOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: FilterOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.query !== "") { writer.uint32(10).string(message.query); } @@ -3821,12 +3450,12 @@ export const FilterOptions = { const obj: any = {}; message.query !== undefined && (obj.query = message.query); if (message.categories) { - obj.categories = message.categories.map((e) => e); + obj.categories = message.categories.map(e => e); } else { obj.categories = []; } if (message.repositories) { - obj.repositories = message.repositories.map((e) => e); + obj.repositories = message.repositories.map(e => e); } else { obj.repositories = []; } @@ -3835,13 +3464,11 @@ export const FilterOptions = { return obj; }, - fromPartial, I>>( - object: I - ): FilterOptions { + fromPartial, I>>(object: I): FilterOptions { const message = createBaseFilterOptions(); message.query = object.query ?? ""; - message.categories = object.categories?.map((e) => e) || []; - message.repositories = object.repositories?.map((e) => e) || []; + message.categories = object.categories?.map(e => e) || []; + message.repositories = object.repositories?.map(e => e) || []; message.pkgVersion = object.pkgVersion ?? ""; message.appVersion = object.appVersion ?? ""; return message; @@ -3853,10 +3480,7 @@ function createBasePaginationOptions(): PaginationOptions { } export const PaginationOptions = { - encode( - message: PaginationOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PaginationOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.pageToken !== "") { writer.uint32(10).string(message.pageToken); } @@ -3897,14 +3521,11 @@ export const PaginationOptions = { toJSON(message: PaginationOptions): unknown { const obj: any = {}; message.pageToken !== undefined && (obj.pageToken = message.pageToken); - message.pageSize !== undefined && - (obj.pageSize = Math.round(message.pageSize)); + message.pageSize !== undefined && (obj.pageSize = Math.round(message.pageSize)); return obj; }, - fromPartial, I>>( - object: I - ): PaginationOptions { + fromPartial, I>>(object: I): PaginationOptions { const message = createBasePaginationOptions(); message.pageToken = object.pageToken ?? ""; message.pageSize = object.pageSize ?? 0; @@ -3917,10 +3538,7 @@ function createBaseInstalledPackageReference(): InstalledPackageReference { } export const InstalledPackageReference = { - encode( - message: InstalledPackageReference, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: InstalledPackageReference, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); } @@ -3933,10 +3551,7 @@ export const InstalledPackageReference = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): InstalledPackageReference { + decode(input: _m0.Reader | Uint8Array, length?: number): InstalledPackageReference { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseInstalledPackageReference(); @@ -3962,9 +3577,7 @@ export const InstalledPackageReference = { fromJSON(object: any): InstalledPackageReference { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, identifier: isSet(object.identifier) ? String(object.identifier) : "", plugin: isSet(object.plugin) ? Plugin.fromJSON(object.plugin) : undefined, }; @@ -3973,9 +3586,7 @@ export const InstalledPackageReference = { toJSON(message: InstalledPackageReference): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); message.identifier !== undefined && (obj.identifier = message.identifier); message.plugin !== undefined && (obj.plugin = message.plugin ? Plugin.toJSON(message.plugin) : undefined); @@ -3983,7 +3594,7 @@ export const InstalledPackageReference = { }, fromPartial, I>>( - object: I + object: I, ): InstalledPackageReference { const message = createBaseInstalledPackageReference(); message.context = @@ -4004,10 +3615,7 @@ function createBaseVersionReference(): VersionReference { } export const VersionReference = { - encode( - message: VersionReference, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: VersionReference, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.version !== "") { writer.uint32(10).string(message.version); } @@ -4044,9 +3652,7 @@ export const VersionReference = { return obj; }, - fromPartial, I>>( - object: I - ): VersionReference { + fromPartial, I>>(object: I): VersionReference { const message = createBaseVersionReference(); message.version = object.version ?? ""; return message; @@ -4058,10 +3664,7 @@ function createBaseInstalledPackageStatus(): InstalledPackageStatus { } export const InstalledPackageStatus = { - encode( - message: InstalledPackageStatus, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: InstalledPackageStatus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.ready === true) { writer.uint32(8).bool(message.ready); } @@ -4074,10 +3677,7 @@ export const InstalledPackageStatus = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): InstalledPackageStatus { + decode(input: _m0.Reader | Uint8Array, length?: number): InstalledPackageStatus { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseInstalledPackageStatus(); @@ -4104,9 +3704,7 @@ export const InstalledPackageStatus = { fromJSON(object: any): InstalledPackageStatus { return { ready: isSet(object.ready) ? Boolean(object.ready) : false, - reason: isSet(object.reason) - ? installedPackageStatus_StatusReasonFromJSON(object.reason) - : 0, + reason: isSet(object.reason) ? installedPackageStatus_StatusReasonFromJSON(object.reason) : 0, userReason: isSet(object.userReason) ? String(object.userReason) : "", }; }, @@ -4121,7 +3719,7 @@ export const InstalledPackageStatus = { }, fromPartial, I>>( - object: I + object: I, ): InstalledPackageStatus { const message = createBaseInstalledPackageStatus(); message.ready = object.ready ?? false; @@ -4136,10 +3734,7 @@ function createBaseReconciliationOptions(): ReconciliationOptions { } export const ReconciliationOptions = { - encode( - message: ReconciliationOptions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: ReconciliationOptions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.interval !== "") { writer.uint32(10).string(message.interval); } @@ -4152,10 +3747,7 @@ export const ReconciliationOptions = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): ReconciliationOptions { + decode(input: _m0.Reader | Uint8Array, length?: number): ReconciliationOptions { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseReconciliationOptions(); @@ -4183,9 +3775,7 @@ export const ReconciliationOptions = { return { interval: isSet(object.interval) ? String(object.interval) : "", suspend: isSet(object.suspend) ? Boolean(object.suspend) : false, - serviceAccountName: isSet(object.serviceAccountName) - ? String(object.serviceAccountName) - : "", + serviceAccountName: isSet(object.serviceAccountName) ? String(object.serviceAccountName) : "", }; }, @@ -4199,7 +3789,7 @@ export const ReconciliationOptions = { }, fromPartial, I>>( - object: I + object: I, ): ReconciliationOptions { const message = createBaseReconciliationOptions(); message.interval = object.interval ?? ""; @@ -4214,10 +3804,7 @@ function createBasePackageAppVersion(): PackageAppVersion { } export const PackageAppVersion = { - encode( - message: PackageAppVersion, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageAppVersion, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.pkgVersion !== "") { writer.uint32(10).string(message.pkgVersion); } @@ -4262,9 +3849,7 @@ export const PackageAppVersion = { return obj; }, - fromPartial, I>>( - object: I - ): PackageAppVersion { + fromPartial, I>>(object: I): PackageAppVersion { const message = createBasePackageAppVersion(); message.pkgVersion = object.pkgVersion ?? ""; message.appVersion = object.appVersion ?? ""; @@ -4277,10 +3862,7 @@ function createBaseResourceRef(): ResourceRef { } export const ResourceRef = { - encode( - message: ResourceRef, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: ResourceRef, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.apiVersion !== "") { writer.uint32(10).string(message.apiVersion); } @@ -4341,9 +3923,7 @@ export const ResourceRef = { return obj; }, - fromPartial, I>>( - object: I - ): ResourceRef { + fromPartial, I>>(object: I): ResourceRef { const message = createBaseResourceRef(); message.apiVersion = object.apiVersion ?? ""; message.kind = object.kind ?? ""; @@ -4357,39 +3937,39 @@ export const ResourceRef = { export interface PackagesService { GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } @@ -4398,117 +3978,113 @@ export class PackagesServiceClientImpl implements PackagesService { constructor(rpc: Rpc) { this.rpc = rpc; - this.GetAvailablePackageSummaries = - this.GetAvailablePackageSummaries.bind(this); + this.GetAvailablePackageSummaries = this.GetAvailablePackageSummaries.bind(this); this.GetAvailablePackageDetail = this.GetAvailablePackageDetail.bind(this); - this.GetAvailablePackageVersions = - this.GetAvailablePackageVersions.bind(this); - this.GetInstalledPackageSummaries = - this.GetInstalledPackageSummaries.bind(this); + this.GetAvailablePackageVersions = this.GetAvailablePackageVersions.bind(this); + this.GetInstalledPackageSummaries = this.GetInstalledPackageSummaries.bind(this); this.GetInstalledPackageDetail = this.GetInstalledPackageDetail.bind(this); this.CreateInstalledPackage = this.CreateInstalledPackage.bind(this); this.UpdateInstalledPackage = this.UpdateInstalledPackage.bind(this); this.DeleteInstalledPackage = this.DeleteInstalledPackage.bind(this); - this.GetInstalledPackageResourceRefs = - this.GetInstalledPackageResourceRefs.bind(this); + this.GetInstalledPackageResourceRefs = this.GetInstalledPackageResourceRefs.bind(this); } GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceGetAvailablePackageSummariesDesc, GetAvailablePackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceGetAvailablePackageDetailDesc, GetAvailablePackageDetailRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceGetAvailablePackageVersionsDesc, GetAvailablePackageVersionsRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceGetInstalledPackageSummariesDesc, GetInstalledPackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceGetInstalledPackageDetailDesc, GetInstalledPackageDetailRequest.fromPartial(request), - metadata + metadata, ); } CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceCreateInstalledPackageDesc, CreateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceUpdateInstalledPackageDesc, UpdateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceDeleteInstalledPackageDesc, DeleteInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PackagesServiceGetInstalledPackageResourceRefsDesc, GetInstalledPackageResourceRefsRequest.fromPartial(request), - metadata + metadata, ); } } @@ -4517,215 +4093,205 @@ export const PackagesServiceDesc = { serviceName: "kubeappsapis.core.packages.v1alpha1.PackagesService", }; -export const PackagesServiceGetAvailablePackageSummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageSummaries", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageSummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageSummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceGetAvailablePackageSummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageSummaries", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageSummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageSummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceGetAvailablePackageDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageDetail", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceGetAvailablePackageDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageDetail", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceGetAvailablePackageVersionsDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageVersions", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageVersionsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageVersionsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceGetAvailablePackageVersionsDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageVersions", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageVersionsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageVersionsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceGetInstalledPackageSummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageSummaries", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageSummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageSummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceGetInstalledPackageSummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageSummaries", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageSummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageSummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceGetInstalledPackageDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageDetail", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceGetInstalledPackageDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageDetail", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "CreateInstalledPackage", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return CreateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...CreateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "CreateInstalledPackage", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return CreateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...CreateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "UpdateInstalledPackage", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return UpdateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...UpdateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "UpdateInstalledPackage", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return UpdateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...UpdateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "DeleteInstalledPackage", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return DeleteInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...DeleteInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "DeleteInstalledPackage", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return DeleteInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...DeleteInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const PackagesServiceGetInstalledPackageResourceRefsDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageResourceRefs", - service: PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageResourceRefsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageResourceRefsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PackagesServiceGetInstalledPackageResourceRefsDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageResourceRefs", + service: PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageResourceRefsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageResourceRefsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -interface UnaryMethodDefinitionishR - extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } @@ -4736,7 +4302,7 @@ interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise; } @@ -4756,7 +4322,7 @@ export class GrpcWebImpl { debug?: boolean; metadata?: grpc.Metadata; - } + }, ) { this.host = host; this.options = options; @@ -4765,7 +4331,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType }; const maybeCombinedMetadata = @@ -4797,14 +4363,7 @@ export class GrpcWebImpl { } } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -4819,10 +4378,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/repositories.ts b/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/repositories.ts index bcf87786e771..b83e1db32a8d 100644 --- a/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/repositories.ts +++ b/dashboard/src/gen/kubeappsapis/core/packages/v1alpha1/repositories.ts @@ -162,7 +162,7 @@ export enum PackageRepositoryAuth_PackageRepositoryAuthType { } export function packageRepositoryAuth_PackageRepositoryAuthTypeFromJSON( - object: any + object: any, ): PackageRepositoryAuth_PackageRepositoryAuthType { switch (object) { case 0: @@ -197,7 +197,7 @@ export function packageRepositoryAuth_PackageRepositoryAuthTypeFromJSON( } export function packageRepositoryAuth_PackageRepositoryAuthTypeToJSON( - object: PackageRepositoryAuth_PackageRepositoryAuthType + object: PackageRepositoryAuth_PackageRepositoryAuthType, ): string { switch (object) { case PackageRepositoryAuth_PackageRepositoryAuthType.PACKAGE_REPOSITORY_AUTH_TYPE_UNSPECIFIED: @@ -442,7 +442,7 @@ export enum PackageRepositoryStatus_StatusReason { } export function packageRepositoryStatus_StatusReasonFromJSON( - object: any + object: any, ): PackageRepositoryStatus_StatusReason { switch (object) { case 0: @@ -465,7 +465,7 @@ export function packageRepositoryStatus_StatusReasonFromJSON( } export function packageRepositoryStatus_StatusReasonToJSON( - object: PackageRepositoryStatus_StatusReason + object: PackageRepositoryStatus_StatusReason, ): string { switch (object) { case PackageRepositoryStatus_StatusReason.STATUS_REASON_UNSPECIFIED: @@ -599,7 +599,7 @@ function createBaseAddPackageRepositoryRequest(): AddPackageRepositoryRequest { export const AddPackageRepositoryRequest = { encode( message: AddPackageRepositoryRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); @@ -623,16 +623,10 @@ export const AddPackageRepositoryRequest = { writer.uint32(58).string(message.interval); } if (message.tlsConfig !== undefined) { - PackageRepositoryTlsConfig.encode( - message.tlsConfig, - writer.uint32(66).fork() - ).ldelim(); + PackageRepositoryTlsConfig.encode(message.tlsConfig, writer.uint32(66).fork()).ldelim(); } if (message.auth !== undefined) { - PackageRepositoryAuth.encode( - message.auth, - writer.uint32(74).fork() - ).ldelim(); + PackageRepositoryAuth.encode(message.auth, writer.uint32(74).fork()).ldelim(); } if (message.plugin !== undefined) { Plugin.encode(message.plugin, writer.uint32(82).fork()).ldelim(); @@ -643,10 +637,7 @@ export const AddPackageRepositoryRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): AddPackageRepositoryRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): AddPackageRepositoryRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseAddPackageRepositoryRequest(); @@ -675,10 +666,7 @@ export const AddPackageRepositoryRequest = { message.interval = reader.string(); break; case 8: - message.tlsConfig = PackageRepositoryTlsConfig.decode( - reader, - reader.uint32() - ); + message.tlsConfig = PackageRepositoryTlsConfig.decode(reader, reader.uint32()); break; case 9: message.auth = PackageRepositoryAuth.decode(reader, reader.uint32()); @@ -699,41 +687,29 @@ export const AddPackageRepositoryRequest = { fromJSON(object: any): AddPackageRepositoryRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, name: isSet(object.name) ? String(object.name) : "", description: isSet(object.description) ? String(object.description) : "", - namespaceScoped: isSet(object.namespaceScoped) - ? Boolean(object.namespaceScoped) - : false, + namespaceScoped: isSet(object.namespaceScoped) ? Boolean(object.namespaceScoped) : false, type: isSet(object.type) ? String(object.type) : "", url: isSet(object.url) ? String(object.url) : "", interval: isSet(object.interval) ? String(object.interval) : "", tlsConfig: isSet(object.tlsConfig) ? PackageRepositoryTlsConfig.fromJSON(object.tlsConfig) : undefined, - auth: isSet(object.auth) - ? PackageRepositoryAuth.fromJSON(object.auth) - : undefined, + auth: isSet(object.auth) ? PackageRepositoryAuth.fromJSON(object.auth) : undefined, plugin: isSet(object.plugin) ? Plugin.fromJSON(object.plugin) : undefined, - customDetail: isSet(object.customDetail) - ? Any.fromJSON(object.customDetail) - : undefined, + customDetail: isSet(object.customDetail) ? Any.fromJSON(object.customDetail) : undefined, }; }, toJSON(message: AddPackageRepositoryRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); message.name !== undefined && (obj.name = message.name); - message.description !== undefined && - (obj.description = message.description); - message.namespaceScoped !== undefined && - (obj.namespaceScoped = message.namespaceScoped); + message.description !== undefined && (obj.description = message.description); + message.namespaceScoped !== undefined && (obj.namespaceScoped = message.namespaceScoped); message.type !== undefined && (obj.type = message.type); message.url !== undefined && (obj.url = message.url); message.interval !== undefined && (obj.interval = message.interval); @@ -742,20 +718,16 @@ export const AddPackageRepositoryRequest = { ? PackageRepositoryTlsConfig.toJSON(message.tlsConfig) : undefined); message.auth !== undefined && - (obj.auth = message.auth - ? PackageRepositoryAuth.toJSON(message.auth) - : undefined); + (obj.auth = message.auth ? PackageRepositoryAuth.toJSON(message.auth) : undefined); message.plugin !== undefined && (obj.plugin = message.plugin ? Plugin.toJSON(message.plugin) : undefined); message.customDetail !== undefined && - (obj.customDetail = message.customDetail - ? Any.toJSON(message.customDetail) - : undefined); + (obj.customDetail = message.customDetail ? Any.toJSON(message.customDetail) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): AddPackageRepositoryRequest { const message = createBaseAddPackageRepositoryRequest(); message.context = @@ -799,7 +771,7 @@ function createBasePackageRepositoryTlsConfig(): PackageRepositoryTlsConfig { export const PackageRepositoryTlsConfig = { encode( message: PackageRepositoryTlsConfig, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.insecureSkipVerify === true) { writer.uint32(8).bool(message.insecureSkipVerify); @@ -808,18 +780,12 @@ export const PackageRepositoryTlsConfig = { writer.uint32(18).string(message.certAuthority); } if (message.secretRef !== undefined) { - SecretKeyReference.encode( - message.secretRef, - writer.uint32(26).fork() - ).ldelim(); + SecretKeyReference.encode(message.secretRef, writer.uint32(26).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryTlsConfig { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryTlsConfig { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryTlsConfig(); @@ -833,10 +799,7 @@ export const PackageRepositoryTlsConfig = { message.certAuthority = reader.string(); break; case 3: - message.secretRef = SecretKeyReference.decode( - reader, - reader.uint32() - ); + message.secretRef = SecretKeyReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -851,9 +814,7 @@ export const PackageRepositoryTlsConfig = { insecureSkipVerify: isSet(object.insecureSkipVerify) ? Boolean(object.insecureSkipVerify) : false, - certAuthority: isSet(object.certAuthority) - ? String(object.certAuthority) - : undefined, + certAuthority: isSet(object.certAuthority) ? String(object.certAuthority) : undefined, secretRef: isSet(object.secretRef) ? SecretKeyReference.fromJSON(object.secretRef) : undefined, @@ -864,8 +825,7 @@ export const PackageRepositoryTlsConfig = { const obj: any = {}; message.insecureSkipVerify !== undefined && (obj.insecureSkipVerify = message.insecureSkipVerify); - message.certAuthority !== undefined && - (obj.certAuthority = message.certAuthority); + message.certAuthority !== undefined && (obj.certAuthority = message.certAuthority); message.secretRef !== undefined && (obj.secretRef = message.secretRef ? SecretKeyReference.toJSON(message.secretRef) @@ -874,7 +834,7 @@ export const PackageRepositoryTlsConfig = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryTlsConfig { const message = createBasePackageRepositoryTlsConfig(); message.insecureSkipVerify = object.insecureSkipVerify ?? false; @@ -902,48 +862,30 @@ function createBasePackageRepositoryAuth(): PackageRepositoryAuth { } export const PackageRepositoryAuth = { - encode( - message: PackageRepositoryAuth, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryAuth, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.type !== 0) { writer.uint32(8).int32(message.type); } if (message.usernamePassword !== undefined) { - UsernamePassword.encode( - message.usernamePassword, - writer.uint32(18).fork() - ).ldelim(); + UsernamePassword.encode(message.usernamePassword, writer.uint32(18).fork()).ldelim(); } if (message.tlsCertKey !== undefined) { TlsCertKey.encode(message.tlsCertKey, writer.uint32(26).fork()).ldelim(); } if (message.dockerCreds !== undefined) { - DockerCredentials.encode( - message.dockerCreds, - writer.uint32(34).fork() - ).ldelim(); + DockerCredentials.encode(message.dockerCreds, writer.uint32(34).fork()).ldelim(); } if (message.header !== undefined) { writer.uint32(42).string(message.header); } if (message.secretRef !== undefined) { - SecretKeyReference.encode( - message.secretRef, - writer.uint32(50).fork() - ).ldelim(); + SecretKeyReference.encode(message.secretRef, writer.uint32(50).fork()).ldelim(); } if (message.sshCreds !== undefined) { - SshCredentials.encode( - message.sshCreds, - writer.uint32(66).fork() - ).ldelim(); + SshCredentials.encode(message.sshCreds, writer.uint32(66).fork()).ldelim(); } if (message.opaqueCreds !== undefined) { - OpaqueCredentials.encode( - message.opaqueCreds, - writer.uint32(74).fork() - ).ldelim(); + OpaqueCredentials.encode(message.opaqueCreds, writer.uint32(74).fork()).ldelim(); } if (message.passCredentials === true) { writer.uint32(56).bool(message.passCredentials); @@ -951,10 +893,7 @@ export const PackageRepositoryAuth = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryAuth { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryAuth { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryAuth(); @@ -965,37 +904,25 @@ export const PackageRepositoryAuth = { message.type = reader.int32() as any; break; case 2: - message.usernamePassword = UsernamePassword.decode( - reader, - reader.uint32() - ); + message.usernamePassword = UsernamePassword.decode(reader, reader.uint32()); break; case 3: message.tlsCertKey = TlsCertKey.decode(reader, reader.uint32()); break; case 4: - message.dockerCreds = DockerCredentials.decode( - reader, - reader.uint32() - ); + message.dockerCreds = DockerCredentials.decode(reader, reader.uint32()); break; case 5: message.header = reader.string(); break; case 6: - message.secretRef = SecretKeyReference.decode( - reader, - reader.uint32() - ); + message.secretRef = SecretKeyReference.decode(reader, reader.uint32()); break; case 8: message.sshCreds = SshCredentials.decode(reader, reader.uint32()); break; case 9: - message.opaqueCreds = OpaqueCredentials.decode( - reader, - reader.uint32() - ); + message.opaqueCreds = OpaqueCredentials.decode(reader, reader.uint32()); break; case 7: message.passCredentials = reader.bool(); @@ -1016,9 +943,7 @@ export const PackageRepositoryAuth = { usernamePassword: isSet(object.usernamePassword) ? UsernamePassword.fromJSON(object.usernamePassword) : undefined, - tlsCertKey: isSet(object.tlsCertKey) - ? TlsCertKey.fromJSON(object.tlsCertKey) - : undefined, + tlsCertKey: isSet(object.tlsCertKey) ? TlsCertKey.fromJSON(object.tlsCertKey) : undefined, dockerCreds: isSet(object.dockerCreds) ? DockerCredentials.fromJSON(object.dockerCreds) : undefined, @@ -1026,32 +951,24 @@ export const PackageRepositoryAuth = { secretRef: isSet(object.secretRef) ? SecretKeyReference.fromJSON(object.secretRef) : undefined, - sshCreds: isSet(object.sshCreds) - ? SshCredentials.fromJSON(object.sshCreds) - : undefined, + sshCreds: isSet(object.sshCreds) ? SshCredentials.fromJSON(object.sshCreds) : undefined, opaqueCreds: isSet(object.opaqueCreds) ? OpaqueCredentials.fromJSON(object.opaqueCreds) : undefined, - passCredentials: isSet(object.passCredentials) - ? Boolean(object.passCredentials) - : false, + passCredentials: isSet(object.passCredentials) ? Boolean(object.passCredentials) : false, }; }, toJSON(message: PackageRepositoryAuth): unknown { const obj: any = {}; message.type !== undefined && - (obj.type = packageRepositoryAuth_PackageRepositoryAuthTypeToJSON( - message.type - )); + (obj.type = packageRepositoryAuth_PackageRepositoryAuthTypeToJSON(message.type)); message.usernamePassword !== undefined && (obj.usernamePassword = message.usernamePassword ? UsernamePassword.toJSON(message.usernamePassword) : undefined); message.tlsCertKey !== undefined && - (obj.tlsCertKey = message.tlsCertKey - ? TlsCertKey.toJSON(message.tlsCertKey) - : undefined); + (obj.tlsCertKey = message.tlsCertKey ? TlsCertKey.toJSON(message.tlsCertKey) : undefined); message.dockerCreds !== undefined && (obj.dockerCreds = message.dockerCreds ? DockerCredentials.toJSON(message.dockerCreds) @@ -1062,20 +979,17 @@ export const PackageRepositoryAuth = { ? SecretKeyReference.toJSON(message.secretRef) : undefined); message.sshCreds !== undefined && - (obj.sshCreds = message.sshCreds - ? SshCredentials.toJSON(message.sshCreds) - : undefined); + (obj.sshCreds = message.sshCreds ? SshCredentials.toJSON(message.sshCreds) : undefined); message.opaqueCreds !== undefined && (obj.opaqueCreds = message.opaqueCreds ? OpaqueCredentials.toJSON(message.opaqueCreds) : undefined); - message.passCredentials !== undefined && - (obj.passCredentials = message.passCredentials); + message.passCredentials !== undefined && (obj.passCredentials = message.passCredentials); return obj; }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryAuth { const message = createBasePackageRepositoryAuth(); message.type = object.type ?? 0; @@ -1114,10 +1028,7 @@ function createBaseUsernamePassword(): UsernamePassword { } export const UsernamePassword = { - encode( - message: UsernamePassword, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: UsernamePassword, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.username !== "") { writer.uint32(10).string(message.username); } @@ -1162,9 +1073,7 @@ export const UsernamePassword = { return obj; }, - fromPartial, I>>( - object: I - ): UsernamePassword { + fromPartial, I>>(object: I): UsernamePassword { const message = createBaseUsernamePassword(); message.username = object.username ?? ""; message.password = object.password ?? ""; @@ -1177,10 +1086,7 @@ function createBaseTlsCertKey(): TlsCertKey { } export const TlsCertKey = { - encode( - message: TlsCertKey, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: TlsCertKey, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.cert !== "") { writer.uint32(10).string(message.cert); } @@ -1225,9 +1131,7 @@ export const TlsCertKey = { return obj; }, - fromPartial, I>>( - object: I - ): TlsCertKey { + fromPartial, I>>(object: I): TlsCertKey { const message = createBaseTlsCertKey(); message.cert = object.cert ?? ""; message.key = object.key ?? ""; @@ -1240,10 +1144,7 @@ function createBaseDockerCredentials(): DockerCredentials { } export const DockerCredentials = { - encode( - message: DockerCredentials, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: DockerCredentials, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.server !== "") { writer.uint32(10).string(message.server); } @@ -1304,9 +1205,7 @@ export const DockerCredentials = { return obj; }, - fromPartial, I>>( - object: I - ): DockerCredentials { + fromPartial, I>>(object: I): DockerCredentials { const message = createBaseDockerCredentials(); message.server = object.server ?? ""; message.username = object.username ?? ""; @@ -1321,10 +1220,7 @@ function createBaseSshCredentials(): SshCredentials { } export const SshCredentials = { - encode( - message: SshCredentials, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: SshCredentials, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.privateKey !== "") { writer.uint32(10).string(message.privateKey); } @@ -1369,9 +1265,7 @@ export const SshCredentials = { return obj; }, - fromPartial, I>>( - object: I - ): SshCredentials { + fromPartial, I>>(object: I): SshCredentials { const message = createBaseSshCredentials(); message.privateKey = object.privateKey ?? ""; message.knownHosts = object.knownHosts ?? ""; @@ -1384,14 +1278,11 @@ function createBaseOpaqueCredentials(): OpaqueCredentials { } export const OpaqueCredentials = { - encode( - message: OpaqueCredentials, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: OpaqueCredentials, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { Object.entries(message.data).forEach(([key, value]) => { OpaqueCredentials_DataEntry.encode( { key: key as any, value }, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); }); return writer; @@ -1405,10 +1296,7 @@ export const OpaqueCredentials = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - const entry1 = OpaqueCredentials_DataEntry.decode( - reader, - reader.uint32() - ); + const entry1 = OpaqueCredentials_DataEntry.decode(reader, reader.uint32()); if (entry1.value !== undefined) { message.data[entry1.key] = entry1.value; } @@ -1424,13 +1312,10 @@ export const OpaqueCredentials = { fromJSON(object: any): OpaqueCredentials { return { data: isObject(object.data) - ? Object.entries(object.data).reduce<{ [key: string]: string }>( - (acc, [key, value]) => { - acc[key] = String(value); - return acc; - }, - {} - ) + ? Object.entries(object.data).reduce<{ [key: string]: string }>((acc, [key, value]) => { + acc[key] = String(value); + return acc; + }, {}) : {}, }; }, @@ -1446,9 +1331,7 @@ export const OpaqueCredentials = { return obj; }, - fromPartial, I>>( - object: I - ): OpaqueCredentials { + fromPartial, I>>(object: I): OpaqueCredentials { const message = createBaseOpaqueCredentials(); message.data = Object.entries(object.data ?? {}).reduce<{ [key: string]: string; @@ -1469,7 +1352,7 @@ function createBaseOpaqueCredentials_DataEntry(): OpaqueCredentials_DataEntry { export const OpaqueCredentials_DataEntry = { encode( message: OpaqueCredentials_DataEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -1480,10 +1363,7 @@ export const OpaqueCredentials_DataEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): OpaqueCredentials_DataEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): OpaqueCredentials_DataEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseOpaqueCredentials_DataEntry(); @@ -1519,7 +1399,7 @@ export const OpaqueCredentials_DataEntry = { }, fromPartial, I>>( - object: I + object: I, ): OpaqueCredentials_DataEntry { const message = createBaseOpaqueCredentials_DataEntry(); message.key = object.key ?? ""; @@ -1533,10 +1413,7 @@ function createBaseSecretKeyReference(): SecretKeyReference { } export const SecretKeyReference = { - encode( - message: SecretKeyReference, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: SecretKeyReference, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -1581,9 +1458,7 @@ export const SecretKeyReference = { return obj; }, - fromPartial, I>>( - object: I - ): SecretKeyReference { + fromPartial, I>>(object: I): SecretKeyReference { const message = createBaseSecretKeyReference(); message.name = object.name ?? ""; message.key = object.key ?? ""; @@ -1598,21 +1473,15 @@ function createBaseGetPackageRepositoryDetailRequest(): GetPackageRepositoryDeta export const GetPackageRepositoryDetailRequest = { encode( message: GetPackageRepositoryDetailRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.packageRepoRef !== undefined) { - PackageRepositoryReference.encode( - message.packageRepoRef, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryReference.encode(message.packageRepoRef, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetPackageRepositoryDetailRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetPackageRepositoryDetailRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetPackageRepositoryDetailRequest(); @@ -1620,10 +1489,7 @@ export const GetPackageRepositoryDetailRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageRepoRef = PackageRepositoryReference.decode( - reader, - reader.uint32() - ); + message.packageRepoRef = PackageRepositoryReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1650,9 +1516,9 @@ export const GetPackageRepositoryDetailRequest = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetPackageRepositoryDetailRequest { + fromPartial, I>>( + object: I, + ): GetPackageRepositoryDetailRequest { const message = createBaseGetPackageRepositoryDetailRequest(); message.packageRepoRef = object.packageRepoRef !== undefined && object.packageRepoRef !== null @@ -1669,7 +1535,7 @@ function createBaseGetPackageRepositorySummariesRequest(): GetPackageRepositoryS export const GetPackageRepositorySummariesRequest = { encode( message: GetPackageRepositorySummariesRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); @@ -1677,10 +1543,7 @@ export const GetPackageRepositorySummariesRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetPackageRepositorySummariesRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetPackageRepositorySummariesRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetPackageRepositorySummariesRequest(); @@ -1700,24 +1563,20 @@ export const GetPackageRepositorySummariesRequest = { fromJSON(object: any): GetPackageRepositorySummariesRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, }; }, toJSON(message: GetPackageRepositorySummariesRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetPackageRepositorySummariesRequest { + fromPartial, I>>( + object: I, + ): GetPackageRepositorySummariesRequest { const message = createBaseGetPackageRepositorySummariesRequest(); message.context = object.context !== undefined && object.context !== null @@ -1742,13 +1601,10 @@ function createBaseUpdatePackageRepositoryRequest(): UpdatePackageRepositoryRequ export const UpdatePackageRepositoryRequest = { encode( message: UpdatePackageRepositoryRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.packageRepoRef !== undefined) { - PackageRepositoryReference.encode( - message.packageRepoRef, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryReference.encode(message.packageRepoRef, writer.uint32(10).fork()).ldelim(); } if (message.url !== "") { writer.uint32(18).string(message.url); @@ -1760,16 +1616,10 @@ export const UpdatePackageRepositoryRequest = { writer.uint32(34).string(message.interval); } if (message.tlsConfig !== undefined) { - PackageRepositoryTlsConfig.encode( - message.tlsConfig, - writer.uint32(42).fork() - ).ldelim(); + PackageRepositoryTlsConfig.encode(message.tlsConfig, writer.uint32(42).fork()).ldelim(); } if (message.auth !== undefined) { - PackageRepositoryAuth.encode( - message.auth, - writer.uint32(50).fork() - ).ldelim(); + PackageRepositoryAuth.encode(message.auth, writer.uint32(50).fork()).ldelim(); } if (message.customDetail !== undefined) { Any.encode(message.customDetail, writer.uint32(90).fork()).ldelim(); @@ -1777,10 +1627,7 @@ export const UpdatePackageRepositoryRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): UpdatePackageRepositoryRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePackageRepositoryRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUpdatePackageRepositoryRequest(); @@ -1788,10 +1635,7 @@ export const UpdatePackageRepositoryRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageRepoRef = PackageRepositoryReference.decode( - reader, - reader.uint32() - ); + message.packageRepoRef = PackageRepositoryReference.decode(reader, reader.uint32()); break; case 2: message.url = reader.string(); @@ -1803,10 +1647,7 @@ export const UpdatePackageRepositoryRequest = { message.interval = reader.string(); break; case 5: - message.tlsConfig = PackageRepositoryTlsConfig.decode( - reader, - reader.uint32() - ); + message.tlsConfig = PackageRepositoryTlsConfig.decode(reader, reader.uint32()); break; case 6: message.auth = PackageRepositoryAuth.decode(reader, reader.uint32()); @@ -1833,12 +1674,8 @@ export const UpdatePackageRepositoryRequest = { tlsConfig: isSet(object.tlsConfig) ? PackageRepositoryTlsConfig.fromJSON(object.tlsConfig) : undefined, - auth: isSet(object.auth) - ? PackageRepositoryAuth.fromJSON(object.auth) - : undefined, - customDetail: isSet(object.customDetail) - ? Any.fromJSON(object.customDetail) - : undefined, + auth: isSet(object.auth) ? PackageRepositoryAuth.fromJSON(object.auth) : undefined, + customDetail: isSet(object.customDetail) ? Any.fromJSON(object.customDetail) : undefined, }; }, @@ -1849,26 +1686,21 @@ export const UpdatePackageRepositoryRequest = { ? PackageRepositoryReference.toJSON(message.packageRepoRef) : undefined); message.url !== undefined && (obj.url = message.url); - message.description !== undefined && - (obj.description = message.description); + message.description !== undefined && (obj.description = message.description); message.interval !== undefined && (obj.interval = message.interval); message.tlsConfig !== undefined && (obj.tlsConfig = message.tlsConfig ? PackageRepositoryTlsConfig.toJSON(message.tlsConfig) : undefined); message.auth !== undefined && - (obj.auth = message.auth - ? PackageRepositoryAuth.toJSON(message.auth) - : undefined); + (obj.auth = message.auth ? PackageRepositoryAuth.toJSON(message.auth) : undefined); message.customDetail !== undefined && - (obj.customDetail = message.customDetail - ? Any.toJSON(message.customDetail) - : undefined); + (obj.customDetail = message.customDetail ? Any.toJSON(message.customDetail) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): UpdatePackageRepositoryRequest { const message = createBaseUpdatePackageRepositoryRequest(); message.packageRepoRef = @@ -1901,21 +1733,15 @@ function createBaseDeletePackageRepositoryRequest(): DeletePackageRepositoryRequ export const DeletePackageRepositoryRequest = { encode( message: DeletePackageRepositoryRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.packageRepoRef !== undefined) { - PackageRepositoryReference.encode( - message.packageRepoRef, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryReference.encode(message.packageRepoRef, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): DeletePackageRepositoryRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): DeletePackageRepositoryRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseDeletePackageRepositoryRequest(); @@ -1923,10 +1749,7 @@ export const DeletePackageRepositoryRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageRepoRef = PackageRepositoryReference.decode( - reader, - reader.uint32() - ); + message.packageRepoRef = PackageRepositoryReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1954,7 +1777,7 @@ export const DeletePackageRepositoryRequest = { }, fromPartial, I>>( - object: I + object: I, ): DeletePackageRepositoryRequest { const message = createBaseDeletePackageRepositoryRequest(); message.packageRepoRef = @@ -1972,7 +1795,7 @@ function createBasePackageRepositoryReference(): PackageRepositoryReference { export const PackageRepositoryReference = { encode( message: PackageRepositoryReference, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); @@ -1986,10 +1809,7 @@ export const PackageRepositoryReference = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryReference { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryReference { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryReference(); @@ -2015,9 +1835,7 @@ export const PackageRepositoryReference = { fromJSON(object: any): PackageRepositoryReference { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, identifier: isSet(object.identifier) ? String(object.identifier) : "", plugin: isSet(object.plugin) ? Plugin.fromJSON(object.plugin) : undefined, }; @@ -2026,9 +1844,7 @@ export const PackageRepositoryReference = { toJSON(message: PackageRepositoryReference): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); message.identifier !== undefined && (obj.identifier = message.identifier); message.plugin !== undefined && (obj.plugin = message.plugin ? Plugin.toJSON(message.plugin) : undefined); @@ -2036,7 +1852,7 @@ export const PackageRepositoryReference = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryReference { const message = createBasePackageRepositoryReference(); message.context = @@ -2059,21 +1875,15 @@ function createBaseAddPackageRepositoryResponse(): AddPackageRepositoryResponse export const AddPackageRepositoryResponse = { encode( message: AddPackageRepositoryResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.packageRepoRef !== undefined) { - PackageRepositoryReference.encode( - message.packageRepoRef, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryReference.encode(message.packageRepoRef, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): AddPackageRepositoryResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): AddPackageRepositoryResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseAddPackageRepositoryResponse(); @@ -2081,10 +1891,7 @@ export const AddPackageRepositoryResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageRepoRef = PackageRepositoryReference.decode( - reader, - reader.uint32() - ); + message.packageRepoRef = PackageRepositoryReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2112,7 +1919,7 @@ export const AddPackageRepositoryResponse = { }, fromPartial, I>>( - object: I + object: I, ): AddPackageRepositoryResponse { const message = createBaseAddPackageRepositoryResponse(); message.packageRepoRef = @@ -2128,10 +1935,7 @@ function createBasePackageRepositoryStatus(): PackageRepositoryStatus { } export const PackageRepositoryStatus = { - encode( - message: PackageRepositoryStatus, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryStatus, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.ready === true) { writer.uint32(8).bool(message.ready); } @@ -2144,10 +1948,7 @@ export const PackageRepositoryStatus = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryStatus { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryStatus { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryStatus(); @@ -2191,7 +1992,7 @@ export const PackageRepositoryStatus = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryStatus { const message = createBasePackageRepositoryStatus(); message.ready = object.ready ?? false; @@ -2218,15 +2019,9 @@ function createBasePackageRepositoryDetail(): PackageRepositoryDetail { } export const PackageRepositoryDetail = { - encode( - message: PackageRepositoryDetail, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryDetail, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.packageRepoRef !== undefined) { - PackageRepositoryReference.encode( - message.packageRepoRef, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryReference.encode(message.packageRepoRef, writer.uint32(10).fork()).ldelim(); } if (message.name !== "") { writer.uint32(18).string(message.name); @@ -2247,33 +2042,21 @@ export const PackageRepositoryDetail = { writer.uint32(58).string(message.interval); } if (message.tlsConfig !== undefined) { - PackageRepositoryTlsConfig.encode( - message.tlsConfig, - writer.uint32(66).fork() - ).ldelim(); + PackageRepositoryTlsConfig.encode(message.tlsConfig, writer.uint32(66).fork()).ldelim(); } if (message.auth !== undefined) { - PackageRepositoryAuth.encode( - message.auth, - writer.uint32(74).fork() - ).ldelim(); + PackageRepositoryAuth.encode(message.auth, writer.uint32(74).fork()).ldelim(); } if (message.customDetail !== undefined) { Any.encode(message.customDetail, writer.uint32(82).fork()).ldelim(); } if (message.status !== undefined) { - PackageRepositoryStatus.encode( - message.status, - writer.uint32(90).fork() - ).ldelim(); + PackageRepositoryStatus.encode(message.status, writer.uint32(90).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryDetail { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryDetail { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryDetail(); @@ -2281,10 +2064,7 @@ export const PackageRepositoryDetail = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageRepoRef = PackageRepositoryReference.decode( - reader, - reader.uint32() - ); + message.packageRepoRef = PackageRepositoryReference.decode(reader, reader.uint32()); break; case 2: message.name = reader.string(); @@ -2305,10 +2085,7 @@ export const PackageRepositoryDetail = { message.interval = reader.string(); break; case 8: - message.tlsConfig = PackageRepositoryTlsConfig.decode( - reader, - reader.uint32() - ); + message.tlsConfig = PackageRepositoryTlsConfig.decode(reader, reader.uint32()); break; case 9: message.auth = PackageRepositoryAuth.decode(reader, reader.uint32()); @@ -2317,10 +2094,7 @@ export const PackageRepositoryDetail = { message.customDetail = Any.decode(reader, reader.uint32()); break; case 11: - message.status = PackageRepositoryStatus.decode( - reader, - reader.uint32() - ); + message.status = PackageRepositoryStatus.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2337,24 +2111,16 @@ export const PackageRepositoryDetail = { : undefined, name: isSet(object.name) ? String(object.name) : "", description: isSet(object.description) ? String(object.description) : "", - namespaceScoped: isSet(object.namespaceScoped) - ? Boolean(object.namespaceScoped) - : false, + namespaceScoped: isSet(object.namespaceScoped) ? Boolean(object.namespaceScoped) : false, type: isSet(object.type) ? String(object.type) : "", url: isSet(object.url) ? String(object.url) : "", interval: isSet(object.interval) ? String(object.interval) : "", tlsConfig: isSet(object.tlsConfig) ? PackageRepositoryTlsConfig.fromJSON(object.tlsConfig) : undefined, - auth: isSet(object.auth) - ? PackageRepositoryAuth.fromJSON(object.auth) - : undefined, - customDetail: isSet(object.customDetail) - ? Any.fromJSON(object.customDetail) - : undefined, - status: isSet(object.status) - ? PackageRepositoryStatus.fromJSON(object.status) - : undefined, + auth: isSet(object.auth) ? PackageRepositoryAuth.fromJSON(object.auth) : undefined, + customDetail: isSet(object.customDetail) ? Any.fromJSON(object.customDetail) : undefined, + status: isSet(object.status) ? PackageRepositoryStatus.fromJSON(object.status) : undefined, }; }, @@ -2365,10 +2131,8 @@ export const PackageRepositoryDetail = { ? PackageRepositoryReference.toJSON(message.packageRepoRef) : undefined); message.name !== undefined && (obj.name = message.name); - message.description !== undefined && - (obj.description = message.description); - message.namespaceScoped !== undefined && - (obj.namespaceScoped = message.namespaceScoped); + message.description !== undefined && (obj.description = message.description); + message.namespaceScoped !== undefined && (obj.namespaceScoped = message.namespaceScoped); message.type !== undefined && (obj.type = message.type); message.url !== undefined && (obj.url = message.url); message.interval !== undefined && (obj.interval = message.interval); @@ -2377,22 +2141,16 @@ export const PackageRepositoryDetail = { ? PackageRepositoryTlsConfig.toJSON(message.tlsConfig) : undefined); message.auth !== undefined && - (obj.auth = message.auth - ? PackageRepositoryAuth.toJSON(message.auth) - : undefined); + (obj.auth = message.auth ? PackageRepositoryAuth.toJSON(message.auth) : undefined); message.customDetail !== undefined && - (obj.customDetail = message.customDetail - ? Any.toJSON(message.customDetail) - : undefined); + (obj.customDetail = message.customDetail ? Any.toJSON(message.customDetail) : undefined); message.status !== undefined && - (obj.status = message.status - ? PackageRepositoryStatus.toJSON(message.status) - : undefined); + (obj.status = message.status ? PackageRepositoryStatus.toJSON(message.status) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryDetail { const message = createBasePackageRepositoryDetail(); message.packageRepoRef = @@ -2432,21 +2190,15 @@ function createBaseGetPackageRepositoryDetailResponse(): GetPackageRepositoryDet export const GetPackageRepositoryDetailResponse = { encode( message: GetPackageRepositoryDetailResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.detail !== undefined) { - PackageRepositoryDetail.encode( - message.detail, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryDetail.encode(message.detail, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetPackageRepositoryDetailResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetPackageRepositoryDetailResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetPackageRepositoryDetailResponse(); @@ -2454,10 +2206,7 @@ export const GetPackageRepositoryDetailResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.detail = PackageRepositoryDetail.decode( - reader, - reader.uint32() - ); + message.detail = PackageRepositoryDetail.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2469,24 +2218,20 @@ export const GetPackageRepositoryDetailResponse = { fromJSON(object: any): GetPackageRepositoryDetailResponse { return { - detail: isSet(object.detail) - ? PackageRepositoryDetail.fromJSON(object.detail) - : undefined, + detail: isSet(object.detail) ? PackageRepositoryDetail.fromJSON(object.detail) : undefined, }; }, toJSON(message: GetPackageRepositoryDetailResponse): unknown { const obj: any = {}; message.detail !== undefined && - (obj.detail = message.detail - ? PackageRepositoryDetail.toJSON(message.detail) - : undefined); + (obj.detail = message.detail ? PackageRepositoryDetail.toJSON(message.detail) : undefined); return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetPackageRepositoryDetailResponse { + fromPartial, I>>( + object: I, + ): GetPackageRepositoryDetailResponse { const message = createBaseGetPackageRepositoryDetailResponse(); message.detail = object.detail !== undefined && object.detail !== null @@ -2509,15 +2254,9 @@ function createBasePackageRepositorySummary(): PackageRepositorySummary { } export const PackageRepositorySummary = { - encode( - message: PackageRepositorySummary, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositorySummary, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.packageRepoRef !== undefined) { - PackageRepositoryReference.encode( - message.packageRepoRef, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryReference.encode(message.packageRepoRef, writer.uint32(10).fork()).ldelim(); } if (message.name !== "") { writer.uint32(18).string(message.name); @@ -2535,18 +2274,12 @@ export const PackageRepositorySummary = { writer.uint32(50).string(message.url); } if (message.status !== undefined) { - PackageRepositoryStatus.encode( - message.status, - writer.uint32(58).fork() - ).ldelim(); + PackageRepositoryStatus.encode(message.status, writer.uint32(58).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositorySummary { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositorySummary { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositorySummary(); @@ -2554,10 +2287,7 @@ export const PackageRepositorySummary = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageRepoRef = PackageRepositoryReference.decode( - reader, - reader.uint32() - ); + message.packageRepoRef = PackageRepositoryReference.decode(reader, reader.uint32()); break; case 2: message.name = reader.string(); @@ -2575,10 +2305,7 @@ export const PackageRepositorySummary = { message.url = reader.string(); break; case 7: - message.status = PackageRepositoryStatus.decode( - reader, - reader.uint32() - ); + message.status = PackageRepositoryStatus.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2595,14 +2322,10 @@ export const PackageRepositorySummary = { : undefined, name: isSet(object.name) ? String(object.name) : "", description: isSet(object.description) ? String(object.description) : "", - namespaceScoped: isSet(object.namespaceScoped) - ? Boolean(object.namespaceScoped) - : false, + namespaceScoped: isSet(object.namespaceScoped) ? Boolean(object.namespaceScoped) : false, type: isSet(object.type) ? String(object.type) : "", url: isSet(object.url) ? String(object.url) : "", - status: isSet(object.status) - ? PackageRepositoryStatus.fromJSON(object.status) - : undefined, + status: isSet(object.status) ? PackageRepositoryStatus.fromJSON(object.status) : undefined, }; }, @@ -2613,21 +2336,17 @@ export const PackageRepositorySummary = { ? PackageRepositoryReference.toJSON(message.packageRepoRef) : undefined); message.name !== undefined && (obj.name = message.name); - message.description !== undefined && - (obj.description = message.description); - message.namespaceScoped !== undefined && - (obj.namespaceScoped = message.namespaceScoped); + message.description !== undefined && (obj.description = message.description); + message.namespaceScoped !== undefined && (obj.namespaceScoped = message.namespaceScoped); message.type !== undefined && (obj.type = message.type); message.url !== undefined && (obj.url = message.url); message.status !== undefined && - (obj.status = message.status - ? PackageRepositoryStatus.toJSON(message.status) - : undefined); + (obj.status = message.status ? PackageRepositoryStatus.toJSON(message.status) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): PackageRepositorySummary { const message = createBasePackageRepositorySummary(); message.packageRepoRef = @@ -2654,7 +2373,7 @@ function createBaseGetPackageRepositorySummariesResponse(): GetPackageRepository export const GetPackageRepositorySummariesResponse = { encode( message: GetPackageRepositorySummariesResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.packageRepositorySummaries) { PackageRepositorySummary.encode(v!, writer.uint32(10).fork()).ldelim(); @@ -2662,10 +2381,7 @@ export const GetPackageRepositorySummariesResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetPackageRepositorySummariesResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetPackageRepositorySummariesResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetPackageRepositorySummariesResponse(); @@ -2674,7 +2390,7 @@ export const GetPackageRepositorySummariesResponse = { switch (tag >>> 3) { case 1: message.packageRepositorySummaries.push( - PackageRepositorySummary.decode(reader, reader.uint32()) + PackageRepositorySummary.decode(reader, reader.uint32()), ); break; default: @@ -2687,12 +2403,8 @@ export const GetPackageRepositorySummariesResponse = { fromJSON(object: any): GetPackageRepositorySummariesResponse { return { - packageRepositorySummaries: Array.isArray( - object?.packageRepositorySummaries - ) - ? object.packageRepositorySummaries.map((e: any) => - PackageRepositorySummary.fromJSON(e) - ) + packageRepositorySummaries: Array.isArray(object?.packageRepositorySummaries) + ? object.packageRepositorySummaries.map((e: any) => PackageRepositorySummary.fromJSON(e)) : [], }; }, @@ -2700,8 +2412,8 @@ export const GetPackageRepositorySummariesResponse = { toJSON(message: GetPackageRepositorySummariesResponse): unknown { const obj: any = {}; if (message.packageRepositorySummaries) { - obj.packageRepositorySummaries = message.packageRepositorySummaries.map( - (e) => (e ? PackageRepositorySummary.toJSON(e) : undefined) + obj.packageRepositorySummaries = message.packageRepositorySummaries.map(e => + e ? PackageRepositorySummary.toJSON(e) : undefined, ); } else { obj.packageRepositorySummaries = []; @@ -2709,14 +2421,12 @@ export const GetPackageRepositorySummariesResponse = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetPackageRepositorySummariesResponse { + fromPartial, I>>( + object: I, + ): GetPackageRepositorySummariesResponse { const message = createBaseGetPackageRepositorySummariesResponse(); message.packageRepositorySummaries = - object.packageRepositorySummaries?.map((e) => - PackageRepositorySummary.fromPartial(e) - ) || []; + object.packageRepositorySummaries?.map(e => PackageRepositorySummary.fromPartial(e)) || []; return message; }, }; @@ -2728,21 +2438,15 @@ function createBaseUpdatePackageRepositoryResponse(): UpdatePackageRepositoryRes export const UpdatePackageRepositoryResponse = { encode( message: UpdatePackageRepositoryResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.packageRepoRef !== undefined) { - PackageRepositoryReference.encode( - message.packageRepoRef, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryReference.encode(message.packageRepoRef, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): UpdatePackageRepositoryResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): UpdatePackageRepositoryResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseUpdatePackageRepositoryResponse(); @@ -2750,10 +2454,7 @@ export const UpdatePackageRepositoryResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.packageRepoRef = PackageRepositoryReference.decode( - reader, - reader.uint32() - ); + message.packageRepoRef = PackageRepositoryReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -2781,7 +2482,7 @@ export const UpdatePackageRepositoryResponse = { }, fromPartial, I>>( - object: I + object: I, ): UpdatePackageRepositoryResponse { const message = createBaseUpdatePackageRepositoryResponse(); message.packageRepoRef = @@ -2797,17 +2498,11 @@ function createBaseDeletePackageRepositoryResponse(): DeletePackageRepositoryRes } export const DeletePackageRepositoryResponse = { - encode( - _: DeletePackageRepositoryResponse, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(_: DeletePackageRepositoryResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): DeletePackageRepositoryResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): DeletePackageRepositoryResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseDeletePackageRepositoryResponse(); @@ -2832,7 +2527,7 @@ export const DeletePackageRepositoryResponse = { }, fromPartial, I>>( - _: I + _: I, ): DeletePackageRepositoryResponse { const message = createBaseDeletePackageRepositoryResponse(); return message; @@ -2843,23 +2538,23 @@ export const DeletePackageRepositoryResponse = { export interface RepositoriesService { AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } @@ -2869,66 +2564,64 @@ export class RepositoriesServiceClientImpl implements RepositoriesService { constructor(rpc: Rpc) { this.rpc = rpc; this.AddPackageRepository = this.AddPackageRepository.bind(this); - this.GetPackageRepositoryDetail = - this.GetPackageRepositoryDetail.bind(this); - this.GetPackageRepositorySummaries = - this.GetPackageRepositorySummaries.bind(this); + this.GetPackageRepositoryDetail = this.GetPackageRepositoryDetail.bind(this); + this.GetPackageRepositorySummaries = this.GetPackageRepositorySummaries.bind(this); this.UpdatePackageRepository = this.UpdatePackageRepository.bind(this); this.DeletePackageRepository = this.DeletePackageRepository.bind(this); } AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( RepositoriesServiceAddPackageRepositoryDesc, AddPackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( RepositoriesServiceGetPackageRepositoryDetailDesc, GetPackageRepositoryDetailRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( RepositoriesServiceGetPackageRepositorySummariesDesc, GetPackageRepositorySummariesRequest.fromPartial(request), - metadata + metadata, ); } UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( RepositoriesServiceUpdatePackageRepositoryDesc, UpdatePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( RepositoriesServiceDeletePackageRepositoryDesc, DeletePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } } @@ -2937,123 +2630,117 @@ export const RepositoriesServiceDesc = { serviceName: "kubeappsapis.core.packages.v1alpha1.RepositoriesService", }; -export const RepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "AddPackageRepository", - service: RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return AddPackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...AddPackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const RepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "AddPackageRepository", + service: RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return AddPackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...AddPackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const RepositoriesServiceGetPackageRepositoryDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetPackageRepositoryDetail", - service: RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetPackageRepositoryDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetPackageRepositoryDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const RepositoriesServiceGetPackageRepositoryDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetPackageRepositoryDetail", + service: RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetPackageRepositoryDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetPackageRepositoryDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const RepositoriesServiceGetPackageRepositorySummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetPackageRepositorySummaries", - service: RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetPackageRepositorySummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetPackageRepositorySummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const RepositoriesServiceGetPackageRepositorySummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetPackageRepositorySummaries", + service: RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetPackageRepositorySummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetPackageRepositorySummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const RepositoriesServiceUpdatePackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "UpdatePackageRepository", - service: RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return UpdatePackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...UpdatePackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const RepositoriesServiceUpdatePackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "UpdatePackageRepository", + service: RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return UpdatePackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...UpdatePackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const RepositoriesServiceDeletePackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "DeletePackageRepository", - service: RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return DeletePackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...DeletePackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const RepositoriesServiceDeletePackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "DeletePackageRepository", + service: RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return DeletePackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...DeletePackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -interface UnaryMethodDefinitionishR - extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } @@ -3064,7 +2751,7 @@ interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise; } @@ -3084,7 +2771,7 @@ export class GrpcWebImpl { debug?: boolean; metadata?: grpc.Metadata; - } + }, ) { this.host = host; this.options = options; @@ -3093,7 +2780,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType }; const maybeCombinedMetadata = @@ -3125,14 +2812,7 @@ export class GrpcWebImpl { } } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -3147,10 +2827,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/kubeappsapis/core/plugins/v1alpha1/plugins.ts b/dashboard/src/gen/kubeappsapis/core/plugins/v1alpha1/plugins.ts index 50d3eb6885c0..c9f260313916 100644 --- a/dashboard/src/gen/kubeappsapis/core/plugins/v1alpha1/plugins.ts +++ b/dashboard/src/gen/kubeappsapis/core/plugins/v1alpha1/plugins.ts @@ -52,17 +52,11 @@ function createBaseGetConfiguredPluginsRequest(): GetConfiguredPluginsRequest { } export const GetConfiguredPluginsRequest = { - encode( - _: GetConfiguredPluginsRequest, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(_: GetConfiguredPluginsRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetConfiguredPluginsRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetConfiguredPluginsRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetConfiguredPluginsRequest(); @@ -87,7 +81,7 @@ export const GetConfiguredPluginsRequest = { }, fromPartial, I>>( - _: I + _: I, ): GetConfiguredPluginsRequest { const message = createBaseGetConfiguredPluginsRequest(); return message; @@ -101,7 +95,7 @@ function createBaseGetConfiguredPluginsResponse(): GetConfiguredPluginsResponse export const GetConfiguredPluginsResponse = { encode( message: GetConfiguredPluginsResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.plugins) { Plugin.encode(v!, writer.uint32(10).fork()).ldelim(); @@ -109,10 +103,7 @@ export const GetConfiguredPluginsResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetConfiguredPluginsResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetConfiguredPluginsResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetConfiguredPluginsResponse(); @@ -141,9 +132,7 @@ export const GetConfiguredPluginsResponse = { toJSON(message: GetConfiguredPluginsResponse): unknown { const obj: any = {}; if (message.plugins) { - obj.plugins = message.plugins.map((e) => - e ? Plugin.toJSON(e) : undefined - ); + obj.plugins = message.plugins.map(e => (e ? Plugin.toJSON(e) : undefined)); } else { obj.plugins = []; } @@ -151,10 +140,10 @@ export const GetConfiguredPluginsResponse = { }, fromPartial, I>>( - object: I + object: I, ): GetConfiguredPluginsResponse { const message = createBaseGetConfiguredPluginsResponse(); - message.plugins = object.plugins?.map((e) => Plugin.fromPartial(e)) || []; + message.plugins = object.plugins?.map(e => Plugin.fromPartial(e)) || []; return message; }, }; @@ -164,10 +153,7 @@ function createBasePlugin(): Plugin { } export const Plugin = { - encode( - message: Plugin, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Plugin, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -224,7 +210,7 @@ export interface PluginsService { /** GetConfiguredPlugins returns a map of short and longnames for the configured plugins. */ GetConfiguredPlugins( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } @@ -238,12 +224,12 @@ export class PluginsServiceClientImpl implements PluginsService { GetConfiguredPlugins( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( PluginsServiceGetConfiguredPluginsDesc, GetConfiguredPluginsRequest.fromPartial(request), - metadata + metadata, ); } } @@ -252,31 +238,29 @@ export const PluginsServiceDesc = { serviceName: "kubeappsapis.core.plugins.v1alpha1.PluginsService", }; -export const PluginsServiceGetConfiguredPluginsDesc: UnaryMethodDefinitionish = - { - methodName: "GetConfiguredPlugins", - service: PluginsServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetConfiguredPluginsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetConfiguredPluginsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const PluginsServiceGetConfiguredPluginsDesc: UnaryMethodDefinitionish = { + methodName: "GetConfiguredPlugins", + service: PluginsServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetConfiguredPluginsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetConfiguredPluginsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -interface UnaryMethodDefinitionishR - extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } @@ -287,7 +271,7 @@ interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise; } @@ -307,7 +291,7 @@ export class GrpcWebImpl { debug?: boolean; metadata?: grpc.Metadata; - } + }, ) { this.host = host; this.options = options; @@ -316,7 +300,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType }; const maybeCombinedMetadata = @@ -348,14 +332,7 @@ export class GrpcWebImpl { } } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -370,10 +347,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/kubeappsapis/plugins/fluxv2/packages/v1alpha1/fluxv2.ts b/dashboard/src/gen/kubeappsapis/plugins/fluxv2/packages/v1alpha1/fluxv2.ts index e4619e316c09..ceb6d23a96cd 100644 --- a/dashboard/src/gen/kubeappsapis/plugins/fluxv2/packages/v1alpha1/fluxv2.ts +++ b/dashboard/src/gen/kubeappsapis/plugins/fluxv2/packages/v1alpha1/fluxv2.ts @@ -53,7 +53,7 @@ function createBaseSetUserManagedSecretsRequest(): SetUserManagedSecretsRequest export const SetUserManagedSecretsRequest = { encode( message: SetUserManagedSecretsRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.value === true) { writer.uint32(8).bool(message.value); @@ -61,10 +61,7 @@ export const SetUserManagedSecretsRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): SetUserManagedSecretsRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): SetUserManagedSecretsRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSetUserManagedSecretsRequest(); @@ -95,7 +92,7 @@ export const SetUserManagedSecretsRequest = { }, fromPartial, I>>( - object: I + object: I, ): SetUserManagedSecretsRequest { const message = createBaseSetUserManagedSecretsRequest(); message.value = object.value ?? false; @@ -110,7 +107,7 @@ function createBaseSetUserManagedSecretsResponse(): SetUserManagedSecretsRespons export const SetUserManagedSecretsResponse = { encode( message: SetUserManagedSecretsResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.value === true) { writer.uint32(8).bool(message.value); @@ -118,10 +115,7 @@ export const SetUserManagedSecretsResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): SetUserManagedSecretsResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): SetUserManagedSecretsResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSetUserManagedSecretsResponse(); @@ -152,7 +146,7 @@ export const SetUserManagedSecretsResponse = { }, fromPartial, I>>( - object: I + object: I, ): SetUserManagedSecretsResponse { const message = createBaseSetUserManagedSecretsResponse(); message.value = object.value ?? false; @@ -164,42 +158,42 @@ export interface FluxV2PackagesService { /** GetAvailablePackageSummaries returns the available packages managed by the 'fluxv2' plugin */ GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetAvailablePackageDetail returns the package metadata managed by the 'fluxv2' plugin */ GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetAvailablePackageVersions returns the package versions managed by the 'fluxv2' plugin */ GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetInstalledPackageSummaries returns the installed packages managed by the 'fluxv2' plugin */ GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetInstalledPackageDetail returns the requested installed package managed by the 'fluxv2' plugin */ GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** CreateInstalledPackage creates an installed package based on the request. */ CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** UpdateInstalledPackage updates an installed package based on the request. */ UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** DeleteInstalledPackage deletes an installed package based on the request. */ DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** * GetInstalledPackageResourceRefs returns the references for the Kubernetes @@ -207,7 +201,7 @@ export interface FluxV2PackagesService { */ GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } @@ -216,332 +210,318 @@ export class FluxV2PackagesServiceClientImpl implements FluxV2PackagesService { constructor(rpc: Rpc) { this.rpc = rpc; - this.GetAvailablePackageSummaries = - this.GetAvailablePackageSummaries.bind(this); + this.GetAvailablePackageSummaries = this.GetAvailablePackageSummaries.bind(this); this.GetAvailablePackageDetail = this.GetAvailablePackageDetail.bind(this); - this.GetAvailablePackageVersions = - this.GetAvailablePackageVersions.bind(this); - this.GetInstalledPackageSummaries = - this.GetInstalledPackageSummaries.bind(this); + this.GetAvailablePackageVersions = this.GetAvailablePackageVersions.bind(this); + this.GetInstalledPackageSummaries = this.GetInstalledPackageSummaries.bind(this); this.GetInstalledPackageDetail = this.GetInstalledPackageDetail.bind(this); this.CreateInstalledPackage = this.CreateInstalledPackage.bind(this); this.UpdateInstalledPackage = this.UpdateInstalledPackage.bind(this); this.DeleteInstalledPackage = this.DeleteInstalledPackage.bind(this); - this.GetInstalledPackageResourceRefs = - this.GetInstalledPackageResourceRefs.bind(this); + this.GetInstalledPackageResourceRefs = this.GetInstalledPackageResourceRefs.bind(this); } GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceGetAvailablePackageSummariesDesc, GetAvailablePackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceGetAvailablePackageDetailDesc, GetAvailablePackageDetailRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceGetAvailablePackageVersionsDesc, GetAvailablePackageVersionsRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceGetInstalledPackageSummariesDesc, GetInstalledPackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceGetInstalledPackageDetailDesc, GetInstalledPackageDetailRequest.fromPartial(request), - metadata + metadata, ); } CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceCreateInstalledPackageDesc, CreateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceUpdateInstalledPackageDesc, UpdateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceDeleteInstalledPackageDesc, DeleteInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2PackagesServiceGetInstalledPackageResourceRefsDesc, GetInstalledPackageResourceRefsRequest.fromPartial(request), - metadata + metadata, ); } } export const FluxV2PackagesServiceDesc = { - serviceName: - "kubeappsapis.plugins.fluxv2.packages.v1alpha1.FluxV2PackagesService", + serviceName: "kubeappsapis.plugins.fluxv2.packages.v1alpha1.FluxV2PackagesService", }; -export const FluxV2PackagesServiceGetAvailablePackageSummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageSummaries", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageSummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageSummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceGetAvailablePackageSummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageSummaries", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageSummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageSummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceGetAvailablePackageDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageDetail", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceGetAvailablePackageDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageDetail", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceGetAvailablePackageVersionsDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageVersions", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageVersionsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageVersionsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceGetAvailablePackageVersionsDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageVersions", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageVersionsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageVersionsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceGetInstalledPackageSummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageSummaries", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageSummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageSummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceGetInstalledPackageSummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageSummaries", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageSummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageSummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceGetInstalledPackageDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageDetail", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceGetInstalledPackageDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageDetail", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "CreateInstalledPackage", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return CreateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...CreateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "CreateInstalledPackage", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return CreateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...CreateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "UpdateInstalledPackage", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return UpdateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...UpdateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "UpdateInstalledPackage", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return UpdateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...UpdateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "DeleteInstalledPackage", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return DeleteInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...DeleteInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "DeleteInstalledPackage", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return DeleteInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...DeleteInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2PackagesServiceGetInstalledPackageResourceRefsDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageResourceRefs", - service: FluxV2PackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageResourceRefsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageResourceRefsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2PackagesServiceGetInstalledPackageResourceRefsDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageResourceRefs", + service: FluxV2PackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageResourceRefsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageResourceRefsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; export interface FluxV2RepositoriesService { /** @@ -550,43 +530,39 @@ export interface FluxV2RepositoriesService { */ AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** this endpoint only exists for the purpose of integration tests */ SetUserManagedSecrets( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } -export class FluxV2RepositoriesServiceClientImpl - implements FluxV2RepositoriesService -{ +export class FluxV2RepositoriesServiceClientImpl implements FluxV2RepositoriesService { private readonly rpc: Rpc; constructor(rpc: Rpc) { this.rpc = rpc; this.AddPackageRepository = this.AddPackageRepository.bind(this); - this.GetPackageRepositoryDetail = - this.GetPackageRepositoryDetail.bind(this); - this.GetPackageRepositorySummaries = - this.GetPackageRepositorySummaries.bind(this); + this.GetPackageRepositoryDetail = this.GetPackageRepositoryDetail.bind(this); + this.GetPackageRepositorySummaries = this.GetPackageRepositorySummaries.bind(this); this.UpdatePackageRepository = this.UpdatePackageRepository.bind(this); this.DeletePackageRepository = this.DeletePackageRepository.bind(this); this.SetUserManagedSecrets = this.SetUserManagedSecrets.bind(this); @@ -594,121 +570,118 @@ export class FluxV2RepositoriesServiceClientImpl AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2RepositoriesServiceAddPackageRepositoryDesc, AddPackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2RepositoriesServiceGetPackageRepositoryDetailDesc, GetPackageRepositoryDetailRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2RepositoriesServiceGetPackageRepositorySummariesDesc, GetPackageRepositorySummariesRequest.fromPartial(request), - metadata + metadata, ); } UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2RepositoriesServiceUpdatePackageRepositoryDesc, UpdatePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2RepositoriesServiceDeletePackageRepositoryDesc, DeletePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } SetUserManagedSecrets( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( FluxV2RepositoriesServiceSetUserManagedSecretsDesc, SetUserManagedSecretsRequest.fromPartial(request), - metadata + metadata, ); } } export const FluxV2RepositoriesServiceDesc = { - serviceName: - "kubeappsapis.plugins.fluxv2.packages.v1alpha1.FluxV2RepositoriesService", + serviceName: "kubeappsapis.plugins.fluxv2.packages.v1alpha1.FluxV2RepositoriesService", }; -export const FluxV2RepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "AddPackageRepository", - service: FluxV2RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return AddPackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...AddPackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2RepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "AddPackageRepository", + service: FluxV2RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return AddPackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...AddPackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2RepositoriesServiceGetPackageRepositoryDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetPackageRepositoryDetail", - service: FluxV2RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetPackageRepositoryDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetPackageRepositoryDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2RepositoriesServiceGetPackageRepositoryDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetPackageRepositoryDetail", + service: FluxV2RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetPackageRepositoryDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetPackageRepositoryDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; export const FluxV2RepositoriesServiceGetPackageRepositorySummariesDesc: UnaryMethodDefinitionish = { @@ -733,77 +706,73 @@ export const FluxV2RepositoriesServiceGetPackageRepositorySummariesDesc: UnaryMe } as any, }; -export const FluxV2RepositoriesServiceUpdatePackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "UpdatePackageRepository", - service: FluxV2RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return UpdatePackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...UpdatePackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2RepositoriesServiceUpdatePackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "UpdatePackageRepository", + service: FluxV2RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return UpdatePackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...UpdatePackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2RepositoriesServiceDeletePackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "DeletePackageRepository", - service: FluxV2RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return DeletePackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...DeletePackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2RepositoriesServiceDeletePackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "DeletePackageRepository", + service: FluxV2RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return DeletePackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...DeletePackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const FluxV2RepositoriesServiceSetUserManagedSecretsDesc: UnaryMethodDefinitionish = - { - methodName: "SetUserManagedSecrets", - service: FluxV2RepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return SetUserManagedSecretsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...SetUserManagedSecretsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const FluxV2RepositoriesServiceSetUserManagedSecretsDesc: UnaryMethodDefinitionish = { + methodName: "SetUserManagedSecrets", + service: FluxV2RepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return SetUserManagedSecretsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...SetUserManagedSecretsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -interface UnaryMethodDefinitionishR - extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } @@ -814,7 +783,7 @@ interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise; } @@ -834,7 +803,7 @@ export class GrpcWebImpl { debug?: boolean; metadata?: grpc.Metadata; - } + }, ) { this.host = host; this.options = options; @@ -843,7 +812,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType }; const maybeCombinedMetadata = @@ -875,14 +844,7 @@ export class GrpcWebImpl { } } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -897,10 +859,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/kubeappsapis/plugins/helm/packages/v1alpha1/helm.ts b/dashboard/src/gen/kubeappsapis/plugins/helm/packages/v1alpha1/helm.ts index f05c8a3a92e9..2327b7235b91 100644 --- a/dashboard/src/gen/kubeappsapis/plugins/helm/packages/v1alpha1/helm.ts +++ b/dashboard/src/gen/kubeappsapis/plugins/helm/packages/v1alpha1/helm.ts @@ -127,7 +127,7 @@ function createBaseInstalledPackageDetailCustomDataHelm(): InstalledPackageDetai export const InstalledPackageDetailCustomDataHelm = { encode( message: InstalledPackageDetailCustomDataHelm, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.releaseRevision !== 0) { writer.uint32(16).int32(message.releaseRevision); @@ -135,10 +135,7 @@ export const InstalledPackageDetailCustomDataHelm = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): InstalledPackageDetailCustomDataHelm { + decode(input: _m0.Reader | Uint8Array, length?: number): InstalledPackageDetailCustomDataHelm { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseInstalledPackageDetailCustomDataHelm(); @@ -158,9 +155,7 @@ export const InstalledPackageDetailCustomDataHelm = { fromJSON(object: any): InstalledPackageDetailCustomDataHelm { return { - releaseRevision: isSet(object.releaseRevision) - ? Number(object.releaseRevision) - : 0, + releaseRevision: isSet(object.releaseRevision) ? Number(object.releaseRevision) : 0, }; }, @@ -171,9 +166,9 @@ export const InstalledPackageDetailCustomDataHelm = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): InstalledPackageDetailCustomDataHelm { + fromPartial, I>>( + object: I, + ): InstalledPackageDetailCustomDataHelm { const message = createBaseInstalledPackageDetailCustomDataHelm(); message.releaseRevision = object.releaseRevision ?? 0; return message; @@ -187,12 +182,12 @@ function createBaseRollbackInstalledPackageRequest(): RollbackInstalledPackageRe export const RollbackInstalledPackageRequest = { encode( message: RollbackInstalledPackageRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.releaseRevision !== 0) { @@ -201,10 +196,7 @@ export const RollbackInstalledPackageRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): RollbackInstalledPackageRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): RollbackInstalledPackageRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseRollbackInstalledPackageRequest(); @@ -212,10 +204,7 @@ export const RollbackInstalledPackageRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; case 2: message.releaseRevision = reader.int32(); @@ -233,9 +222,7 @@ export const RollbackInstalledPackageRequest = { installedPackageRef: isSet(object.installedPackageRef) ? InstalledPackageReference.fromJSON(object.installedPackageRef) : undefined, - releaseRevision: isSet(object.releaseRevision) - ? Number(object.releaseRevision) - : 0, + releaseRevision: isSet(object.releaseRevision) ? Number(object.releaseRevision) : 0, }; }, @@ -251,12 +238,11 @@ export const RollbackInstalledPackageRequest = { }, fromPartial, I>>( - object: I + object: I, ): RollbackInstalledPackageRequest { const message = createBaseRollbackInstalledPackageRequest(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; message.releaseRevision = object.releaseRevision ?? 0; @@ -271,21 +257,18 @@ function createBaseRollbackInstalledPackageResponse(): RollbackInstalledPackageR export const RollbackInstalledPackageResponse = { encode( message: RollbackInstalledPackageResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): RollbackInstalledPackageResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): RollbackInstalledPackageResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseRollbackInstalledPackageResponse(); @@ -293,10 +276,7 @@ export const RollbackInstalledPackageResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -323,13 +303,12 @@ export const RollbackInstalledPackageResponse = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): RollbackInstalledPackageResponse { + fromPartial, I>>( + object: I, + ): RollbackInstalledPackageResponse { const message = createBaseRollbackInstalledPackageResponse(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; return message; @@ -343,7 +322,7 @@ function createBaseSetUserManagedSecretsRequest(): SetUserManagedSecretsRequest export const SetUserManagedSecretsRequest = { encode( message: SetUserManagedSecretsRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.value === true) { writer.uint32(8).bool(message.value); @@ -351,10 +330,7 @@ export const SetUserManagedSecretsRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): SetUserManagedSecretsRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): SetUserManagedSecretsRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSetUserManagedSecretsRequest(); @@ -385,7 +361,7 @@ export const SetUserManagedSecretsRequest = { }, fromPartial, I>>( - object: I + object: I, ): SetUserManagedSecretsRequest { const message = createBaseSetUserManagedSecretsRequest(); message.value = object.value ?? false; @@ -400,7 +376,7 @@ function createBaseSetUserManagedSecretsResponse(): SetUserManagedSecretsRespons export const SetUserManagedSecretsResponse = { encode( message: SetUserManagedSecretsResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.value === true) { writer.uint32(8).bool(message.value); @@ -408,10 +384,7 @@ export const SetUserManagedSecretsResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): SetUserManagedSecretsResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): SetUserManagedSecretsResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSetUserManagedSecretsResponse(); @@ -442,7 +415,7 @@ export const SetUserManagedSecretsResponse = { }, fromPartial, I>>( - object: I + object: I, ): SetUserManagedSecretsResponse { const message = createBaseSetUserManagedSecretsResponse(); message.value = object.value ?? false; @@ -460,10 +433,7 @@ function createBaseRepositoryCustomDetails(): RepositoryCustomDetails { } export const RepositoryCustomDetails = { - encode( - message: RepositoryCustomDetails, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: RepositoryCustomDetails, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.dockerRegistrySecrets) { writer.uint32(10).string(v!); } @@ -471,10 +441,7 @@ export const RepositoryCustomDetails = { writer.uint32(18).string(v!); } if (message.filterRule !== undefined) { - RepositoryFilterRule.encode( - message.filterRule, - writer.uint32(26).fork() - ).ldelim(); + RepositoryFilterRule.encode(message.filterRule, writer.uint32(26).fork()).ldelim(); } if (message.performValidation === true) { writer.uint32(32).bool(message.performValidation); @@ -482,10 +449,7 @@ export const RepositoryCustomDetails = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): RepositoryCustomDetails { + decode(input: _m0.Reader | Uint8Array, length?: number): RepositoryCustomDetails { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseRepositoryCustomDetails(); @@ -499,10 +463,7 @@ export const RepositoryCustomDetails = { message.ociRepositories.push(reader.string()); break; case 3: - message.filterRule = RepositoryFilterRule.decode( - reader, - reader.uint32() - ); + message.filterRule = RepositoryFilterRule.decode(reader, reader.uint32()); break; case 4: message.performValidation = reader.bool(); @@ -535,12 +496,12 @@ export const RepositoryCustomDetails = { toJSON(message: RepositoryCustomDetails): unknown { const obj: any = {}; if (message.dockerRegistrySecrets) { - obj.dockerRegistrySecrets = message.dockerRegistrySecrets.map((e) => e); + obj.dockerRegistrySecrets = message.dockerRegistrySecrets.map(e => e); } else { obj.dockerRegistrySecrets = []; } if (message.ociRepositories) { - obj.ociRepositories = message.ociRepositories.map((e) => e); + obj.ociRepositories = message.ociRepositories.map(e => e); } else { obj.ociRepositories = []; } @@ -548,18 +509,16 @@ export const RepositoryCustomDetails = { (obj.filterRule = message.filterRule ? RepositoryFilterRule.toJSON(message.filterRule) : undefined); - message.performValidation !== undefined && - (obj.performValidation = message.performValidation); + message.performValidation !== undefined && (obj.performValidation = message.performValidation); return obj; }, fromPartial, I>>( - object: I + object: I, ): RepositoryCustomDetails { const message = createBaseRepositoryCustomDetails(); - message.dockerRegistrySecrets = - object.dockerRegistrySecrets?.map((e) => e) || []; - message.ociRepositories = object.ociRepositories?.map((e) => e) || []; + message.dockerRegistrySecrets = object.dockerRegistrySecrets?.map(e => e) || []; + message.ociRepositories = object.ociRepositories?.map(e => e) || []; message.filterRule = object.filterRule !== undefined && object.filterRule !== null ? RepositoryFilterRule.fromPartial(object.filterRule) @@ -574,26 +533,20 @@ function createBaseRepositoryFilterRule(): RepositoryFilterRule { } export const RepositoryFilterRule = { - encode( - message: RepositoryFilterRule, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: RepositoryFilterRule, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.jq !== "") { writer.uint32(10).string(message.jq); } Object.entries(message.variables).forEach(([key, value]) => { RepositoryFilterRule_VariablesEntry.encode( { key: key as any, value }, - writer.uint32(34).fork() + writer.uint32(34).fork(), ).ldelim(); }); return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): RepositoryFilterRule { + decode(input: _m0.Reader | Uint8Array, length?: number): RepositoryFilterRule { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseRepositoryFilterRule(); @@ -604,10 +557,7 @@ export const RepositoryFilterRule = { message.jq = reader.string(); break; case 4: - const entry4 = RepositoryFilterRule_VariablesEntry.decode( - reader, - reader.uint32() - ); + const entry4 = RepositoryFilterRule_VariablesEntry.decode(reader, reader.uint32()); if (entry4.value !== undefined) { message.variables[entry4.key] = entry4.value; } @@ -629,7 +579,7 @@ export const RepositoryFilterRule = { acc[key] = String(value); return acc; }, - {} + {}, ) : {}, }; @@ -648,7 +598,7 @@ export const RepositoryFilterRule = { }, fromPartial, I>>( - object: I + object: I, ): RepositoryFilterRule { const message = createBaseRepositoryFilterRule(); message.jq = object.jq ?? ""; @@ -671,7 +621,7 @@ function createBaseRepositoryFilterRule_VariablesEntry(): RepositoryFilterRule_V export const RepositoryFilterRule_VariablesEntry = { encode( message: RepositoryFilterRule_VariablesEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -682,10 +632,7 @@ export const RepositoryFilterRule_VariablesEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): RepositoryFilterRule_VariablesEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): RepositoryFilterRule_VariablesEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseRepositoryFilterRule_VariablesEntry(); @@ -720,9 +667,9 @@ export const RepositoryFilterRule_VariablesEntry = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): RepositoryFilterRule_VariablesEntry { + fromPartial, I>>( + object: I, + ): RepositoryFilterRule_VariablesEntry { const message = createBaseRepositoryFilterRule_VariablesEntry(); message.key = object.key ?? ""; message.value = object.value ?? ""; @@ -734,47 +681,47 @@ export interface HelmPackagesService { /** GetAvailablePackageSummaries returns the available packages managed by the 'helm' plugin */ GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetAvailablePackageDetail returns the package details managed by the 'helm' plugin */ GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetAvailablePackageVersions returns the package versions managed by the 'helm' plugin */ GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetInstalledPackageSummaries returns the installed packages managed by the 'helm' plugin */ GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetInstalledPackageDetail returns the requested installed package managed by the 'helm' plugin */ GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** CreateInstalledPackage creates an installed package based on the request. */ CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** UpdateInstalledPackage updates an installed package based on the request. */ UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** DeleteInstalledPackage deletes an installed package based on the request. */ DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** RollbackInstalledPackage updates an installed package based on the request. */ RollbackInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** * GetInstalledPackageResourceRefs returns the references for the Kubernetes resources created by @@ -782,7 +729,7 @@ export interface HelmPackagesService { */ GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } @@ -791,409 +738,390 @@ export class HelmPackagesServiceClientImpl implements HelmPackagesService { constructor(rpc: Rpc) { this.rpc = rpc; - this.GetAvailablePackageSummaries = - this.GetAvailablePackageSummaries.bind(this); + this.GetAvailablePackageSummaries = this.GetAvailablePackageSummaries.bind(this); this.GetAvailablePackageDetail = this.GetAvailablePackageDetail.bind(this); - this.GetAvailablePackageVersions = - this.GetAvailablePackageVersions.bind(this); - this.GetInstalledPackageSummaries = - this.GetInstalledPackageSummaries.bind(this); + this.GetAvailablePackageVersions = this.GetAvailablePackageVersions.bind(this); + this.GetInstalledPackageSummaries = this.GetInstalledPackageSummaries.bind(this); this.GetInstalledPackageDetail = this.GetInstalledPackageDetail.bind(this); this.CreateInstalledPackage = this.CreateInstalledPackage.bind(this); this.UpdateInstalledPackage = this.UpdateInstalledPackage.bind(this); this.DeleteInstalledPackage = this.DeleteInstalledPackage.bind(this); this.RollbackInstalledPackage = this.RollbackInstalledPackage.bind(this); - this.GetInstalledPackageResourceRefs = - this.GetInstalledPackageResourceRefs.bind(this); + this.GetInstalledPackageResourceRefs = this.GetInstalledPackageResourceRefs.bind(this); } GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceGetAvailablePackageSummariesDesc, GetAvailablePackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceGetAvailablePackageDetailDesc, GetAvailablePackageDetailRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceGetAvailablePackageVersionsDesc, GetAvailablePackageVersionsRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceGetInstalledPackageSummariesDesc, GetInstalledPackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceGetInstalledPackageDetailDesc, GetInstalledPackageDetailRequest.fromPartial(request), - metadata + metadata, ); } CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceCreateInstalledPackageDesc, CreateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceUpdateInstalledPackageDesc, UpdateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceDeleteInstalledPackageDesc, DeleteInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } RollbackInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceRollbackInstalledPackageDesc, RollbackInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmPackagesServiceGetInstalledPackageResourceRefsDesc, GetInstalledPackageResourceRefsRequest.fromPartial(request), - metadata + metadata, ); } } export const HelmPackagesServiceDesc = { - serviceName: - "kubeappsapis.plugins.helm.packages.v1alpha1.HelmPackagesService", + serviceName: "kubeappsapis.plugins.helm.packages.v1alpha1.HelmPackagesService", }; -export const HelmPackagesServiceGetAvailablePackageSummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageSummaries", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageSummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageSummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceGetAvailablePackageSummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageSummaries", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageSummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageSummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceGetAvailablePackageDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageDetail", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceGetAvailablePackageDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageDetail", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceGetAvailablePackageVersionsDesc: UnaryMethodDefinitionish = - { - methodName: "GetAvailablePackageVersions", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetAvailablePackageVersionsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetAvailablePackageVersionsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceGetAvailablePackageVersionsDesc: UnaryMethodDefinitionish = { + methodName: "GetAvailablePackageVersions", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetAvailablePackageVersionsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetAvailablePackageVersionsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceGetInstalledPackageSummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageSummaries", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageSummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageSummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceGetInstalledPackageSummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageSummaries", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageSummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageSummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceGetInstalledPackageDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageDetail", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceGetInstalledPackageDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageDetail", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "CreateInstalledPackage", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return CreateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...CreateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "CreateInstalledPackage", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return CreateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...CreateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "UpdateInstalledPackage", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return UpdateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...UpdateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "UpdateInstalledPackage", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return UpdateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...UpdateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "DeleteInstalledPackage", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return DeleteInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...DeleteInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "DeleteInstalledPackage", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return DeleteInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...DeleteInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceRollbackInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "RollbackInstalledPackage", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return RollbackInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...RollbackInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceRollbackInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "RollbackInstalledPackage", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return RollbackInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...RollbackInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmPackagesServiceGetInstalledPackageResourceRefsDesc: UnaryMethodDefinitionish = - { - methodName: "GetInstalledPackageResourceRefs", - service: HelmPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetInstalledPackageResourceRefsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetInstalledPackageResourceRefsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmPackagesServiceGetInstalledPackageResourceRefsDesc: UnaryMethodDefinitionish = { + methodName: "GetInstalledPackageResourceRefs", + service: HelmPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetInstalledPackageResourceRefsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetInstalledPackageResourceRefsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; export interface HelmRepositoriesService { /** AddPackageRepository add an existing package repository to the set of ones already managed by the Helm plugin */ AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** this endpoint only exists for the purpose of integration tests */ SetUserManagedSecrets( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } -export class HelmRepositoriesServiceClientImpl - implements HelmRepositoriesService -{ +export class HelmRepositoriesServiceClientImpl implements HelmRepositoriesService { private readonly rpc: Rpc; constructor(rpc: Rpc) { this.rpc = rpc; this.AddPackageRepository = this.AddPackageRepository.bind(this); - this.GetPackageRepositoryDetail = - this.GetPackageRepositoryDetail.bind(this); - this.GetPackageRepositorySummaries = - this.GetPackageRepositorySummaries.bind(this); + this.GetPackageRepositoryDetail = this.GetPackageRepositoryDetail.bind(this); + this.GetPackageRepositorySummaries = this.GetPackageRepositorySummaries.bind(this); this.UpdatePackageRepository = this.UpdatePackageRepository.bind(this); this.DeletePackageRepository = this.DeletePackageRepository.bind(this); this.SetUserManagedSecrets = this.SetUserManagedSecrets.bind(this); @@ -1201,216 +1129,208 @@ export class HelmRepositoriesServiceClientImpl AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmRepositoriesServiceAddPackageRepositoryDesc, AddPackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmRepositoriesServiceGetPackageRepositoryDetailDesc, GetPackageRepositoryDetailRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmRepositoriesServiceGetPackageRepositorySummariesDesc, GetPackageRepositorySummariesRequest.fromPartial(request), - metadata + metadata, ); } UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmRepositoriesServiceUpdatePackageRepositoryDesc, UpdatePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmRepositoriesServiceDeletePackageRepositoryDesc, DeletePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } SetUserManagedSecrets( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( HelmRepositoriesServiceSetUserManagedSecretsDesc, SetUserManagedSecretsRequest.fromPartial(request), - metadata + metadata, ); } } export const HelmRepositoriesServiceDesc = { - serviceName: - "kubeappsapis.plugins.helm.packages.v1alpha1.HelmRepositoriesService", + serviceName: "kubeappsapis.plugins.helm.packages.v1alpha1.HelmRepositoriesService", }; -export const HelmRepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "AddPackageRepository", - service: HelmRepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return AddPackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...AddPackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmRepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "AddPackageRepository", + service: HelmRepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return AddPackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...AddPackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmRepositoriesServiceGetPackageRepositoryDetailDesc: UnaryMethodDefinitionish = - { - methodName: "GetPackageRepositoryDetail", - service: HelmRepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetPackageRepositoryDetailRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetPackageRepositoryDetailResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmRepositoriesServiceGetPackageRepositoryDetailDesc: UnaryMethodDefinitionish = { + methodName: "GetPackageRepositoryDetail", + service: HelmRepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetPackageRepositoryDetailRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetPackageRepositoryDetailResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmRepositoriesServiceGetPackageRepositorySummariesDesc: UnaryMethodDefinitionish = - { - methodName: "GetPackageRepositorySummaries", - service: HelmRepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetPackageRepositorySummariesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetPackageRepositorySummariesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmRepositoriesServiceGetPackageRepositorySummariesDesc: UnaryMethodDefinitionish = { + methodName: "GetPackageRepositorySummaries", + service: HelmRepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetPackageRepositorySummariesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetPackageRepositorySummariesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmRepositoriesServiceUpdatePackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "UpdatePackageRepository", - service: HelmRepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return UpdatePackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...UpdatePackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmRepositoriesServiceUpdatePackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "UpdatePackageRepository", + service: HelmRepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return UpdatePackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...UpdatePackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmRepositoriesServiceDeletePackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "DeletePackageRepository", - service: HelmRepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return DeletePackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...DeletePackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmRepositoriesServiceDeletePackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "DeletePackageRepository", + service: HelmRepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return DeletePackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...DeletePackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const HelmRepositoriesServiceSetUserManagedSecretsDesc: UnaryMethodDefinitionish = - { - methodName: "SetUserManagedSecrets", - service: HelmRepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return SetUserManagedSecretsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...SetUserManagedSecretsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const HelmRepositoriesServiceSetUserManagedSecretsDesc: UnaryMethodDefinitionish = { + methodName: "SetUserManagedSecrets", + service: HelmRepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return SetUserManagedSecretsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...SetUserManagedSecretsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -interface UnaryMethodDefinitionishR - extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } @@ -1421,7 +1341,7 @@ interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise; } @@ -1441,7 +1361,7 @@ export class GrpcWebImpl { debug?: boolean; metadata?: grpc.Metadata; - } + }, ) { this.host = host; this.options = options; @@ -1450,7 +1370,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType }; const maybeCombinedMetadata = @@ -1482,14 +1402,7 @@ export class GrpcWebImpl { } } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -1504,10 +1417,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/kubeappsapis/plugins/kapp_controller/packages/v1alpha1/kapp_controller.ts b/dashboard/src/gen/kubeappsapis/plugins/kapp_controller/packages/v1alpha1/kapp_controller.ts index c145c5ca8bac..e6f035afd9ed 100644 --- a/dashboard/src/gen/kubeappsapis/plugins/kapp_controller/packages/v1alpha1/kapp_controller.ts +++ b/dashboard/src/gen/kubeappsapis/plugins/kapp_controller/packages/v1alpha1/kapp_controller.ts @@ -36,8 +36,7 @@ import { } from "../../../../../kubeappsapis/core/packages/v1alpha1/repositories"; import { BrowserHeaders } from "browser-headers"; -export const protobufPackage = - "kubeappsapis.plugins.kapp_controller.packages.v1alpha1"; +export const protobufPackage = "kubeappsapis.plugins.kapp_controller.packages.v1alpha1"; /** * custom fields to support other carvel repository types @@ -117,21 +116,15 @@ function createBasePackageRepositoryCustomDetail(): PackageRepositoryCustomDetai export const PackageRepositoryCustomDetail = { encode( message: PackageRepositoryCustomDetail, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.fetch !== undefined) { - PackageRepositoryFetch.encode( - message.fetch, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryFetch.encode(message.fetch, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryCustomDetail { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryCustomDetail { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryCustomDetail(); @@ -139,10 +132,7 @@ export const PackageRepositoryCustomDetail = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.fetch = PackageRepositoryFetch.decode( - reader, - reader.uint32() - ); + message.fetch = PackageRepositoryFetch.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -154,23 +144,19 @@ export const PackageRepositoryCustomDetail = { fromJSON(object: any): PackageRepositoryCustomDetail { return { - fetch: isSet(object.fetch) - ? PackageRepositoryFetch.fromJSON(object.fetch) - : undefined, + fetch: isSet(object.fetch) ? PackageRepositoryFetch.fromJSON(object.fetch) : undefined, }; }, toJSON(message: PackageRepositoryCustomDetail): unknown { const obj: any = {}; message.fetch !== undefined && - (obj.fetch = message.fetch - ? PackageRepositoryFetch.toJSON(message.fetch) - : undefined); + (obj.fetch = message.fetch ? PackageRepositoryFetch.toJSON(message.fetch) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryCustomDetail { const message = createBasePackageRepositoryCustomDetail(); message.fetch = @@ -192,47 +178,26 @@ function createBasePackageRepositoryFetch(): PackageRepositoryFetch { } export const PackageRepositoryFetch = { - encode( - message: PackageRepositoryFetch, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryFetch, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.imgpkgBundle !== undefined) { - PackageRepositoryImgpkg.encode( - message.imgpkgBundle, - writer.uint32(10).fork() - ).ldelim(); + PackageRepositoryImgpkg.encode(message.imgpkgBundle, writer.uint32(10).fork()).ldelim(); } if (message.image !== undefined) { - PackageRepositoryImage.encode( - message.image, - writer.uint32(18).fork() - ).ldelim(); + PackageRepositoryImage.encode(message.image, writer.uint32(18).fork()).ldelim(); } if (message.git !== undefined) { - PackageRepositoryGit.encode( - message.git, - writer.uint32(26).fork() - ).ldelim(); + PackageRepositoryGit.encode(message.git, writer.uint32(26).fork()).ldelim(); } if (message.http !== undefined) { - PackageRepositoryHttp.encode( - message.http, - writer.uint32(34).fork() - ).ldelim(); + PackageRepositoryHttp.encode(message.http, writer.uint32(34).fork()).ldelim(); } if (message.inline !== undefined) { - PackageRepositoryInline.encode( - message.inline, - writer.uint32(42).fork() - ).ldelim(); + PackageRepositoryInline.encode(message.inline, writer.uint32(42).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryFetch { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryFetch { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryFetch(); @@ -240,16 +205,10 @@ export const PackageRepositoryFetch = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.imgpkgBundle = PackageRepositoryImgpkg.decode( - reader, - reader.uint32() - ); + message.imgpkgBundle = PackageRepositoryImgpkg.decode(reader, reader.uint32()); break; case 2: - message.image = PackageRepositoryImage.decode( - reader, - reader.uint32() - ); + message.image = PackageRepositoryImage.decode(reader, reader.uint32()); break; case 3: message.git = PackageRepositoryGit.decode(reader, reader.uint32()); @@ -258,10 +217,7 @@ export const PackageRepositoryFetch = { message.http = PackageRepositoryHttp.decode(reader, reader.uint32()); break; case 5: - message.inline = PackageRepositoryInline.decode( - reader, - reader.uint32() - ); + message.inline = PackageRepositoryInline.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -276,18 +232,10 @@ export const PackageRepositoryFetch = { imgpkgBundle: isSet(object.imgpkgBundle) ? PackageRepositoryImgpkg.fromJSON(object.imgpkgBundle) : undefined, - image: isSet(object.image) - ? PackageRepositoryImage.fromJSON(object.image) - : undefined, - git: isSet(object.git) - ? PackageRepositoryGit.fromJSON(object.git) - : undefined, - http: isSet(object.http) - ? PackageRepositoryHttp.fromJSON(object.http) - : undefined, - inline: isSet(object.inline) - ? PackageRepositoryInline.fromJSON(object.inline) - : undefined, + image: isSet(object.image) ? PackageRepositoryImage.fromJSON(object.image) : undefined, + git: isSet(object.git) ? PackageRepositoryGit.fromJSON(object.git) : undefined, + http: isSet(object.http) ? PackageRepositoryHttp.fromJSON(object.http) : undefined, + inline: isSet(object.inline) ? PackageRepositoryInline.fromJSON(object.inline) : undefined, }; }, @@ -298,26 +246,18 @@ export const PackageRepositoryFetch = { ? PackageRepositoryImgpkg.toJSON(message.imgpkgBundle) : undefined); message.image !== undefined && - (obj.image = message.image - ? PackageRepositoryImage.toJSON(message.image) - : undefined); + (obj.image = message.image ? PackageRepositoryImage.toJSON(message.image) : undefined); message.git !== undefined && - (obj.git = message.git - ? PackageRepositoryGit.toJSON(message.git) - : undefined); + (obj.git = message.git ? PackageRepositoryGit.toJSON(message.git) : undefined); message.http !== undefined && - (obj.http = message.http - ? PackageRepositoryHttp.toJSON(message.http) - : undefined); + (obj.http = message.http ? PackageRepositoryHttp.toJSON(message.http) : undefined); message.inline !== undefined && - (obj.inline = message.inline - ? PackageRepositoryInline.toJSON(message.inline) - : undefined); + (obj.inline = message.inline ? PackageRepositoryInline.toJSON(message.inline) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryFetch { const message = createBasePackageRepositoryFetch(); message.imgpkgBundle = @@ -349,23 +289,14 @@ function createBasePackageRepositoryImgpkg(): PackageRepositoryImgpkg { } export const PackageRepositoryImgpkg = { - encode( - message: PackageRepositoryImgpkg, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryImgpkg, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.tagSelection !== undefined) { - VersionSelection.encode( - message.tagSelection, - writer.uint32(10).fork() - ).ldelim(); + VersionSelection.encode(message.tagSelection, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryImgpkg { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryImgpkg { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryImgpkg(); @@ -373,10 +304,7 @@ export const PackageRepositoryImgpkg = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tagSelection = VersionSelection.decode( - reader, - reader.uint32() - ); + message.tagSelection = VersionSelection.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -404,7 +332,7 @@ export const PackageRepositoryImgpkg = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryImgpkg { const message = createBasePackageRepositoryImgpkg(); message.tagSelection = @@ -420,15 +348,9 @@ function createBasePackageRepositoryImage(): PackageRepositoryImage { } export const PackageRepositoryImage = { - encode( - message: PackageRepositoryImage, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryImage, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.tagSelection !== undefined) { - VersionSelection.encode( - message.tagSelection, - writer.uint32(10).fork() - ).ldelim(); + VersionSelection.encode(message.tagSelection, writer.uint32(10).fork()).ldelim(); } if (message.subPath !== "") { writer.uint32(18).string(message.subPath); @@ -436,10 +358,7 @@ export const PackageRepositoryImage = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryImage { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryImage { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryImage(); @@ -447,10 +366,7 @@ export const PackageRepositoryImage = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.tagSelection = VersionSelection.decode( - reader, - reader.uint32() - ); + message.tagSelection = VersionSelection.decode(reader, reader.uint32()); break; case 2: message.subPath = reader.string(); @@ -483,7 +399,7 @@ export const PackageRepositoryImage = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryImage { const message = createBasePackageRepositoryImage(); message.tagSelection = @@ -505,18 +421,12 @@ function createBasePackageRepositoryGit(): PackageRepositoryGit { } export const PackageRepositoryGit = { - encode( - message: PackageRepositoryGit, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryGit, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.ref !== "") { writer.uint32(10).string(message.ref); } if (message.refSelection !== undefined) { - VersionSelection.encode( - message.refSelection, - writer.uint32(18).fork() - ).ldelim(); + VersionSelection.encode(message.refSelection, writer.uint32(18).fork()).ldelim(); } if (message.subPath !== "") { writer.uint32(26).string(message.subPath); @@ -527,10 +437,7 @@ export const PackageRepositoryGit = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryGit { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryGit { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryGit(); @@ -541,10 +448,7 @@ export const PackageRepositoryGit = { message.ref = reader.string(); break; case 2: - message.refSelection = VersionSelection.decode( - reader, - reader.uint32() - ); + message.refSelection = VersionSelection.decode(reader, reader.uint32()); break; case 3: message.subPath = reader.string(); @@ -567,9 +471,7 @@ export const PackageRepositoryGit = { ? VersionSelection.fromJSON(object.refSelection) : undefined, subPath: isSet(object.subPath) ? String(object.subPath) : "", - lfsSkipSmudge: isSet(object.lfsSkipSmudge) - ? Boolean(object.lfsSkipSmudge) - : false, + lfsSkipSmudge: isSet(object.lfsSkipSmudge) ? Boolean(object.lfsSkipSmudge) : false, }; }, @@ -581,13 +483,12 @@ export const PackageRepositoryGit = { ? VersionSelection.toJSON(message.refSelection) : undefined); message.subPath !== undefined && (obj.subPath = message.subPath); - message.lfsSkipSmudge !== undefined && - (obj.lfsSkipSmudge = message.lfsSkipSmudge); + message.lfsSkipSmudge !== undefined && (obj.lfsSkipSmudge = message.lfsSkipSmudge); return obj; }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryGit { const message = createBasePackageRepositoryGit(); message.ref = object.ref ?? ""; @@ -606,10 +507,7 @@ function createBasePackageRepositoryHttp(): PackageRepositoryHttp { } export const PackageRepositoryHttp = { - encode( - message: PackageRepositoryHttp, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryHttp, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.subPath !== "") { writer.uint32(10).string(message.subPath); } @@ -619,10 +517,7 @@ export const PackageRepositoryHttp = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryHttp { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryHttp { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryHttp(); @@ -658,7 +553,7 @@ export const PackageRepositoryHttp = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryHttp { const message = createBasePackageRepositoryHttp(); message.subPath = object.subPath ?? ""; @@ -672,29 +567,20 @@ function createBasePackageRepositoryInline(): PackageRepositoryInline { } export const PackageRepositoryInline = { - encode( - message: PackageRepositoryInline, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: PackageRepositoryInline, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { Object.entries(message.paths).forEach(([key, value]) => { PackageRepositoryInline_PathsEntry.encode( { key: key as any, value }, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); }); for (const v of message.pathsFrom) { - PackageRepositoryInline_Source.encode( - v!, - writer.uint32(18).fork() - ).ldelim(); + PackageRepositoryInline_Source.encode(v!, writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryInline { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryInline { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryInline(); @@ -702,18 +588,13 @@ export const PackageRepositoryInline = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - const entry1 = PackageRepositoryInline_PathsEntry.decode( - reader, - reader.uint32() - ); + const entry1 = PackageRepositoryInline_PathsEntry.decode(reader, reader.uint32()); if (entry1.value !== undefined) { message.paths[entry1.key] = entry1.value; } break; case 2: - message.pathsFrom.push( - PackageRepositoryInline_Source.decode(reader, reader.uint32()) - ); + message.pathsFrom.push(PackageRepositoryInline_Source.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -726,18 +607,13 @@ export const PackageRepositoryInline = { fromJSON(object: any): PackageRepositoryInline { return { paths: isObject(object.paths) - ? Object.entries(object.paths).reduce<{ [key: string]: string }>( - (acc, [key, value]) => { - acc[key] = String(value); - return acc; - }, - {} - ) + ? Object.entries(object.paths).reduce<{ [key: string]: string }>((acc, [key, value]) => { + acc[key] = String(value); + return acc; + }, {}) : {}, pathsFrom: Array.isArray(object?.pathsFrom) - ? object.pathsFrom.map((e: any) => - PackageRepositoryInline_Source.fromJSON(e) - ) + ? object.pathsFrom.map((e: any) => PackageRepositoryInline_Source.fromJSON(e)) : [], }; }, @@ -751,8 +627,8 @@ export const PackageRepositoryInline = { }); } if (message.pathsFrom) { - obj.pathsFrom = message.pathsFrom.map((e) => - e ? PackageRepositoryInline_Source.toJSON(e) : undefined + obj.pathsFrom = message.pathsFrom.map(e => + e ? PackageRepositoryInline_Source.toJSON(e) : undefined, ); } else { obj.pathsFrom = []; @@ -761,7 +637,7 @@ export const PackageRepositoryInline = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryInline { const message = createBasePackageRepositoryInline(); message.paths = Object.entries(object.paths ?? {}).reduce<{ @@ -773,9 +649,7 @@ export const PackageRepositoryInline = { return acc; }, {}); message.pathsFrom = - object.pathsFrom?.map((e) => - PackageRepositoryInline_Source.fromPartial(e) - ) || []; + object.pathsFrom?.map(e => PackageRepositoryInline_Source.fromPartial(e)) || []; return message; }, }; @@ -787,7 +661,7 @@ function createBasePackageRepositoryInline_SourceRef(): PackageRepositoryInline_ export const PackageRepositoryInline_SourceRef = { encode( message: PackageRepositoryInline_SourceRef, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); @@ -798,10 +672,7 @@ export const PackageRepositoryInline_SourceRef = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryInline_SourceRef { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryInline_SourceRef { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryInline_SourceRef(); @@ -825,23 +696,20 @@ export const PackageRepositoryInline_SourceRef = { fromJSON(object: any): PackageRepositoryInline_SourceRef { return { name: isSet(object.name) ? String(object.name) : "", - directoryPath: isSet(object.directoryPath) - ? String(object.directoryPath) - : "", + directoryPath: isSet(object.directoryPath) ? String(object.directoryPath) : "", }; }, toJSON(message: PackageRepositoryInline_SourceRef): unknown { const obj: any = {}; message.name !== undefined && (obj.name = message.name); - message.directoryPath !== undefined && - (obj.directoryPath = message.directoryPath); + message.directoryPath !== undefined && (obj.directoryPath = message.directoryPath); return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): PackageRepositoryInline_SourceRef { + fromPartial, I>>( + object: I, + ): PackageRepositoryInline_SourceRef { const message = createBasePackageRepositoryInline_SourceRef(); message.name = object.name ?? ""; message.directoryPath = object.directoryPath ?? ""; @@ -856,27 +724,24 @@ function createBasePackageRepositoryInline_Source(): PackageRepositoryInline_Sou export const PackageRepositoryInline_Source = { encode( message: PackageRepositoryInline_Source, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.secretRef !== undefined) { PackageRepositoryInline_SourceRef.encode( message.secretRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } if (message.configMapRef !== undefined) { PackageRepositoryInline_SourceRef.encode( message.configMapRef, - writer.uint32(18).fork() + writer.uint32(18).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryInline_Source { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryInline_Source { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryInline_Source(); @@ -884,16 +749,10 @@ export const PackageRepositoryInline_Source = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.secretRef = PackageRepositoryInline_SourceRef.decode( - reader, - reader.uint32() - ); + message.secretRef = PackageRepositoryInline_SourceRef.decode(reader, reader.uint32()); break; case 2: - message.configMapRef = PackageRepositoryInline_SourceRef.decode( - reader, - reader.uint32() - ); + message.configMapRef = PackageRepositoryInline_SourceRef.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -928,7 +787,7 @@ export const PackageRepositoryInline_Source = { }, fromPartial, I>>( - object: I + object: I, ): PackageRepositoryInline_Source { const message = createBasePackageRepositoryInline_Source(); message.secretRef = @@ -950,7 +809,7 @@ function createBasePackageRepositoryInline_PathsEntry(): PackageRepositoryInline export const PackageRepositoryInline_PathsEntry = { encode( message: PackageRepositoryInline_PathsEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -961,10 +820,7 @@ export const PackageRepositoryInline_PathsEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): PackageRepositoryInline_PathsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): PackageRepositoryInline_PathsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBasePackageRepositoryInline_PathsEntry(); @@ -999,9 +855,9 @@ export const PackageRepositoryInline_PathsEntry = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): PackageRepositoryInline_PathsEntry { + fromPartial, I>>( + object: I, + ): PackageRepositoryInline_PathsEntry { const message = createBasePackageRepositoryInline_PathsEntry(); message.key = object.key ?? ""; message.value = object.value ?? ""; @@ -1014,15 +870,9 @@ function createBaseVersionSelection(): VersionSelection { } export const VersionSelection = { - encode( - message: VersionSelection, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: VersionSelection, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.semver !== undefined) { - VersionSelectionSemver.encode( - message.semver, - writer.uint32(10).fork() - ).ldelim(); + VersionSelectionSemver.encode(message.semver, writer.uint32(10).fork()).ldelim(); } return writer; }, @@ -1035,10 +885,7 @@ export const VersionSelection = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.semver = VersionSelectionSemver.decode( - reader, - reader.uint32() - ); + message.semver = VersionSelectionSemver.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1050,24 +897,18 @@ export const VersionSelection = { fromJSON(object: any): VersionSelection { return { - semver: isSet(object.semver) - ? VersionSelectionSemver.fromJSON(object.semver) - : undefined, + semver: isSet(object.semver) ? VersionSelectionSemver.fromJSON(object.semver) : undefined, }; }, toJSON(message: VersionSelection): unknown { const obj: any = {}; message.semver !== undefined && - (obj.semver = message.semver - ? VersionSelectionSemver.toJSON(message.semver) - : undefined); + (obj.semver = message.semver ? VersionSelectionSemver.toJSON(message.semver) : undefined); return obj; }, - fromPartial, I>>( - object: I - ): VersionSelection { + fromPartial, I>>(object: I): VersionSelection { const message = createBaseVersionSelection(); message.semver = object.semver !== undefined && object.semver !== null @@ -1082,26 +923,20 @@ function createBaseVersionSelectionSemver(): VersionSelectionSemver { } export const VersionSelectionSemver = { - encode( - message: VersionSelectionSemver, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: VersionSelectionSemver, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.constraints !== "") { writer.uint32(10).string(message.constraints); } if (message.prereleases !== undefined) { VersionSelectionSemverPrereleases.encode( message.prereleases, - writer.uint32(18).fork() + writer.uint32(18).fork(), ).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): VersionSelectionSemver { + decode(input: _m0.Reader | Uint8Array, length?: number): VersionSelectionSemver { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseVersionSelectionSemver(); @@ -1112,10 +947,7 @@ export const VersionSelectionSemver = { message.constraints = reader.string(); break; case 2: - message.prereleases = VersionSelectionSemverPrereleases.decode( - reader, - reader.uint32() - ); + message.prereleases = VersionSelectionSemverPrereleases.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -1136,8 +968,7 @@ export const VersionSelectionSemver = { toJSON(message: VersionSelectionSemver): unknown { const obj: any = {}; - message.constraints !== undefined && - (obj.constraints = message.constraints); + message.constraints !== undefined && (obj.constraints = message.constraints); message.prereleases !== undefined && (obj.prereleases = message.prereleases ? VersionSelectionSemverPrereleases.toJSON(message.prereleases) @@ -1146,7 +977,7 @@ export const VersionSelectionSemver = { }, fromPartial, I>>( - object: I + object: I, ): VersionSelectionSemver { const message = createBaseVersionSelectionSemver(); message.constraints = object.constraints ?? ""; @@ -1165,7 +996,7 @@ function createBaseVersionSelectionSemverPrereleases(): VersionSelectionSemverPr export const VersionSelectionSemverPrereleases = { encode( message: VersionSelectionSemverPrereleases, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.identifiers) { writer.uint32(10).string(v!); @@ -1173,10 +1004,7 @@ export const VersionSelectionSemverPrereleases = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): VersionSelectionSemverPrereleases { + decode(input: _m0.Reader | Uint8Array, length?: number): VersionSelectionSemverPrereleases { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseVersionSelectionSemverPrereleases(); @@ -1205,18 +1033,18 @@ export const VersionSelectionSemverPrereleases = { toJSON(message: VersionSelectionSemverPrereleases): unknown { const obj: any = {}; if (message.identifiers) { - obj.identifiers = message.identifiers.map((e) => e); + obj.identifiers = message.identifiers.map(e => e); } else { obj.identifiers = []; } return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): VersionSelectionSemverPrereleases { + fromPartial, I>>( + object: I, + ): VersionSelectionSemverPrereleases { const message = createBaseVersionSelectionSemverPrereleases(); - message.identifiers = object.identifiers?.map((e) => e) || []; + message.identifiers = object.identifiers?.map(e => e) || []; return message; }, }; @@ -1225,42 +1053,42 @@ export interface KappControllerPackagesService { /** GetAvailablePackageSummaries returns the available packages managed by the 'kapp_controller' plugin */ GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetAvailablePackageDetail returns the package details managed by the 'kapp_controller' plugin */ GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetAvailablePackageVersions returns the package versions managed by the 'kapp_controller' plugin */ GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetInstalledPackageSummaries returns the installed packages managed by the 'kapp_controller' plugin */ GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** GetInstalledPackageDetail returns the requested installed package managed by the 'kapp_controller' plugin */ GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** CreateInstalledPackage creates an installed package based on the request. */ CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** UpdateInstalledPackage updates an installed package based on the request. */ UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** DeleteInstalledPackage deletes an installed package based on the request. */ DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; /** * GetInstalledPackageResourceRefs returns the references for the Kubernetes resources created by @@ -1268,128 +1096,122 @@ export interface KappControllerPackagesService { */ GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } -export class KappControllerPackagesServiceClientImpl - implements KappControllerPackagesService -{ +export class KappControllerPackagesServiceClientImpl implements KappControllerPackagesService { private readonly rpc: Rpc; constructor(rpc: Rpc) { this.rpc = rpc; - this.GetAvailablePackageSummaries = - this.GetAvailablePackageSummaries.bind(this); + this.GetAvailablePackageSummaries = this.GetAvailablePackageSummaries.bind(this); this.GetAvailablePackageDetail = this.GetAvailablePackageDetail.bind(this); - this.GetAvailablePackageVersions = - this.GetAvailablePackageVersions.bind(this); - this.GetInstalledPackageSummaries = - this.GetInstalledPackageSummaries.bind(this); + this.GetAvailablePackageVersions = this.GetAvailablePackageVersions.bind(this); + this.GetInstalledPackageSummaries = this.GetInstalledPackageSummaries.bind(this); this.GetInstalledPackageDetail = this.GetInstalledPackageDetail.bind(this); this.CreateInstalledPackage = this.CreateInstalledPackage.bind(this); this.UpdateInstalledPackage = this.UpdateInstalledPackage.bind(this); this.DeleteInstalledPackage = this.DeleteInstalledPackage.bind(this); - this.GetInstalledPackageResourceRefs = - this.GetInstalledPackageResourceRefs.bind(this); + this.GetInstalledPackageResourceRefs = this.GetInstalledPackageResourceRefs.bind(this); } GetAvailablePackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceGetAvailablePackageSummariesDesc, GetAvailablePackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceGetAvailablePackageDetailDesc, GetAvailablePackageDetailRequest.fromPartial(request), - metadata + metadata, ); } GetAvailablePackageVersions( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceGetAvailablePackageVersionsDesc, GetAvailablePackageVersionsRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageSummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceGetInstalledPackageSummariesDesc, GetInstalledPackageSummariesRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceGetInstalledPackageDetailDesc, GetInstalledPackageDetailRequest.fromPartial(request), - metadata + metadata, ); } CreateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceCreateInstalledPackageDesc, CreateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } UpdateInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceUpdateInstalledPackageDesc, UpdateInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } DeleteInstalledPackage( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceDeleteInstalledPackageDesc, DeleteInstalledPackageRequest.fromPartial(request), - metadata + metadata, ); } GetInstalledPackageResourceRefs( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerPackagesServiceGetInstalledPackageResourceRefsDesc, GetInstalledPackageResourceRefsRequest.fromPartial(request), - metadata + metadata, ); } } @@ -1514,74 +1336,71 @@ export const KappControllerPackagesServiceGetInstalledPackageDetailDesc: UnaryMe } as any, }; -export const KappControllerPackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "CreateInstalledPackage", - service: KappControllerPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return CreateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...CreateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const KappControllerPackagesServiceCreateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "CreateInstalledPackage", + service: KappControllerPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return CreateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...CreateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const KappControllerPackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "UpdateInstalledPackage", - service: KappControllerPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return UpdateInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...UpdateInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const KappControllerPackagesServiceUpdateInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "UpdateInstalledPackage", + service: KappControllerPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return UpdateInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...UpdateInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; -export const KappControllerPackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = - { - methodName: "DeleteInstalledPackage", - service: KappControllerPackagesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return DeleteInstalledPackageRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...DeleteInstalledPackageResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const KappControllerPackagesServiceDeleteInstalledPackageDesc: UnaryMethodDefinitionish = { + methodName: "DeleteInstalledPackage", + service: KappControllerPackagesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return DeleteInstalledPackageRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...DeleteInstalledPackageResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; export const KappControllerPackagesServiceGetInstalledPackageResourceRefsDesc: UnaryMethodDefinitionish = { @@ -1610,23 +1429,23 @@ export interface KappControllerRepositoriesService { /** AddPackageRepository add an existing package repository to the set of ones already managed by the 'kapp_controller' plugin */ AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } @@ -1638,66 +1457,64 @@ export class KappControllerRepositoriesServiceClientImpl constructor(rpc: Rpc) { this.rpc = rpc; this.AddPackageRepository = this.AddPackageRepository.bind(this); - this.GetPackageRepositoryDetail = - this.GetPackageRepositoryDetail.bind(this); - this.GetPackageRepositorySummaries = - this.GetPackageRepositorySummaries.bind(this); + this.GetPackageRepositoryDetail = this.GetPackageRepositoryDetail.bind(this); + this.GetPackageRepositorySummaries = this.GetPackageRepositorySummaries.bind(this); this.UpdatePackageRepository = this.UpdatePackageRepository.bind(this); this.DeletePackageRepository = this.DeletePackageRepository.bind(this); } AddPackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerRepositoriesServiceAddPackageRepositoryDesc, AddPackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositoryDetail( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerRepositoriesServiceGetPackageRepositoryDetailDesc, GetPackageRepositoryDetailRequest.fromPartial(request), - metadata + metadata, ); } GetPackageRepositorySummaries( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerRepositoriesServiceGetPackageRepositorySummariesDesc, GetPackageRepositorySummariesRequest.fromPartial(request), - metadata + metadata, ); } UpdatePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerRepositoriesServiceUpdatePackageRepositoryDesc, UpdatePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } DeletePackageRepository( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( KappControllerRepositoriesServiceDeletePackageRepositoryDesc, DeletePackageRepositoryRequest.fromPartial(request), - metadata + metadata, ); } } @@ -1707,28 +1524,27 @@ export const KappControllerRepositoriesServiceDesc = { "kubeappsapis.plugins.kapp_controller.packages.v1alpha1.KappControllerRepositoriesService", }; -export const KappControllerRepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = - { - methodName: "AddPackageRepository", - service: KappControllerRepositoriesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return AddPackageRepositoryRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...AddPackageRepositoryResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const KappControllerRepositoriesServiceAddPackageRepositoryDesc: UnaryMethodDefinitionish = { + methodName: "AddPackageRepository", + service: KappControllerRepositoriesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return AddPackageRepositoryRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...AddPackageRepositoryResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; export const KappControllerRepositoriesServiceGetPackageRepositoryDetailDesc: UnaryMethodDefinitionish = { @@ -1822,8 +1638,7 @@ export const KappControllerRepositoriesServiceDeletePackageRepositoryDesc: Unary } as any, }; -interface UnaryMethodDefinitionishR - extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } @@ -1834,7 +1649,7 @@ interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise; } @@ -1854,7 +1669,7 @@ export class GrpcWebImpl { debug?: boolean; metadata?: grpc.Metadata; - } + }, ) { this.host = host; this.options = options; @@ -1863,7 +1678,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType }; const maybeCombinedMetadata = @@ -1895,14 +1710,7 @@ export class GrpcWebImpl { } } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -1917,10 +1725,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/kubeappsapis/plugins/resources/v1alpha1/resources.ts b/dashboard/src/gen/kubeappsapis/plugins/resources/v1alpha1/resources.ts index 7f664263d536..9925a83c60db 100644 --- a/dashboard/src/gen/kubeappsapis/plugins/resources/v1alpha1/resources.ts +++ b/dashboard/src/gen/kubeappsapis/plugins/resources/v1alpha1/resources.ts @@ -337,14 +337,11 @@ function createBaseGetResourcesRequest(): GetResourcesRequest { } export const GetResourcesRequest = { - encode( - message: GetResourcesRequest, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: GetResourcesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.installedPackageRef !== undefined) { InstalledPackageReference.encode( message.installedPackageRef, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); } for (const v of message.resourceRefs) { @@ -364,15 +361,10 @@ export const GetResourcesRequest = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.installedPackageRef = InstalledPackageReference.decode( - reader, - reader.uint32() - ); + message.installedPackageRef = InstalledPackageReference.decode(reader, reader.uint32()); break; case 2: - message.resourceRefs.push( - ResourceRef.decode(reader, reader.uint32()) - ); + message.resourceRefs.push(ResourceRef.decode(reader, reader.uint32())); break; case 3: message.watch = reader.bool(); @@ -404,9 +396,7 @@ export const GetResourcesRequest = { ? InstalledPackageReference.toJSON(message.installedPackageRef) : undefined); if (message.resourceRefs) { - obj.resourceRefs = message.resourceRefs.map((e) => - e ? ResourceRef.toJSON(e) : undefined - ); + obj.resourceRefs = message.resourceRefs.map(e => (e ? ResourceRef.toJSON(e) : undefined)); } else { obj.resourceRefs = []; } @@ -415,16 +405,14 @@ export const GetResourcesRequest = { }, fromPartial, I>>( - object: I + object: I, ): GetResourcesRequest { const message = createBaseGetResourcesRequest(); message.installedPackageRef = - object.installedPackageRef !== undefined && - object.installedPackageRef !== null + object.installedPackageRef !== undefined && object.installedPackageRef !== null ? InstalledPackageReference.fromPartial(object.installedPackageRef) : undefined; - message.resourceRefs = - object.resourceRefs?.map((e) => ResourceRef.fromPartial(e)) || []; + message.resourceRefs = object.resourceRefs?.map(e => ResourceRef.fromPartial(e)) || []; message.watch = object.watch ?? false; return message; }, @@ -435,15 +423,9 @@ function createBaseGetResourcesResponse(): GetResourcesResponse { } export const GetResourcesResponse = { - encode( - message: GetResourcesResponse, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: GetResourcesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.resourceRef !== undefined) { - ResourceRef.encode( - message.resourceRef, - writer.uint32(10).fork() - ).ldelim(); + ResourceRef.encode(message.resourceRef, writer.uint32(10).fork()).ldelim(); } if (message.manifest !== "") { writer.uint32(18).string(message.manifest); @@ -451,10 +433,7 @@ export const GetResourcesResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetResourcesResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetResourcesResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetResourcesResponse(); @@ -477,9 +456,7 @@ export const GetResourcesResponse = { fromJSON(object: any): GetResourcesResponse { return { - resourceRef: isSet(object.resourceRef) - ? ResourceRef.fromJSON(object.resourceRef) - : undefined, + resourceRef: isSet(object.resourceRef) ? ResourceRef.fromJSON(object.resourceRef) : undefined, manifest: isSet(object.manifest) ? String(object.manifest) : "", }; }, @@ -487,15 +464,13 @@ export const GetResourcesResponse = { toJSON(message: GetResourcesResponse): unknown { const obj: any = {}; message.resourceRef !== undefined && - (obj.resourceRef = message.resourceRef - ? ResourceRef.toJSON(message.resourceRef) - : undefined); + (obj.resourceRef = message.resourceRef ? ResourceRef.toJSON(message.resourceRef) : undefined); message.manifest !== undefined && (obj.manifest = message.manifest); return obj; }, fromPartial, I>>( - object: I + object: I, ): GetResourcesResponse { const message = createBaseGetResourcesResponse(); message.resourceRef = @@ -514,7 +489,7 @@ function createBaseGetServiceAccountNamesRequest(): GetServiceAccountNamesReques export const GetServiceAccountNamesRequest = { encode( message: GetServiceAccountNamesRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); @@ -522,10 +497,7 @@ export const GetServiceAccountNamesRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetServiceAccountNamesRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetServiceAccountNamesRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetServiceAccountNamesRequest(); @@ -545,23 +517,19 @@ export const GetServiceAccountNamesRequest = { fromJSON(object: any): GetServiceAccountNamesRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, }; }, toJSON(message: GetServiceAccountNamesRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): GetServiceAccountNamesRequest { const message = createBaseGetServiceAccountNamesRequest(); message.context = @@ -579,7 +547,7 @@ function createBaseGetServiceAccountNamesResponse(): GetServiceAccountNamesRespo export const GetServiceAccountNamesResponse = { encode( message: GetServiceAccountNamesResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.serviceaccountNames) { writer.uint32(10).string(v!); @@ -587,10 +555,7 @@ export const GetServiceAccountNamesResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetServiceAccountNamesResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetServiceAccountNamesResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetServiceAccountNamesResponse(); @@ -619,7 +584,7 @@ export const GetServiceAccountNamesResponse = { toJSON(message: GetServiceAccountNamesResponse): unknown { const obj: any = {}; if (message.serviceaccountNames) { - obj.serviceaccountNames = message.serviceaccountNames.map((e) => e); + obj.serviceaccountNames = message.serviceaccountNames.map(e => e); } else { obj.serviceaccountNames = []; } @@ -627,11 +592,10 @@ export const GetServiceAccountNamesResponse = { }, fromPartial, I>>( - object: I + object: I, ): GetServiceAccountNamesResponse { const message = createBaseGetServiceAccountNamesResponse(); - message.serviceaccountNames = - object.serviceaccountNames?.map((e) => e) || []; + message.serviceaccountNames = object.serviceaccountNames?.map(e => e) || []; return message; }, }; @@ -641,20 +605,14 @@ function createBaseGetNamespaceNamesRequest(): GetNamespaceNamesRequest { } export const GetNamespaceNamesRequest = { - encode( - message: GetNamespaceNamesRequest, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: GetNamespaceNamesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.cluster !== "") { writer.uint32(10).string(message.cluster); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetNamespaceNamesRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetNamespaceNamesRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetNamespaceNamesRequest(); @@ -685,7 +643,7 @@ export const GetNamespaceNamesRequest = { }, fromPartial, I>>( - object: I + object: I, ): GetNamespaceNamesRequest { const message = createBaseGetNamespaceNamesRequest(); message.cluster = object.cluster ?? ""; @@ -698,20 +656,14 @@ function createBaseGetNamespaceNamesResponse(): GetNamespaceNamesResponse { } export const GetNamespaceNamesResponse = { - encode( - message: GetNamespaceNamesResponse, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: GetNamespaceNamesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.namespaceNames) { writer.uint32(10).string(v!); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetNamespaceNamesResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetNamespaceNamesResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetNamespaceNamesResponse(); @@ -740,7 +692,7 @@ export const GetNamespaceNamesResponse = { toJSON(message: GetNamespaceNamesResponse): unknown { const obj: any = {}; if (message.namespaceNames) { - obj.namespaceNames = message.namespaceNames.map((e) => e); + obj.namespaceNames = message.namespaceNames.map(e => e); } else { obj.namespaceNames = []; } @@ -748,10 +700,10 @@ export const GetNamespaceNamesResponse = { }, fromPartial, I>>( - object: I + object: I, ): GetNamespaceNamesResponse { const message = createBaseGetNamespaceNamesResponse(); - message.namespaceNames = object.namespaceNames?.map((e) => e) || []; + message.namespaceNames = object.namespaceNames?.map(e => e) || []; return message; }, }; @@ -761,26 +713,20 @@ function createBaseCreateNamespaceRequest(): CreateNamespaceRequest { } export const CreateNamespaceRequest = { - encode( - message: CreateNamespaceRequest, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: CreateNamespaceRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); } Object.entries(message.labels).forEach(([key, value]) => { CreateNamespaceRequest_LabelsEntry.encode( { key: key as any, value }, - writer.uint32(18).fork() + writer.uint32(18).fork(), ).ldelim(); }); return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CreateNamespaceRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): CreateNamespaceRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCreateNamespaceRequest(); @@ -791,10 +737,7 @@ export const CreateNamespaceRequest = { message.context = Context.decode(reader, reader.uint32()); break; case 2: - const entry2 = CreateNamespaceRequest_LabelsEntry.decode( - reader, - reader.uint32() - ); + const entry2 = CreateNamespaceRequest_LabelsEntry.decode(reader, reader.uint32()); if (entry2.value !== undefined) { message.labels[entry2.key] = entry2.value; } @@ -809,17 +752,12 @@ export const CreateNamespaceRequest = { fromJSON(object: any): CreateNamespaceRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, labels: isObject(object.labels) - ? Object.entries(object.labels).reduce<{ [key: string]: string }>( - (acc, [key, value]) => { - acc[key] = String(value); - return acc; - }, - {} - ) + ? Object.entries(object.labels).reduce<{ [key: string]: string }>((acc, [key, value]) => { + acc[key] = String(value); + return acc; + }, {}) : {}, }; }, @@ -827,9 +765,7 @@ export const CreateNamespaceRequest = { toJSON(message: CreateNamespaceRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); obj.labels = {}; if (message.labels) { Object.entries(message.labels).forEach(([k, v]) => { @@ -840,7 +776,7 @@ export const CreateNamespaceRequest = { }, fromPartial, I>>( - object: I + object: I, ): CreateNamespaceRequest { const message = createBaseCreateNamespaceRequest(); message.context = @@ -866,7 +802,7 @@ function createBaseCreateNamespaceRequest_LabelsEntry(): CreateNamespaceRequest_ export const CreateNamespaceRequest_LabelsEntry = { encode( message: CreateNamespaceRequest_LabelsEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -877,10 +813,7 @@ export const CreateNamespaceRequest_LabelsEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CreateNamespaceRequest_LabelsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): CreateNamespaceRequest_LabelsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCreateNamespaceRequest_LabelsEntry(); @@ -915,9 +848,9 @@ export const CreateNamespaceRequest_LabelsEntry = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): CreateNamespaceRequest_LabelsEntry { + fromPartial, I>>( + object: I, + ): CreateNamespaceRequest_LabelsEntry { const message = createBaseCreateNamespaceRequest_LabelsEntry(); message.key = object.key ?? ""; message.value = object.value ?? ""; @@ -930,17 +863,11 @@ function createBaseCreateNamespaceResponse(): CreateNamespaceResponse { } export const CreateNamespaceResponse = { - encode( - _: CreateNamespaceResponse, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(_: CreateNamespaceResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CreateNamespaceResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): CreateNamespaceResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCreateNamespaceResponse(); @@ -965,7 +892,7 @@ export const CreateNamespaceResponse = { }, fromPartial, I>>( - _: I + _: I, ): CreateNamespaceResponse { const message = createBaseCreateNamespaceResponse(); return message; @@ -979,7 +906,7 @@ function createBaseCheckNamespaceExistsRequest(): CheckNamespaceExistsRequest { export const CheckNamespaceExistsRequest = { encode( message: CheckNamespaceExistsRequest, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); @@ -987,10 +914,7 @@ export const CheckNamespaceExistsRequest = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CheckNamespaceExistsRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): CheckNamespaceExistsRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCheckNamespaceExistsRequest(); @@ -1010,23 +934,19 @@ export const CheckNamespaceExistsRequest = { fromJSON(object: any): CheckNamespaceExistsRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, }; }, toJSON(message: CheckNamespaceExistsRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): CheckNamespaceExistsRequest { const message = createBaseCheckNamespaceExistsRequest(); message.context = @@ -1044,7 +964,7 @@ function createBaseCheckNamespaceExistsResponse(): CheckNamespaceExistsResponse export const CheckNamespaceExistsResponse = { encode( message: CheckNamespaceExistsResponse, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.exists === true) { writer.uint32(8).bool(message.exists); @@ -1052,10 +972,7 @@ export const CheckNamespaceExistsResponse = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CheckNamespaceExistsResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): CheckNamespaceExistsResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCheckNamespaceExistsResponse(); @@ -1086,7 +1003,7 @@ export const CheckNamespaceExistsResponse = { }, fromPartial, I>>( - object: I + object: I, ): CheckNamespaceExistsResponse { const message = createBaseCheckNamespaceExistsResponse(); message.exists = object.exists ?? false; @@ -1099,10 +1016,7 @@ function createBaseCreateSecretRequest(): CreateSecretRequest { } export const CreateSecretRequest = { - encode( - message: CreateSecretRequest, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: CreateSecretRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); } @@ -1115,7 +1029,7 @@ export const CreateSecretRequest = { Object.entries(message.stringData).forEach(([key, value]) => { CreateSecretRequest_StringDataEntry.encode( { key: key as any, value }, - writer.uint32(34).fork() + writer.uint32(34).fork(), ).ldelim(); }); return writer; @@ -1138,10 +1052,7 @@ export const CreateSecretRequest = { message.name = reader.string(); break; case 4: - const entry4 = CreateSecretRequest_StringDataEntry.decode( - reader, - reader.uint32() - ); + const entry4 = CreateSecretRequest_StringDataEntry.decode(reader, reader.uint32()); if (entry4.value !== undefined) { message.stringData[entry4.key] = entry4.value; } @@ -1156,9 +1067,7 @@ export const CreateSecretRequest = { fromJSON(object: any): CreateSecretRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, type: isSet(object.type) ? secretTypeFromJSON(object.type) : 0, name: isSet(object.name) ? String(object.name) : "", stringData: isObject(object.stringData) @@ -1167,7 +1076,7 @@ export const CreateSecretRequest = { acc[key] = String(value); return acc; }, - {} + {}, ) : {}, }; @@ -1176,9 +1085,7 @@ export const CreateSecretRequest = { toJSON(message: CreateSecretRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); message.type !== undefined && (obj.type = secretTypeToJSON(message.type)); message.name !== undefined && (obj.name = message.name); obj.stringData = {}; @@ -1191,7 +1098,7 @@ export const CreateSecretRequest = { }, fromPartial, I>>( - object: I + object: I, ): CreateSecretRequest { const message = createBaseCreateSecretRequest(); message.context = @@ -1219,7 +1126,7 @@ function createBaseCreateSecretRequest_StringDataEntry(): CreateSecretRequest_St export const CreateSecretRequest_StringDataEntry = { encode( message: CreateSecretRequest_StringDataEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -1230,10 +1137,7 @@ export const CreateSecretRequest_StringDataEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CreateSecretRequest_StringDataEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): CreateSecretRequest_StringDataEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCreateSecretRequest_StringDataEntry(); @@ -1268,9 +1172,9 @@ export const CreateSecretRequest_StringDataEntry = { return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): CreateSecretRequest_StringDataEntry { + fromPartial, I>>( + object: I, + ): CreateSecretRequest_StringDataEntry { const message = createBaseCreateSecretRequest_StringDataEntry(); message.key = object.key ?? ""; message.value = object.value ?? ""; @@ -1283,17 +1187,11 @@ function createBaseCreateSecretResponse(): CreateSecretResponse { } export const CreateSecretResponse = { - encode( - _: CreateSecretResponse, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(_: CreateSecretResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): CreateSecretResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): CreateSecretResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseCreateSecretResponse(); @@ -1317,9 +1215,7 @@ export const CreateSecretResponse = { return obj; }, - fromPartial, I>>( - _: I - ): CreateSecretResponse { + fromPartial, I>>(_: I): CreateSecretResponse { const message = createBaseCreateSecretResponse(); return message; }, @@ -1330,20 +1226,14 @@ function createBaseGetSecretNamesRequest(): GetSecretNamesRequest { } export const GetSecretNamesRequest = { - encode( - message: GetSecretNamesRequest, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: GetSecretNamesRequest, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.context !== undefined) { Context.encode(message.context, writer.uint32(10).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetSecretNamesRequest { + decode(input: _m0.Reader | Uint8Array, length?: number): GetSecretNamesRequest { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetSecretNamesRequest(); @@ -1363,23 +1253,19 @@ export const GetSecretNamesRequest = { fromJSON(object: any): GetSecretNamesRequest { return { - context: isSet(object.context) - ? Context.fromJSON(object.context) - : undefined, + context: isSet(object.context) ? Context.fromJSON(object.context) : undefined, }; }, toJSON(message: GetSecretNamesRequest): unknown { const obj: any = {}; message.context !== undefined && - (obj.context = message.context - ? Context.toJSON(message.context) - : undefined); + (obj.context = message.context ? Context.toJSON(message.context) : undefined); return obj; }, fromPartial, I>>( - object: I + object: I, ): GetSecretNamesRequest { const message = createBaseGetSecretNamesRequest(); message.context = @@ -1395,23 +1281,17 @@ function createBaseGetSecretNamesResponse(): GetSecretNamesResponse { } export const GetSecretNamesResponse = { - encode( - message: GetSecretNamesResponse, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: GetSecretNamesResponse, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { Object.entries(message.secretNames).forEach(([key, value]) => { GetSecretNamesResponse_SecretNamesEntry.encode( { key: key as any, value }, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); }); return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetSecretNamesResponse { + decode(input: _m0.Reader | Uint8Array, length?: number): GetSecretNamesResponse { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetSecretNamesResponse(); @@ -1419,10 +1299,7 @@ export const GetSecretNamesResponse = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - const entry1 = GetSecretNamesResponse_SecretNamesEntry.decode( - reader, - reader.uint32() - ); + const entry1 = GetSecretNamesResponse_SecretNamesEntry.decode(reader, reader.uint32()); if (entry1.value !== undefined) { message.secretNames[entry1.key] = entry1.value; } @@ -1460,7 +1337,7 @@ export const GetSecretNamesResponse = { }, fromPartial, I>>( - object: I + object: I, ): GetSecretNamesResponse { const message = createBaseGetSecretNamesResponse(); message.secretNames = Object.entries(object.secretNames ?? {}).reduce<{ @@ -1482,7 +1359,7 @@ function createBaseGetSecretNamesResponse_SecretNamesEntry(): GetSecretNamesResp export const GetSecretNamesResponse_SecretNamesEntry = { encode( message: GetSecretNamesResponse_SecretNamesEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -1493,10 +1370,7 @@ export const GetSecretNamesResponse_SecretNamesEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): GetSecretNamesResponse_SecretNamesEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): GetSecretNamesResponse_SecretNamesEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseGetSecretNamesResponse_SecretNamesEntry(); @@ -1527,14 +1401,13 @@ export const GetSecretNamesResponse_SecretNamesEntry = { toJSON(message: GetSecretNamesResponse_SecretNamesEntry): unknown { const obj: any = {}; message.key !== undefined && (obj.key = message.key); - message.value !== undefined && - (obj.value = secretTypeToJSON(message.value)); + message.value !== undefined && (obj.value = secretTypeToJSON(message.value)); return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): GetSecretNamesResponse_SecretNamesEntry { + fromPartial, I>>( + object: I, + ): GetSecretNamesResponse_SecretNamesEntry { const message = createBaseGetSecretNamesResponse_SecretNamesEntry(); message.key = object.key ?? ""; message.value = object.value ?? 0; @@ -1551,31 +1424,31 @@ export const GetSecretNamesResponse_SecretNamesEntry = { export interface ResourcesService { GetResources( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Observable; GetServiceAccountNames( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetNamespaceNames( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; CreateNamespace( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; CheckNamespaceExists( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; GetSecretNames( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; CreateSecret( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise; } @@ -1595,78 +1468,78 @@ export class ResourcesServiceClientImpl implements ResourcesService { GetResources( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Observable { return this.rpc.invoke( ResourcesServiceGetResourcesDesc, GetResourcesRequest.fromPartial(request), - metadata + metadata, ); } GetServiceAccountNames( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( ResourcesServiceGetServiceAccountNamesDesc, GetServiceAccountNamesRequest.fromPartial(request), - metadata + metadata, ); } GetNamespaceNames( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( ResourcesServiceGetNamespaceNamesDesc, GetNamespaceNamesRequest.fromPartial(request), - metadata + metadata, ); } CreateNamespace( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( ResourcesServiceCreateNamespaceDesc, CreateNamespaceRequest.fromPartial(request), - metadata + metadata, ); } CheckNamespaceExists( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( ResourcesServiceCheckNamespaceExistsDesc, CheckNamespaceExistsRequest.fromPartial(request), - metadata + metadata, ); } GetSecretNames( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( ResourcesServiceGetSecretNamesDesc, GetSecretNamesRequest.fromPartial(request), - metadata + metadata, ); } CreateSecret( request: DeepPartial, - metadata?: grpc.Metadata + metadata?: grpc.Metadata, ): Promise { return this.rpc.unary( ResourcesServiceCreateSecretDesc, CreateSecretRequest.fromPartial(request), - metadata + metadata, ); } } @@ -1697,28 +1570,27 @@ export const ResourcesServiceGetResourcesDesc: UnaryMethodDefinitionish = { } as any, }; -export const ResourcesServiceGetServiceAccountNamesDesc: UnaryMethodDefinitionish = - { - methodName: "GetServiceAccountNames", - service: ResourcesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return GetServiceAccountNamesRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...GetServiceAccountNamesResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const ResourcesServiceGetServiceAccountNamesDesc: UnaryMethodDefinitionish = { + methodName: "GetServiceAccountNames", + service: ResourcesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return GetServiceAccountNamesRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...GetServiceAccountNamesResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; export const ResourcesServiceGetNamespaceNamesDesc: UnaryMethodDefinitionish = { methodName: "GetNamespaceNames", @@ -1764,28 +1636,27 @@ export const ResourcesServiceCreateNamespaceDesc: UnaryMethodDefinitionish = { } as any, }; -export const ResourcesServiceCheckNamespaceExistsDesc: UnaryMethodDefinitionish = - { - methodName: "CheckNamespaceExists", - service: ResourcesServiceDesc, - requestStream: false, - responseStream: false, - requestType: { - serializeBinary() { - return CheckNamespaceExistsRequest.encode(this).finish(); - }, - } as any, - responseType: { - deserializeBinary(data: Uint8Array) { - return { - ...CheckNamespaceExistsResponse.decode(data), - toObject() { - return this; - }, - }; - }, - } as any, - }; +export const ResourcesServiceCheckNamespaceExistsDesc: UnaryMethodDefinitionish = { + methodName: "CheckNamespaceExists", + service: ResourcesServiceDesc, + requestStream: false, + responseStream: false, + requestType: { + serializeBinary() { + return CheckNamespaceExistsRequest.encode(this).finish(); + }, + } as any, + responseType: { + deserializeBinary(data: Uint8Array) { + return { + ...CheckNamespaceExistsResponse.decode(data), + toObject() { + return this; + }, + }; + }, + } as any, +}; export const ResourcesServiceGetSecretNamesDesc: UnaryMethodDefinitionish = { methodName: "GetSecretNames", @@ -1831,8 +1702,7 @@ export const ResourcesServiceCreateSecretDesc: UnaryMethodDefinitionish = { } as any, }; -interface UnaryMethodDefinitionishR - extends grpc.UnaryMethodDefinition { +interface UnaryMethodDefinitionishR extends grpc.UnaryMethodDefinition { requestStream: any; responseStream: any; } @@ -1843,12 +1713,12 @@ interface Rpc { unary( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise; invoke( methodDesc: T, request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Observable; } @@ -1868,7 +1738,7 @@ export class GrpcWebImpl { streamingTransport?: grpc.TransportFactory; debug?: boolean; metadata?: grpc.Metadata; - } + }, ) { this.host = host; this.options = options; @@ -1877,7 +1747,7 @@ export class GrpcWebImpl { unary( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Promise { const request = { ..._request, ...methodDesc.requestType }; const maybeCombinedMetadata = @@ -1911,7 +1781,7 @@ export class GrpcWebImpl { invoke( methodDesc: T, _request: any, - metadata: grpc.Metadata | undefined + metadata: grpc.Metadata | undefined, ): Observable { // Status Response Codes (https://developers.google.com/maps-booking/reference/grpc-api/status_codes) const upStreamCodes = [2, 4, 8, 9, 10, 13, 14, 15]; @@ -1924,7 +1794,7 @@ export class GrpcWebImpl { ...metadata?.headersMap, }) : metadata || this.options.metadata; - return new Observable((observer) => { + return new Observable(observer => { const upStream = () => { const client = grpc.invoke(methodDesc, { host: this.host, @@ -1932,7 +1802,7 @@ export class GrpcWebImpl { transport: this.options.streamingTransport || this.options.transport, metadata: maybeCombinedMetadata, debug: this.options.debug, - onMessage: (next) => observer.next(next), + onMessage: next => observer.next(next), onEnd: (code: grpc.Code, message: string) => { if (code === 0) { observer.complete(); @@ -1950,14 +1820,7 @@ export class GrpcWebImpl { } } -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -1972,10 +1835,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; if (_m0.util.Long !== Long) { _m0.util.Long = Long as any; diff --git a/dashboard/src/gen/protoc-gen-openapiv2/options/openapiv2.ts b/dashboard/src/gen/protoc-gen-openapiv2/options/openapiv2.ts index dd64c62f914a..bc7ee1ea745d 100644 --- a/dashboard/src/gen/protoc-gen-openapiv2/options/openapiv2.ts +++ b/dashboard/src/gen/protoc-gen-openapiv2/options/openapiv2.ts @@ -606,7 +606,7 @@ export enum JSONSchema_JSONSchemaSimpleTypes { } export function jSONSchema_JSONSchemaSimpleTypesFromJSON( - object: any + object: any, ): JSONSchema_JSONSchemaSimpleTypes { switch (object) { case 0: @@ -641,7 +641,7 @@ export function jSONSchema_JSONSchemaSimpleTypesFromJSON( } export function jSONSchema_JSONSchemaSimpleTypesToJSON( - object: JSONSchema_JSONSchemaSimpleTypes + object: JSONSchema_JSONSchemaSimpleTypes, ): string { switch (object) { case JSONSchema_JSONSchemaSimpleTypes.UNKNOWN: @@ -1005,10 +1005,7 @@ function createBaseSwagger(): Swagger { } export const Swagger = { - encode( - message: Swagger, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Swagger, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.swagger !== "") { writer.uint32(10).string(message.swagger); } @@ -1033,31 +1030,22 @@ export const Swagger = { writer.uint32(58).string(v!); } Object.entries(message.responses).forEach(([key, value]) => { - Swagger_ResponsesEntry.encode( - { key: key as any, value }, - writer.uint32(82).fork() - ).ldelim(); + Swagger_ResponsesEntry.encode({ key: key as any, value }, writer.uint32(82).fork()).ldelim(); }); if (message.securityDefinitions !== undefined) { - SecurityDefinitions.encode( - message.securityDefinitions, - writer.uint32(90).fork() - ).ldelim(); + SecurityDefinitions.encode(message.securityDefinitions, writer.uint32(90).fork()).ldelim(); } for (const v of message.security) { SecurityRequirement.encode(v!, writer.uint32(98).fork()).ldelim(); } if (message.externalDocs !== undefined) { - ExternalDocumentation.encode( - message.externalDocs, - writer.uint32(114).fork() - ).ldelim(); + ExternalDocumentation.encode(message.externalDocs, writer.uint32(114).fork()).ldelim(); } Object.entries(message.extensions).forEach(([key, value]) => { if (value !== undefined) { Swagger_ExtensionsEntry.encode( { key: key as any, value }, - writer.uint32(122).fork() + writer.uint32(122).fork(), ).ldelim(); } }); @@ -1100,36 +1088,22 @@ export const Swagger = { message.produces.push(reader.string()); break; case 10: - const entry10 = Swagger_ResponsesEntry.decode( - reader, - reader.uint32() - ); + const entry10 = Swagger_ResponsesEntry.decode(reader, reader.uint32()); if (entry10.value !== undefined) { message.responses[entry10.key] = entry10.value; } break; case 11: - message.securityDefinitions = SecurityDefinitions.decode( - reader, - reader.uint32() - ); + message.securityDefinitions = SecurityDefinitions.decode(reader, reader.uint32()); break; case 12: - message.security.push( - SecurityRequirement.decode(reader, reader.uint32()) - ); + message.security.push(SecurityRequirement.decode(reader, reader.uint32())); break; case 14: - message.externalDocs = ExternalDocumentation.decode( - reader, - reader.uint32() - ); + message.externalDocs = ExternalDocumentation.decode(reader, reader.uint32()); break; case 15: - const entry15 = Swagger_ExtensionsEntry.decode( - reader, - reader.uint32() - ); + const entry15 = Swagger_ExtensionsEntry.decode(reader, reader.uint32()); if (entry15.value !== undefined) { message.extensions[entry15.key] = entry15.value; } @@ -1151,19 +1125,15 @@ export const Swagger = { schemes: Array.isArray(object?.schemes) ? object.schemes.map((e: any) => schemeFromJSON(e)) : [], - consumes: Array.isArray(object?.consumes) - ? object.consumes.map((e: any) => String(e)) - : [], - produces: Array.isArray(object?.produces) - ? object.produces.map((e: any) => String(e)) - : [], + consumes: Array.isArray(object?.consumes) ? object.consumes.map((e: any) => String(e)) : [], + produces: Array.isArray(object?.produces) ? object.produces.map((e: any) => String(e)) : [], responses: isObject(object.responses) ? Object.entries(object.responses).reduce<{ [key: string]: Response }>( (acc, [key, value]) => { acc[key] = Response.fromJSON(value); return acc; }, - {} + {}, ) : {}, securityDefinitions: isSet(object.securityDefinitions) @@ -1176,13 +1146,10 @@ export const Swagger = { ? ExternalDocumentation.fromJSON(object.externalDocs) : undefined, extensions: isObject(object.extensions) - ? Object.entries(object.extensions).reduce<{ [key: string]: any }>( - (acc, [key, value]) => { - acc[key] = value as any; - return acc; - }, - {} - ) + ? Object.entries(object.extensions).reduce<{ [key: string]: any }>((acc, [key, value]) => { + acc[key] = value as any; + return acc; + }, {}) : {}, }; }, @@ -1190,22 +1157,21 @@ export const Swagger = { toJSON(message: Swagger): unknown { const obj: any = {}; message.swagger !== undefined && (obj.swagger = message.swagger); - message.info !== undefined && - (obj.info = message.info ? Info.toJSON(message.info) : undefined); + message.info !== undefined && (obj.info = message.info ? Info.toJSON(message.info) : undefined); message.host !== undefined && (obj.host = message.host); message.basePath !== undefined && (obj.basePath = message.basePath); if (message.schemes) { - obj.schemes = message.schemes.map((e) => schemeToJSON(e)); + obj.schemes = message.schemes.map(e => schemeToJSON(e)); } else { obj.schemes = []; } if (message.consumes) { - obj.consumes = message.consumes.map((e) => e); + obj.consumes = message.consumes.map(e => e); } else { obj.consumes = []; } if (message.produces) { - obj.produces = message.produces.map((e) => e); + obj.produces = message.produces.map(e => e); } else { obj.produces = []; } @@ -1220,9 +1186,7 @@ export const Swagger = { ? SecurityDefinitions.toJSON(message.securityDefinitions) : undefined); if (message.security) { - obj.security = message.security.map((e) => - e ? SecurityRequirement.toJSON(e) : undefined - ); + obj.security = message.security.map(e => (e ? SecurityRequirement.toJSON(e) : undefined)); } else { obj.security = []; } @@ -1243,14 +1207,12 @@ export const Swagger = { const message = createBaseSwagger(); message.swagger = object.swagger ?? ""; message.info = - object.info !== undefined && object.info !== null - ? Info.fromPartial(object.info) - : undefined; + object.info !== undefined && object.info !== null ? Info.fromPartial(object.info) : undefined; message.host = object.host ?? ""; message.basePath = object.basePath ?? ""; - message.schemes = object.schemes?.map((e) => e) || []; - message.consumes = object.consumes?.map((e) => e) || []; - message.produces = object.produces?.map((e) => e) || []; + message.schemes = object.schemes?.map(e => e) || []; + message.consumes = object.consumes?.map(e => e) || []; + message.produces = object.produces?.map(e => e) || []; message.responses = Object.entries(object.responses ?? {}).reduce<{ [key: string]: Response; }>((acc, [key, value]) => { @@ -1260,12 +1222,10 @@ export const Swagger = { return acc; }, {}); message.securityDefinitions = - object.securityDefinitions !== undefined && - object.securityDefinitions !== null + object.securityDefinitions !== undefined && object.securityDefinitions !== null ? SecurityDefinitions.fromPartial(object.securityDefinitions) : undefined; - message.security = - object.security?.map((e) => SecurityRequirement.fromPartial(e)) || []; + message.security = object.security?.map(e => SecurityRequirement.fromPartial(e)) || []; message.externalDocs = object.externalDocs !== undefined && object.externalDocs !== null ? ExternalDocumentation.fromPartial(object.externalDocs) @@ -1287,10 +1247,7 @@ function createBaseSwagger_ResponsesEntry(): Swagger_ResponsesEntry { } export const Swagger_ResponsesEntry = { - encode( - message: Swagger_ResponsesEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Swagger_ResponsesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } @@ -1300,10 +1257,7 @@ export const Swagger_ResponsesEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Swagger_ResponsesEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Swagger_ResponsesEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSwagger_ResponsesEntry(); @@ -1340,7 +1294,7 @@ export const Swagger_ResponsesEntry = { }, fromPartial, I>>( - object: I + object: I, ): Swagger_ResponsesEntry { const message = createBaseSwagger_ResponsesEntry(); message.key = object.key ?? ""; @@ -1357,26 +1311,17 @@ function createBaseSwagger_ExtensionsEntry(): Swagger_ExtensionsEntry { } export const Swagger_ExtensionsEntry = { - encode( - message: Swagger_ExtensionsEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Swagger_ExtensionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } if (message.value !== undefined) { - Value.encode( - Value.wrap(message.value), - writer.uint32(18).fork() - ).ldelim(); + Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Swagger_ExtensionsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Swagger_ExtensionsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSwagger_ExtensionsEntry(); @@ -1412,7 +1357,7 @@ export const Swagger_ExtensionsEntry = { }, fromPartial, I>>( - object: I + object: I, ): Swagger_ExtensionsEntry { const message = createBaseSwagger_ExtensionsEntry(); message.key = object.key ?? ""; @@ -1439,10 +1384,7 @@ function createBaseOperation(): Operation { } export const Operation = { - encode( - message: Operation, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Operation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { for (const v of message.tags) { writer.uint32(10).string(v!); } @@ -1453,10 +1395,7 @@ export const Operation = { writer.uint32(26).string(message.description); } if (message.externalDocs !== undefined) { - ExternalDocumentation.encode( - message.externalDocs, - writer.uint32(34).fork() - ).ldelim(); + ExternalDocumentation.encode(message.externalDocs, writer.uint32(34).fork()).ldelim(); } if (message.operationId !== "") { writer.uint32(42).string(message.operationId); @@ -1470,7 +1409,7 @@ export const Operation = { Object.entries(message.responses).forEach(([key, value]) => { Operation_ResponsesEntry.encode( { key: key as any, value }, - writer.uint32(74).fork() + writer.uint32(74).fork(), ).ldelim(); }); writer.uint32(82).fork(); @@ -1488,7 +1427,7 @@ export const Operation = { if (value !== undefined) { Operation_ExtensionsEntry.encode( { key: key as any, value }, - writer.uint32(106).fork() + writer.uint32(106).fork(), ).ldelim(); } }); @@ -1512,10 +1451,7 @@ export const Operation = { message.description = reader.string(); break; case 4: - message.externalDocs = ExternalDocumentation.decode( - reader, - reader.uint32() - ); + message.externalDocs = ExternalDocumentation.decode(reader, reader.uint32()); break; case 5: message.operationId = reader.string(); @@ -1527,10 +1463,7 @@ export const Operation = { message.produces.push(reader.string()); break; case 9: - const entry9 = Operation_ResponsesEntry.decode( - reader, - reader.uint32() - ); + const entry9 = Operation_ResponsesEntry.decode(reader, reader.uint32()); if (entry9.value !== undefined) { message.responses[entry9.key] = entry9.value; } @@ -1549,15 +1482,10 @@ export const Operation = { message.deprecated = reader.bool(); break; case 12: - message.security.push( - SecurityRequirement.decode(reader, reader.uint32()) - ); + message.security.push(SecurityRequirement.decode(reader, reader.uint32())); break; case 13: - const entry13 = Operation_ExtensionsEntry.decode( - reader, - reader.uint32() - ); + const entry13 = Operation_ExtensionsEntry.decode(reader, reader.uint32()); if (entry13.value !== undefined) { message.extensions[entry13.key] = entry13.value; } @@ -1572,28 +1500,22 @@ export const Operation = { fromJSON(object: any): Operation { return { - tags: Array.isArray(object?.tags) - ? object.tags.map((e: any) => String(e)) - : [], + tags: Array.isArray(object?.tags) ? object.tags.map((e: any) => String(e)) : [], summary: isSet(object.summary) ? String(object.summary) : "", description: isSet(object.description) ? String(object.description) : "", externalDocs: isSet(object.externalDocs) ? ExternalDocumentation.fromJSON(object.externalDocs) : undefined, operationId: isSet(object.operationId) ? String(object.operationId) : "", - consumes: Array.isArray(object?.consumes) - ? object.consumes.map((e: any) => String(e)) - : [], - produces: Array.isArray(object?.produces) - ? object.produces.map((e: any) => String(e)) - : [], + consumes: Array.isArray(object?.consumes) ? object.consumes.map((e: any) => String(e)) : [], + produces: Array.isArray(object?.produces) ? object.produces.map((e: any) => String(e)) : [], responses: isObject(object.responses) ? Object.entries(object.responses).reduce<{ [key: string]: Response }>( (acc, [key, value]) => { acc[key] = Response.fromJSON(value); return acc; }, - {} + {}, ) : {}, schemes: Array.isArray(object?.schemes) @@ -1604,13 +1526,10 @@ export const Operation = { ? object.security.map((e: any) => SecurityRequirement.fromJSON(e)) : [], extensions: isObject(object.extensions) - ? Object.entries(object.extensions).reduce<{ [key: string]: any }>( - (acc, [key, value]) => { - acc[key] = value as any; - return acc; - }, - {} - ) + ? Object.entries(object.extensions).reduce<{ [key: string]: any }>((acc, [key, value]) => { + acc[key] = value as any; + return acc; + }, {}) : {}, }; }, @@ -1618,26 +1537,24 @@ export const Operation = { toJSON(message: Operation): unknown { const obj: any = {}; if (message.tags) { - obj.tags = message.tags.map((e) => e); + obj.tags = message.tags.map(e => e); } else { obj.tags = []; } message.summary !== undefined && (obj.summary = message.summary); - message.description !== undefined && - (obj.description = message.description); + message.description !== undefined && (obj.description = message.description); message.externalDocs !== undefined && (obj.externalDocs = message.externalDocs ? ExternalDocumentation.toJSON(message.externalDocs) : undefined); - message.operationId !== undefined && - (obj.operationId = message.operationId); + message.operationId !== undefined && (obj.operationId = message.operationId); if (message.consumes) { - obj.consumes = message.consumes.map((e) => e); + obj.consumes = message.consumes.map(e => e); } else { obj.consumes = []; } if (message.produces) { - obj.produces = message.produces.map((e) => e); + obj.produces = message.produces.map(e => e); } else { obj.produces = []; } @@ -1648,15 +1565,13 @@ export const Operation = { }); } if (message.schemes) { - obj.schemes = message.schemes.map((e) => schemeToJSON(e)); + obj.schemes = message.schemes.map(e => schemeToJSON(e)); } else { obj.schemes = []; } message.deprecated !== undefined && (obj.deprecated = message.deprecated); if (message.security) { - obj.security = message.security.map((e) => - e ? SecurityRequirement.toJSON(e) : undefined - ); + obj.security = message.security.map(e => (e ? SecurityRequirement.toJSON(e) : undefined)); } else { obj.security = []; } @@ -1669,11 +1584,9 @@ export const Operation = { return obj; }, - fromPartial, I>>( - object: I - ): Operation { + fromPartial, I>>(object: I): Operation { const message = createBaseOperation(); - message.tags = object.tags?.map((e) => e) || []; + message.tags = object.tags?.map(e => e) || []; message.summary = object.summary ?? ""; message.description = object.description ?? ""; message.externalDocs = @@ -1681,8 +1594,8 @@ export const Operation = { ? ExternalDocumentation.fromPartial(object.externalDocs) : undefined; message.operationId = object.operationId ?? ""; - message.consumes = object.consumes?.map((e) => e) || []; - message.produces = object.produces?.map((e) => e) || []; + message.consumes = object.consumes?.map(e => e) || []; + message.produces = object.produces?.map(e => e) || []; message.responses = Object.entries(object.responses ?? {}).reduce<{ [key: string]: Response; }>((acc, [key, value]) => { @@ -1691,10 +1604,9 @@ export const Operation = { } return acc; }, {}); - message.schemes = object.schemes?.map((e) => e) || []; + message.schemes = object.schemes?.map(e => e) || []; message.deprecated = object.deprecated ?? false; - message.security = - object.security?.map((e) => SecurityRequirement.fromPartial(e)) || []; + message.security = object.security?.map(e => SecurityRequirement.fromPartial(e)) || []; message.extensions = Object.entries(object.extensions ?? {}).reduce<{ [key: string]: any; }>((acc, [key, value]) => { @@ -1712,10 +1624,7 @@ function createBaseOperation_ResponsesEntry(): Operation_ResponsesEntry { } export const Operation_ResponsesEntry = { - encode( - message: Operation_ResponsesEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Operation_ResponsesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } @@ -1725,10 +1634,7 @@ export const Operation_ResponsesEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Operation_ResponsesEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Operation_ResponsesEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseOperation_ResponsesEntry(); @@ -1765,7 +1671,7 @@ export const Operation_ResponsesEntry = { }, fromPartial, I>>( - object: I + object: I, ): Operation_ResponsesEntry { const message = createBaseOperation_ResponsesEntry(); message.key = object.key ?? ""; @@ -1782,26 +1688,17 @@ function createBaseOperation_ExtensionsEntry(): Operation_ExtensionsEntry { } export const Operation_ExtensionsEntry = { - encode( - message: Operation_ExtensionsEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Operation_ExtensionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } if (message.value !== undefined) { - Value.encode( - Value.wrap(message.value), - writer.uint32(18).fork() - ).ldelim(); + Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Operation_ExtensionsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Operation_ExtensionsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseOperation_ExtensionsEntry(); @@ -1837,7 +1734,7 @@ export const Operation_ExtensionsEntry = { }, fromPartial, I>>( - object: I + object: I, ): Operation_ExtensionsEntry { const message = createBaseOperation_ExtensionsEntry(); message.key = object.key ?? ""; @@ -1851,10 +1748,7 @@ function createBaseHeader(): Header { } export const Header = { - encode( - message: Header, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Header, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.description !== "") { writer.uint32(10).string(message.description); } @@ -1915,8 +1809,7 @@ export const Header = { toJSON(message: Header): unknown { const obj: any = {}; - message.description !== undefined && - (obj.description = message.description); + message.description !== undefined && (obj.description = message.description); message.type !== undefined && (obj.type = message.type); message.format !== undefined && (obj.format = message.format); message.default !== undefined && (obj.default = message.default); @@ -1946,10 +1839,7 @@ function createBaseResponse(): Response { } export const Response = { - encode( - message: Response, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Response, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.description !== "") { writer.uint32(10).string(message.description); } @@ -1957,22 +1847,16 @@ export const Response = { Schema.encode(message.schema, writer.uint32(18).fork()).ldelim(); } Object.entries(message.headers).forEach(([key, value]) => { - Response_HeadersEntry.encode( - { key: key as any, value }, - writer.uint32(26).fork() - ).ldelim(); + Response_HeadersEntry.encode({ key: key as any, value }, writer.uint32(26).fork()).ldelim(); }); Object.entries(message.examples).forEach(([key, value]) => { - Response_ExamplesEntry.encode( - { key: key as any, value }, - writer.uint32(34).fork() - ).ldelim(); + Response_ExamplesEntry.encode({ key: key as any, value }, writer.uint32(34).fork()).ldelim(); }); Object.entries(message.extensions).forEach(([key, value]) => { if (value !== undefined) { Response_ExtensionsEntry.encode( { key: key as any, value }, - writer.uint32(42).fork() + writer.uint32(42).fork(), ).ldelim(); } }); @@ -2005,10 +1889,7 @@ export const Response = { } break; case 5: - const entry5 = Response_ExtensionsEntry.decode( - reader, - reader.uint32() - ); + const entry5 = Response_ExtensionsEntry.decode(reader, reader.uint32()); if (entry5.value !== undefined) { message.extensions[entry5.key] = entry5.value; } @@ -2026,39 +1907,29 @@ export const Response = { description: isSet(object.description) ? String(object.description) : "", schema: isSet(object.schema) ? Schema.fromJSON(object.schema) : undefined, headers: isObject(object.headers) - ? Object.entries(object.headers).reduce<{ [key: string]: Header }>( - (acc, [key, value]) => { - acc[key] = Header.fromJSON(value); - return acc; - }, - {} - ) + ? Object.entries(object.headers).reduce<{ [key: string]: Header }>((acc, [key, value]) => { + acc[key] = Header.fromJSON(value); + return acc; + }, {}) : {}, examples: isObject(object.examples) - ? Object.entries(object.examples).reduce<{ [key: string]: string }>( - (acc, [key, value]) => { - acc[key] = String(value); - return acc; - }, - {} - ) + ? Object.entries(object.examples).reduce<{ [key: string]: string }>((acc, [key, value]) => { + acc[key] = String(value); + return acc; + }, {}) : {}, extensions: isObject(object.extensions) - ? Object.entries(object.extensions).reduce<{ [key: string]: any }>( - (acc, [key, value]) => { - acc[key] = value as any; - return acc; - }, - {} - ) + ? Object.entries(object.extensions).reduce<{ [key: string]: any }>((acc, [key, value]) => { + acc[key] = value as any; + return acc; + }, {}) : {}, }; }, toJSON(message: Response): unknown { const obj: any = {}; - message.description !== undefined && - (obj.description = message.description); + message.description !== undefined && (obj.description = message.description); message.schema !== undefined && (obj.schema = message.schema ? Schema.toJSON(message.schema) : undefined); obj.headers = {}; @@ -2122,10 +1993,7 @@ function createBaseResponse_HeadersEntry(): Response_HeadersEntry { } export const Response_HeadersEntry = { - encode( - message: Response_HeadersEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Response_HeadersEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } @@ -2135,10 +2003,7 @@ export const Response_HeadersEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Response_HeadersEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Response_HeadersEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseResponse_HeadersEntry(); @@ -2175,7 +2040,7 @@ export const Response_HeadersEntry = { }, fromPartial, I>>( - object: I + object: I, ): Response_HeadersEntry { const message = createBaseResponse_HeadersEntry(); message.key = object.key ?? ""; @@ -2192,10 +2057,7 @@ function createBaseResponse_ExamplesEntry(): Response_ExamplesEntry { } export const Response_ExamplesEntry = { - encode( - message: Response_ExamplesEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Response_ExamplesEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } @@ -2205,10 +2067,7 @@ export const Response_ExamplesEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Response_ExamplesEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Response_ExamplesEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseResponse_ExamplesEntry(); @@ -2244,7 +2103,7 @@ export const Response_ExamplesEntry = { }, fromPartial, I>>( - object: I + object: I, ): Response_ExamplesEntry { const message = createBaseResponse_ExamplesEntry(); message.key = object.key ?? ""; @@ -2258,26 +2117,17 @@ function createBaseResponse_ExtensionsEntry(): Response_ExtensionsEntry { } export const Response_ExtensionsEntry = { - encode( - message: Response_ExtensionsEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Response_ExtensionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } if (message.value !== undefined) { - Value.encode( - Value.wrap(message.value), - writer.uint32(18).fork() - ).ldelim(); + Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Response_ExtensionsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Response_ExtensionsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseResponse_ExtensionsEntry(); @@ -2313,7 +2163,7 @@ export const Response_ExtensionsEntry = { }, fromPartial, I>>( - object: I + object: I, ): Response_ExtensionsEntry { const message = createBaseResponse_ExtensionsEntry(); message.key = object.key ?? ""; @@ -2356,10 +2206,7 @@ export const Info = { } Object.entries(message.extensions).forEach(([key, value]) => { if (value !== undefined) { - Info_ExtensionsEntry.encode( - { key: key as any, value }, - writer.uint32(58).fork() - ).ldelim(); + Info_ExtensionsEntry.encode({ key: key as any, value }, writer.uint32(58).fork()).ldelim(); } }); return writer; @@ -2408,24 +2255,15 @@ export const Info = { return { title: isSet(object.title) ? String(object.title) : "", description: isSet(object.description) ? String(object.description) : "", - termsOfService: isSet(object.termsOfService) - ? String(object.termsOfService) - : "", - contact: isSet(object.contact) - ? Contact.fromJSON(object.contact) - : undefined, - license: isSet(object.license) - ? License.fromJSON(object.license) - : undefined, + termsOfService: isSet(object.termsOfService) ? String(object.termsOfService) : "", + contact: isSet(object.contact) ? Contact.fromJSON(object.contact) : undefined, + license: isSet(object.license) ? License.fromJSON(object.license) : undefined, version: isSet(object.version) ? String(object.version) : "", extensions: isObject(object.extensions) - ? Object.entries(object.extensions).reduce<{ [key: string]: any }>( - (acc, [key, value]) => { - acc[key] = value as any; - return acc; - }, - {} - ) + ? Object.entries(object.extensions).reduce<{ [key: string]: any }>((acc, [key, value]) => { + acc[key] = value as any; + return acc; + }, {}) : {}, }; }, @@ -2433,18 +2271,12 @@ export const Info = { toJSON(message: Info): unknown { const obj: any = {}; message.title !== undefined && (obj.title = message.title); - message.description !== undefined && - (obj.description = message.description); - message.termsOfService !== undefined && - (obj.termsOfService = message.termsOfService); + message.description !== undefined && (obj.description = message.description); + message.termsOfService !== undefined && (obj.termsOfService = message.termsOfService); message.contact !== undefined && - (obj.contact = message.contact - ? Contact.toJSON(message.contact) - : undefined); + (obj.contact = message.contact ? Contact.toJSON(message.contact) : undefined); message.license !== undefined && - (obj.license = message.license - ? License.toJSON(message.license) - : undefined); + (obj.license = message.license ? License.toJSON(message.license) : undefined); message.version !== undefined && (obj.version = message.version); obj.extensions = {}; if (message.extensions) { @@ -2486,26 +2318,17 @@ function createBaseInfo_ExtensionsEntry(): Info_ExtensionsEntry { } export const Info_ExtensionsEntry = { - encode( - message: Info_ExtensionsEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Info_ExtensionsEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } if (message.value !== undefined) { - Value.encode( - Value.wrap(message.value), - writer.uint32(18).fork() - ).ldelim(); + Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): Info_ExtensionsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): Info_ExtensionsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseInfo_ExtensionsEntry(); @@ -2541,7 +2364,7 @@ export const Info_ExtensionsEntry = { }, fromPartial, I>>( - object: I + object: I, ): Info_ExtensionsEntry { const message = createBaseInfo_ExtensionsEntry(); message.key = object.key ?? ""; @@ -2555,10 +2378,7 @@ function createBaseContact(): Contact { } export const Contact = { - encode( - message: Contact, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Contact, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2625,10 +2445,7 @@ function createBaseLicense(): License { } export const License = { - encode( - message: License, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: License, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.name !== "") { writer.uint32(10).string(message.name); } @@ -2686,10 +2503,7 @@ function createBaseExternalDocumentation(): ExternalDocumentation { } export const ExternalDocumentation = { - encode( - message: ExternalDocumentation, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: ExternalDocumentation, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.description !== "") { writer.uint32(10).string(message.description); } @@ -2699,10 +2513,7 @@ export const ExternalDocumentation = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): ExternalDocumentation { + decode(input: _m0.Reader | Uint8Array, length?: number): ExternalDocumentation { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseExternalDocumentation(); @@ -2732,14 +2543,13 @@ export const ExternalDocumentation = { toJSON(message: ExternalDocumentation): unknown { const obj: any = {}; - message.description !== undefined && - (obj.description = message.description); + message.description !== undefined && (obj.description = message.description); message.url !== undefined && (obj.url = message.url); return obj; }, fromPartial, I>>( - object: I + object: I, ): ExternalDocumentation { const message = createBaseExternalDocumentation(); message.description = object.description ?? ""; @@ -2759,10 +2569,7 @@ function createBaseSchema(): Schema { } export const Schema = { - encode( - message: Schema, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Schema, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.jsonSchema !== undefined) { JSONSchema.encode(message.jsonSchema, writer.uint32(10).fork()).ldelim(); } @@ -2773,10 +2580,7 @@ export const Schema = { writer.uint32(24).bool(message.readOnly); } if (message.externalDocs !== undefined) { - ExternalDocumentation.encode( - message.externalDocs, - writer.uint32(42).fork() - ).ldelim(); + ExternalDocumentation.encode(message.externalDocs, writer.uint32(42).fork()).ldelim(); } if (message.example !== "") { writer.uint32(50).string(message.example); @@ -2801,10 +2605,7 @@ export const Schema = { message.readOnly = reader.bool(); break; case 5: - message.externalDocs = ExternalDocumentation.decode( - reader, - reader.uint32() - ); + message.externalDocs = ExternalDocumentation.decode(reader, reader.uint32()); break; case 6: message.example = reader.string(); @@ -2819,12 +2620,8 @@ export const Schema = { fromJSON(object: any): Schema { return { - jsonSchema: isSet(object.jsonSchema) - ? JSONSchema.fromJSON(object.jsonSchema) - : undefined, - discriminator: isSet(object.discriminator) - ? String(object.discriminator) - : "", + jsonSchema: isSet(object.jsonSchema) ? JSONSchema.fromJSON(object.jsonSchema) : undefined, + discriminator: isSet(object.discriminator) ? String(object.discriminator) : "", readOnly: isSet(object.readOnly) ? Boolean(object.readOnly) : false, externalDocs: isSet(object.externalDocs) ? ExternalDocumentation.fromJSON(object.externalDocs) @@ -2836,11 +2633,8 @@ export const Schema = { toJSON(message: Schema): unknown { const obj: any = {}; message.jsonSchema !== undefined && - (obj.jsonSchema = message.jsonSchema - ? JSONSchema.toJSON(message.jsonSchema) - : undefined); - message.discriminator !== undefined && - (obj.discriminator = message.discriminator); + (obj.jsonSchema = message.jsonSchema ? JSONSchema.toJSON(message.jsonSchema) : undefined); + message.discriminator !== undefined && (obj.discriminator = message.discriminator); message.readOnly !== undefined && (obj.readOnly = message.readOnly); message.externalDocs !== undefined && (obj.externalDocs = message.externalDocs @@ -2899,10 +2693,7 @@ function createBaseJSONSchema(): JSONSchema { } export const JSONSchema = { - encode( - message: JSONSchema, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: JSONSchema, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.ref !== "") { writer.uint32(26).string(message.ref); } @@ -2980,14 +2771,14 @@ export const JSONSchema = { if (message.fieldConfiguration !== undefined) { JSONSchema_FieldConfiguration.encode( message.fieldConfiguration, - writer.uint32(8010).fork() + writer.uint32(8010).fork(), ).ldelim(); } Object.entries(message.extensions).forEach(([key, value]) => { if (value !== undefined) { JSONSchema_ExtensionsEntry.encode( { key: key as any, value }, - writer.uint32(386).fork() + writer.uint32(386).fork(), ).ldelim(); } }); @@ -3083,14 +2874,11 @@ export const JSONSchema = { case 1001: message.fieldConfiguration = JSONSchema_FieldConfiguration.decode( reader, - reader.uint32() + reader.uint32(), ); break; case 48: - const entry48 = JSONSchema_ExtensionsEntry.decode( - reader, - reader.uint32() - ); + const entry48 = JSONSchema_ExtensionsEntry.decode(reader, reader.uint32()); if (entry48.value !== undefined) { message.extensions[entry48.key] = entry48.value; } @@ -3113,53 +2901,32 @@ export const JSONSchema = { example: isSet(object.example) ? String(object.example) : "", multipleOf: isSet(object.multipleOf) ? Number(object.multipleOf) : 0, maximum: isSet(object.maximum) ? Number(object.maximum) : 0, - exclusiveMaximum: isSet(object.exclusiveMaximum) - ? Boolean(object.exclusiveMaximum) - : false, + exclusiveMaximum: isSet(object.exclusiveMaximum) ? Boolean(object.exclusiveMaximum) : false, minimum: isSet(object.minimum) ? Number(object.minimum) : 0, - exclusiveMinimum: isSet(object.exclusiveMinimum) - ? Boolean(object.exclusiveMinimum) - : false, + exclusiveMinimum: isSet(object.exclusiveMinimum) ? Boolean(object.exclusiveMinimum) : false, maxLength: isSet(object.maxLength) ? Number(object.maxLength) : 0, minLength: isSet(object.minLength) ? Number(object.minLength) : 0, pattern: isSet(object.pattern) ? String(object.pattern) : "", maxItems: isSet(object.maxItems) ? Number(object.maxItems) : 0, minItems: isSet(object.minItems) ? Number(object.minItems) : 0, - uniqueItems: isSet(object.uniqueItems) - ? Boolean(object.uniqueItems) - : false, - maxProperties: isSet(object.maxProperties) - ? Number(object.maxProperties) - : 0, - minProperties: isSet(object.minProperties) - ? Number(object.minProperties) - : 0, - required: Array.isArray(object?.required) - ? object.required.map((e: any) => String(e)) - : [], - array: Array.isArray(object?.array) - ? object.array.map((e: any) => String(e)) - : [], + uniqueItems: isSet(object.uniqueItems) ? Boolean(object.uniqueItems) : false, + maxProperties: isSet(object.maxProperties) ? Number(object.maxProperties) : 0, + minProperties: isSet(object.minProperties) ? Number(object.minProperties) : 0, + required: Array.isArray(object?.required) ? object.required.map((e: any) => String(e)) : [], + array: Array.isArray(object?.array) ? object.array.map((e: any) => String(e)) : [], type: Array.isArray(object?.type) - ? object.type.map((e: any) => - jSONSchema_JSONSchemaSimpleTypesFromJSON(e) - ) + ? object.type.map((e: any) => jSONSchema_JSONSchemaSimpleTypesFromJSON(e)) : [], format: isSet(object.format) ? String(object.format) : "", - enum: Array.isArray(object?.enum) - ? object.enum.map((e: any) => String(e)) - : [], + enum: Array.isArray(object?.enum) ? object.enum.map((e: any) => String(e)) : [], fieldConfiguration: isSet(object.fieldConfiguration) ? JSONSchema_FieldConfiguration.fromJSON(object.fieldConfiguration) : undefined, extensions: isObject(object.extensions) - ? Object.entries(object.extensions).reduce<{ [key: string]: any }>( - (acc, [key, value]) => { - acc[key] = value as any; - return acc; - }, - {} - ) + ? Object.entries(object.extensions).reduce<{ [key: string]: any }>((acc, [key, value]) => { + acc[key] = value as any; + return acc; + }, {}) : {}, }; }, @@ -3168,53 +2935,41 @@ export const JSONSchema = { const obj: any = {}; message.ref !== undefined && (obj.ref = message.ref); message.title !== undefined && (obj.title = message.title); - message.description !== undefined && - (obj.description = message.description); + message.description !== undefined && (obj.description = message.description); message.default !== undefined && (obj.default = message.default); message.readOnly !== undefined && (obj.readOnly = message.readOnly); message.example !== undefined && (obj.example = message.example); message.multipleOf !== undefined && (obj.multipleOf = message.multipleOf); message.maximum !== undefined && (obj.maximum = message.maximum); - message.exclusiveMaximum !== undefined && - (obj.exclusiveMaximum = message.exclusiveMaximum); + message.exclusiveMaximum !== undefined && (obj.exclusiveMaximum = message.exclusiveMaximum); message.minimum !== undefined && (obj.minimum = message.minimum); - message.exclusiveMinimum !== undefined && - (obj.exclusiveMinimum = message.exclusiveMinimum); - message.maxLength !== undefined && - (obj.maxLength = Math.round(message.maxLength)); - message.minLength !== undefined && - (obj.minLength = Math.round(message.minLength)); + message.exclusiveMinimum !== undefined && (obj.exclusiveMinimum = message.exclusiveMinimum); + message.maxLength !== undefined && (obj.maxLength = Math.round(message.maxLength)); + message.minLength !== undefined && (obj.minLength = Math.round(message.minLength)); message.pattern !== undefined && (obj.pattern = message.pattern); - message.maxItems !== undefined && - (obj.maxItems = Math.round(message.maxItems)); - message.minItems !== undefined && - (obj.minItems = Math.round(message.minItems)); - message.uniqueItems !== undefined && - (obj.uniqueItems = message.uniqueItems); - message.maxProperties !== undefined && - (obj.maxProperties = Math.round(message.maxProperties)); - message.minProperties !== undefined && - (obj.minProperties = Math.round(message.minProperties)); + message.maxItems !== undefined && (obj.maxItems = Math.round(message.maxItems)); + message.minItems !== undefined && (obj.minItems = Math.round(message.minItems)); + message.uniqueItems !== undefined && (obj.uniqueItems = message.uniqueItems); + message.maxProperties !== undefined && (obj.maxProperties = Math.round(message.maxProperties)); + message.minProperties !== undefined && (obj.minProperties = Math.round(message.minProperties)); if (message.required) { - obj.required = message.required.map((e) => e); + obj.required = message.required.map(e => e); } else { obj.required = []; } if (message.array) { - obj.array = message.array.map((e) => e); + obj.array = message.array.map(e => e); } else { obj.array = []; } if (message.type) { - obj.type = message.type.map((e) => - jSONSchema_JSONSchemaSimpleTypesToJSON(e) - ); + obj.type = message.type.map(e => jSONSchema_JSONSchemaSimpleTypesToJSON(e)); } else { obj.type = []; } message.format !== undefined && (obj.format = message.format); if (message.enum) { - obj.enum = message.enum.map((e) => e); + obj.enum = message.enum.map(e => e); } else { obj.enum = []; } @@ -3231,9 +2986,7 @@ export const JSONSchema = { return obj; }, - fromPartial, I>>( - object: I - ): JSONSchema { + fromPartial, I>>(object: I): JSONSchema { const message = createBaseJSONSchema(); message.ref = object.ref ?? ""; message.title = object.title ?? ""; @@ -3254,14 +3007,13 @@ export const JSONSchema = { message.uniqueItems = object.uniqueItems ?? false; message.maxProperties = object.maxProperties ?? 0; message.minProperties = object.minProperties ?? 0; - message.required = object.required?.map((e) => e) || []; - message.array = object.array?.map((e) => e) || []; - message.type = object.type?.map((e) => e) || []; + message.required = object.required?.map(e => e) || []; + message.array = object.array?.map(e => e) || []; + message.type = object.type?.map(e => e) || []; message.format = object.format ?? ""; - message.enum = object.enum?.map((e) => e) || []; + message.enum = object.enum?.map(e => e) || []; message.fieldConfiguration = - object.fieldConfiguration !== undefined && - object.fieldConfiguration !== null + object.fieldConfiguration !== undefined && object.fieldConfiguration !== null ? JSONSchema_FieldConfiguration.fromPartial(object.fieldConfiguration) : undefined; message.extensions = Object.entries(object.extensions ?? {}).reduce<{ @@ -3283,7 +3035,7 @@ function createBaseJSONSchema_FieldConfiguration(): JSONSchema_FieldConfiguratio export const JSONSchema_FieldConfiguration = { encode( message: JSONSchema_FieldConfiguration, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.pathParamName !== "") { writer.uint32(378).string(message.pathParamName); @@ -3291,10 +3043,7 @@ export const JSONSchema_FieldConfiguration = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): JSONSchema_FieldConfiguration { + decode(input: _m0.Reader | Uint8Array, length?: number): JSONSchema_FieldConfiguration { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseJSONSchema_FieldConfiguration(); @@ -3314,21 +3063,18 @@ export const JSONSchema_FieldConfiguration = { fromJSON(object: any): JSONSchema_FieldConfiguration { return { - pathParamName: isSet(object.pathParamName) - ? String(object.pathParamName) - : "", + pathParamName: isSet(object.pathParamName) ? String(object.pathParamName) : "", }; }, toJSON(message: JSONSchema_FieldConfiguration): unknown { const obj: any = {}; - message.pathParamName !== undefined && - (obj.pathParamName = message.pathParamName); + message.pathParamName !== undefined && (obj.pathParamName = message.pathParamName); return obj; }, fromPartial, I>>( - object: I + object: I, ): JSONSchema_FieldConfiguration { const message = createBaseJSONSchema_FieldConfiguration(); message.pathParamName = object.pathParamName ?? ""; @@ -3343,24 +3089,18 @@ function createBaseJSONSchema_ExtensionsEntry(): JSONSchema_ExtensionsEntry { export const JSONSchema_ExtensionsEntry = { encode( message: JSONSchema_ExtensionsEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } if (message.value !== undefined) { - Value.encode( - Value.wrap(message.value), - writer.uint32(18).fork() - ).ldelim(); + Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): JSONSchema_ExtensionsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): JSONSchema_ExtensionsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseJSONSchema_ExtensionsEntry(); @@ -3396,7 +3136,7 @@ export const JSONSchema_ExtensionsEntry = { }, fromPartial, I>>( - object: I + object: I, ): JSONSchema_ExtensionsEntry { const message = createBaseJSONSchema_ExtensionsEntry(); message.key = object.key ?? ""; @@ -3415,10 +3155,7 @@ export const Tag = { writer.uint32(18).string(message.description); } if (message.externalDocs !== undefined) { - ExternalDocumentation.encode( - message.externalDocs, - writer.uint32(26).fork() - ).ldelim(); + ExternalDocumentation.encode(message.externalDocs, writer.uint32(26).fork()).ldelim(); } return writer; }, @@ -3434,10 +3171,7 @@ export const Tag = { message.description = reader.string(); break; case 3: - message.externalDocs = ExternalDocumentation.decode( - reader, - reader.uint32() - ); + message.externalDocs = ExternalDocumentation.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -3458,8 +3192,7 @@ export const Tag = { toJSON(message: Tag): unknown { const obj: any = {}; - message.description !== undefined && - (obj.description = message.description); + message.description !== undefined && (obj.description = message.description); message.externalDocs !== undefined && (obj.externalDocs = message.externalDocs ? ExternalDocumentation.toJSON(message.externalDocs) @@ -3483,14 +3216,11 @@ function createBaseSecurityDefinitions(): SecurityDefinitions { } export const SecurityDefinitions = { - encode( - message: SecurityDefinitions, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: SecurityDefinitions, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { Object.entries(message.security).forEach(([key, value]) => { SecurityDefinitions_SecurityEntry.encode( { key: key as any, value }, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); }); return writer; @@ -3504,10 +3234,7 @@ export const SecurityDefinitions = { const tag = reader.uint32(); switch (tag >>> 3) { case 1: - const entry1 = SecurityDefinitions_SecurityEntry.decode( - reader, - reader.uint32() - ); + const entry1 = SecurityDefinitions_SecurityEntry.decode(reader, reader.uint32()); if (entry1.value !== undefined) { message.security[entry1.key] = entry1.value; } @@ -3545,7 +3272,7 @@ export const SecurityDefinitions = { }, fromPartial, I>>( - object: I + object: I, ): SecurityDefinitions { const message = createBaseSecurityDefinitions(); message.security = Object.entries(object.security ?? {}).reduce<{ @@ -3567,7 +3294,7 @@ function createBaseSecurityDefinitions_SecurityEntry(): SecurityDefinitions_Secu export const SecurityDefinitions_SecurityEntry = { encode( message: SecurityDefinitions_SecurityEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -3578,10 +3305,7 @@ export const SecurityDefinitions_SecurityEntry = { return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): SecurityDefinitions_SecurityEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): SecurityDefinitions_SecurityEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSecurityDefinitions_SecurityEntry(); @@ -3605,9 +3329,7 @@ export const SecurityDefinitions_SecurityEntry = { fromJSON(object: any): SecurityDefinitions_SecurityEntry { return { key: isSet(object.key) ? String(object.key) : "", - value: isSet(object.value) - ? SecurityScheme.fromJSON(object.value) - : undefined, + value: isSet(object.value) ? SecurityScheme.fromJSON(object.value) : undefined, }; }, @@ -3615,15 +3337,13 @@ export const SecurityDefinitions_SecurityEntry = { const obj: any = {}; message.key !== undefined && (obj.key = message.key); message.value !== undefined && - (obj.value = message.value - ? SecurityScheme.toJSON(message.value) - : undefined); + (obj.value = message.value ? SecurityScheme.toJSON(message.value) : undefined); return obj; }, - fromPartial< - I extends Exact, I> - >(object: I): SecurityDefinitions_SecurityEntry { + fromPartial, I>>( + object: I, + ): SecurityDefinitions_SecurityEntry { const message = createBaseSecurityDefinitions_SecurityEntry(); message.key = object.key ?? ""; message.value = @@ -3649,10 +3369,7 @@ function createBaseSecurityScheme(): SecurityScheme { } export const SecurityScheme = { - encode( - message: SecurityScheme, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: SecurityScheme, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.type !== 0) { writer.uint32(8).int32(message.type); } @@ -3681,7 +3398,7 @@ export const SecurityScheme = { if (value !== undefined) { SecurityScheme_ExtensionsEntry.encode( { key: key as any, value }, - writer.uint32(74).fork() + writer.uint32(74).fork(), ).ldelim(); } }); @@ -3720,10 +3437,7 @@ export const SecurityScheme = { message.scopes = Scopes.decode(reader, reader.uint32()); break; case 9: - const entry9 = SecurityScheme_ExtensionsEntry.decode( - reader, - reader.uint32() - ); + const entry9 = SecurityScheme_ExtensionsEntry.decode(reader, reader.uint32()); if (entry9.value !== undefined) { message.extensions[entry9.key] = entry9.value; } @@ -3743,35 +3457,26 @@ export const SecurityScheme = { name: isSet(object.name) ? String(object.name) : "", in: isSet(object.in) ? securityScheme_InFromJSON(object.in) : 0, flow: isSet(object.flow) ? securityScheme_FlowFromJSON(object.flow) : 0, - authorizationUrl: isSet(object.authorizationUrl) - ? String(object.authorizationUrl) - : "", + authorizationUrl: isSet(object.authorizationUrl) ? String(object.authorizationUrl) : "", tokenUrl: isSet(object.tokenUrl) ? String(object.tokenUrl) : "", scopes: isSet(object.scopes) ? Scopes.fromJSON(object.scopes) : undefined, extensions: isObject(object.extensions) - ? Object.entries(object.extensions).reduce<{ [key: string]: any }>( - (acc, [key, value]) => { - acc[key] = value as any; - return acc; - }, - {} - ) + ? Object.entries(object.extensions).reduce<{ [key: string]: any }>((acc, [key, value]) => { + acc[key] = value as any; + return acc; + }, {}) : {}, }; }, toJSON(message: SecurityScheme): unknown { const obj: any = {}; - message.type !== undefined && - (obj.type = securityScheme_TypeToJSON(message.type)); - message.description !== undefined && - (obj.description = message.description); + message.type !== undefined && (obj.type = securityScheme_TypeToJSON(message.type)); + message.description !== undefined && (obj.description = message.description); message.name !== undefined && (obj.name = message.name); message.in !== undefined && (obj.in = securityScheme_InToJSON(message.in)); - message.flow !== undefined && - (obj.flow = securityScheme_FlowToJSON(message.flow)); - message.authorizationUrl !== undefined && - (obj.authorizationUrl = message.authorizationUrl); + message.flow !== undefined && (obj.flow = securityScheme_FlowToJSON(message.flow)); + message.authorizationUrl !== undefined && (obj.authorizationUrl = message.authorizationUrl); message.tokenUrl !== undefined && (obj.tokenUrl = message.tokenUrl); message.scopes !== undefined && (obj.scopes = message.scopes ? Scopes.toJSON(message.scopes) : undefined); @@ -3784,9 +3489,7 @@ export const SecurityScheme = { return obj; }, - fromPartial, I>>( - object: I - ): SecurityScheme { + fromPartial, I>>(object: I): SecurityScheme { const message = createBaseSecurityScheme(); message.type = object.type ?? 0; message.description = object.description ?? ""; @@ -3818,24 +3521,18 @@ function createBaseSecurityScheme_ExtensionsEntry(): SecurityScheme_ExtensionsEn export const SecurityScheme_ExtensionsEntry = { encode( message: SecurityScheme_ExtensionsEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } if (message.value !== undefined) { - Value.encode( - Value.wrap(message.value), - writer.uint32(18).fork() - ).ldelim(); + Value.encode(Value.wrap(message.value), writer.uint32(18).fork()).ldelim(); } return writer; }, - decode( - input: _m0.Reader | Uint8Array, - length?: number - ): SecurityScheme_ExtensionsEntry { + decode(input: _m0.Reader | Uint8Array, length?: number): SecurityScheme_ExtensionsEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; const message = createBaseSecurityScheme_ExtensionsEntry(); @@ -3871,7 +3568,7 @@ export const SecurityScheme_ExtensionsEntry = { }, fromPartial, I>>( - object: I + object: I, ): SecurityScheme_ExtensionsEntry { const message = createBaseSecurityScheme_ExtensionsEntry(); message.key = object.key ?? ""; @@ -3885,14 +3582,11 @@ function createBaseSecurityRequirement(): SecurityRequirement { } export const SecurityRequirement = { - encode( - message: SecurityRequirement, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: SecurityRequirement, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { Object.entries(message.securityRequirement).forEach(([key, value]) => { SecurityRequirement_SecurityRequirementEntry.encode( { key: key as any, value }, - writer.uint32(10).fork() + writer.uint32(10).fork(), ).ldelim(); }); return writer; @@ -3908,7 +3602,7 @@ export const SecurityRequirement = { case 1: const entry1 = SecurityRequirement_SecurityRequirementEntry.decode( reader, - reader.uint32() + reader.uint32(), ); if (entry1.value !== undefined) { message.securityRequirement[entry1.key] = entry1.value; @@ -3928,8 +3622,7 @@ export const SecurityRequirement = { ? Object.entries(object.securityRequirement).reduce<{ [key: string]: SecurityRequirement_SecurityRequirementValue; }>((acc, [key, value]) => { - acc[key] = - SecurityRequirement_SecurityRequirementValue.fromJSON(value); + acc[key] = SecurityRequirement_SecurityRequirementValue.fromJSON(value); return acc; }, {}) : {}, @@ -3941,29 +3634,24 @@ export const SecurityRequirement = { obj.securityRequirement = {}; if (message.securityRequirement) { Object.entries(message.securityRequirement).forEach(([k, v]) => { - obj.securityRequirement[k] = - SecurityRequirement_SecurityRequirementValue.toJSON(v); + obj.securityRequirement[k] = SecurityRequirement_SecurityRequirementValue.toJSON(v); }); } return obj; }, fromPartial, I>>( - object: I + object: I, ): SecurityRequirement { const message = createBaseSecurityRequirement(); - message.securityRequirement = Object.entries( - object.securityRequirement ?? {} - ).reduce<{ [key: string]: SecurityRequirement_SecurityRequirementValue }>( - (acc, [key, value]) => { - if (value !== undefined) { - acc[key] = - SecurityRequirement_SecurityRequirementValue.fromPartial(value); - } - return acc; - }, - {} - ); + message.securityRequirement = Object.entries(object.securityRequirement ?? {}).reduce<{ + [key: string]: SecurityRequirement_SecurityRequirementValue; + }>((acc, [key, value]) => { + if (value !== undefined) { + acc[key] = SecurityRequirement_SecurityRequirementValue.fromPartial(value); + } + return acc; + }, {}); return message; }, }; @@ -3975,7 +3663,7 @@ function createBaseSecurityRequirement_SecurityRequirementValue(): SecurityRequi export const SecurityRequirement_SecurityRequirementValue = { encode( message: SecurityRequirement_SecurityRequirementValue, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { for (const v of message.scope) { writer.uint32(10).string(v!); @@ -3985,7 +3673,7 @@ export const SecurityRequirement_SecurityRequirementValue = { decode( input: _m0.Reader | Uint8Array, - length?: number + length?: number, ): SecurityRequirement_SecurityRequirementValue { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; @@ -4006,30 +3694,25 @@ export const SecurityRequirement_SecurityRequirementValue = { fromJSON(object: any): SecurityRequirement_SecurityRequirementValue { return { - scope: Array.isArray(object?.scope) - ? object.scope.map((e: any) => String(e)) - : [], + scope: Array.isArray(object?.scope) ? object.scope.map((e: any) => String(e)) : [], }; }, toJSON(message: SecurityRequirement_SecurityRequirementValue): unknown { const obj: any = {}; if (message.scope) { - obj.scope = message.scope.map((e) => e); + obj.scope = message.scope.map(e => e); } else { obj.scope = []; } return obj; }, - fromPartial< - I extends Exact< - DeepPartial, - I - > - >(object: I): SecurityRequirement_SecurityRequirementValue { + fromPartial, I>>( + object: I, + ): SecurityRequirement_SecurityRequirementValue { const message = createBaseSecurityRequirement_SecurityRequirementValue(); - message.scope = object.scope?.map((e) => e) || []; + message.scope = object.scope?.map(e => e) || []; return message; }, }; @@ -4041,7 +3724,7 @@ function createBaseSecurityRequirement_SecurityRequirementEntry(): SecurityRequi export const SecurityRequirement_SecurityRequirementEntry = { encode( message: SecurityRequirement_SecurityRequirementEntry, - writer: _m0.Writer = _m0.Writer.create() + writer: _m0.Writer = _m0.Writer.create(), ): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); @@ -4049,7 +3732,7 @@ export const SecurityRequirement_SecurityRequirementEntry = { if (message.value !== undefined) { SecurityRequirement_SecurityRequirementValue.encode( message.value, - writer.uint32(18).fork() + writer.uint32(18).fork(), ).ldelim(); } return writer; @@ -4057,7 +3740,7 @@ export const SecurityRequirement_SecurityRequirementEntry = { decode( input: _m0.Reader | Uint8Array, - length?: number + length?: number, ): SecurityRequirement_SecurityRequirementEntry { const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input); let end = length === undefined ? reader.len : reader.pos + length; @@ -4071,7 +3754,7 @@ export const SecurityRequirement_SecurityRequirementEntry = { case 2: message.value = SecurityRequirement_SecurityRequirementValue.decode( reader, - reader.uint32() + reader.uint32(), ); break; default: @@ -4101,12 +3784,9 @@ export const SecurityRequirement_SecurityRequirementEntry = { return obj; }, - fromPartial< - I extends Exact< - DeepPartial, - I - > - >(object: I): SecurityRequirement_SecurityRequirementEntry { + fromPartial, I>>( + object: I, + ): SecurityRequirement_SecurityRequirementEntry { const message = createBaseSecurityRequirement_SecurityRequirementEntry(); message.key = object.key ?? ""; message.value = @@ -4122,15 +3802,9 @@ function createBaseScopes(): Scopes { } export const Scopes = { - encode( - message: Scopes, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Scopes, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { Object.entries(message.scope).forEach(([key, value]) => { - Scopes_ScopeEntry.encode( - { key: key as any, value }, - writer.uint32(10).fork() - ).ldelim(); + Scopes_ScopeEntry.encode({ key: key as any, value }, writer.uint32(10).fork()).ldelim(); }); return writer; }, @@ -4159,13 +3833,10 @@ export const Scopes = { fromJSON(object: any): Scopes { return { scope: isObject(object.scope) - ? Object.entries(object.scope).reduce<{ [key: string]: string }>( - (acc, [key, value]) => { - acc[key] = String(value); - return acc; - }, - {} - ) + ? Object.entries(object.scope).reduce<{ [key: string]: string }>((acc, [key, value]) => { + acc[key] = String(value); + return acc; + }, {}) : {}, }; }, @@ -4200,10 +3871,7 @@ function createBaseScopes_ScopeEntry(): Scopes_ScopeEntry { } export const Scopes_ScopeEntry = { - encode( - message: Scopes_ScopeEntry, - writer: _m0.Writer = _m0.Writer.create() - ): _m0.Writer { + encode(message: Scopes_ScopeEntry, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer { if (message.key !== "") { writer.uint32(10).string(message.key); } @@ -4248,9 +3916,7 @@ export const Scopes_ScopeEntry = { return obj; }, - fromPartial, I>>( - object: I - ): Scopes_ScopeEntry { + fromPartial, I>>(object: I): Scopes_ScopeEntry { const message = createBaseScopes_ScopeEntry(); message.key = object.key ?? ""; message.value = object.value ?? ""; @@ -4269,14 +3935,7 @@ var globalThis: any = (() => { throw "Unable to locate global object"; })(); -type Builtin = - | Date - | Function - | Uint8Array - | string - | number - | boolean - | undefined; +type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T @@ -4291,10 +3950,7 @@ export type DeepPartial = T extends Builtin type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P - : P & { [K in keyof P]: Exact } & Record< - Exclude>, - never - >; + : P & { [K in keyof P]: Exact } & Record>, never>; function longToNumber(long: Long): number { if (long.gt(Number.MAX_SAFE_INTEGER)) { diff --git a/dashboard/src/reducers/cluster.test.ts b/dashboard/src/reducers/cluster.test.ts index 054ee2c2c02a..f039e24d3e89 100644 --- a/dashboard/src/reducers/cluster.test.ts +++ b/dashboard/src/reducers/cluster.test.ts @@ -453,6 +453,7 @@ describe("clusterReducer", () => { remoteComponentsUrl: "", customAppViews: [], skipAvailablePackageDetails: false, + createNamespaceLabels: {}, } as IConfig; it("re-writes the clusters to match the config.clusters state", () => { expect( diff --git a/dashboard/src/reducers/config.ts b/dashboard/src/reducers/config.ts index 28c909c1861e..ca54b468aafb 100644 --- a/dashboard/src/reducers/config.ts +++ b/dashboard/src/reducers/config.ts @@ -26,7 +26,7 @@ export const initialState: IConfigState = { remoteComponentsUrl: "", customAppViews: [], skipAvailablePackageDetails: false, - createNamespaceLabels: {} + createNamespaceLabels: {}, }; const configReducer = (state: IConfigState = initialState, action: ConfigAction): IConfigState => { diff --git a/dashboard/src/shared/Auth.test.ts b/dashboard/src/shared/Auth.test.ts index 4113fd7ce27d..74b31e919a74 100644 --- a/dashboard/src/shared/Auth.test.ts +++ b/dashboard/src/shared/Auth.test.ts @@ -241,6 +241,7 @@ describe("Auth", () => { remoteComponentsUrl: "", customAppViews: [], skipAvailablePackageDetails: false, + createNamespaceLabels: {}, }); expect(mockedAssign).toBeCalledWith(oauthLogoutURI); @@ -263,6 +264,7 @@ describe("Auth", () => { remoteComponentsUrl: "", customAppViews: [], skipAvailablePackageDetails: false, + createNamespaceLabels: {}, }); expect(mockedAssign).toBeCalledWith("/oauth2/sign_out"); diff --git a/dashboard/src/shared/Namespace.ts b/dashboard/src/shared/Namespace.ts index 2841fc2ae967..7143f0e0b14a 100644 --- a/dashboard/src/shared/Namespace.ts +++ b/dashboard/src/shared/Namespace.ts @@ -21,13 +21,17 @@ export default class Namespace { return data; } - public static async create(cluster: string, namespace: string, labels: {[key: string]: string}) { + public static async create( + cluster: string, + namespace: string, + labels: { [key: string]: string }, + ) { await this.resourcesClient().CreateNamespace({ context: { cluster, namespace, }, - labels: labels + labels: labels, }); }