-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Converted test-utils to publish ts files
Removed unused protos and made sure generate is triggered on tests Signed-off-by: Paul Sachs <[email protected]>
- Loading branch information
1 parent
2ea0dac
commit ca07a58
Showing
26 changed files
with
707 additions
and
177 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,4 +9,4 @@ plugins: | |
- local: protoc-gen-es | ||
out: gen | ||
opt: | ||
- target=ts | ||
- target=dts+js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
// Copyright 2021-2023 The Connect Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// @generated by protoc-gen-es v2.2.0 with parameter "target=dts+js" | ||
// @generated from file bigint.proto (syntax proto3) | ||
/* eslint-disable */ | ||
|
||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; | ||
import type { Message } from "@bufbuild/protobuf"; | ||
import type { EmptySchema } from "@bufbuild/protobuf/wkt"; | ||
|
||
/** | ||
* Describes the file bigint.proto. | ||
*/ | ||
export declare const file_bigint: GenFile; | ||
|
||
/** | ||
* @generated from message CountRequest | ||
*/ | ||
export declare type CountRequest = Message<"CountRequest"> & { | ||
/** | ||
* @generated from field: int64 add = 1; | ||
*/ | ||
add: bigint; | ||
}; | ||
|
||
/** | ||
* Describes the message CountRequest. | ||
* Use `create(CountRequestSchema)` to create a new message. | ||
*/ | ||
export declare const CountRequestSchema: GenMessage<CountRequest>; | ||
|
||
/** | ||
* @generated from message CountResponse | ||
*/ | ||
export declare type CountResponse = Message<"CountResponse"> & { | ||
/** | ||
* @generated from field: int64 count = 1; | ||
*/ | ||
count: bigint; | ||
}; | ||
|
||
/** | ||
* Describes the message CountResponse. | ||
* Use `create(CountResponseSchema)` to create a new message. | ||
*/ | ||
export declare const CountResponseSchema: GenMessage<CountResponse>; | ||
|
||
/** | ||
* @generated from service BigIntService | ||
*/ | ||
export declare const BigIntService: GenService<{ | ||
/** | ||
* @generated from rpc BigIntService.Count | ||
*/ | ||
count: { | ||
methodKind: "unary"; | ||
input: typeof CountRequestSchema; | ||
output: typeof CountResponseSchema; | ||
}, | ||
/** | ||
* @generated from rpc BigIntService.GetCount | ||
*/ | ||
getCount: { | ||
methodKind: "unary"; | ||
input: typeof EmptySchema; | ||
output: typeof CountResponseSchema; | ||
}, | ||
}>; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
// Copyright 2021-2023 The Connect Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// @generated by protoc-gen-es v2.2.0 with parameter "target=dts+js" | ||
// @generated from file bigint.proto (syntax proto3) | ||
/* eslint-disable */ | ||
|
||
import { fileDesc, messageDesc, serviceDesc } from "@bufbuild/protobuf/codegenv1"; | ||
import { file_google_protobuf_empty } from "@bufbuild/protobuf/wkt"; | ||
|
||
/** | ||
* Describes the file bigint.proto. | ||
*/ | ||
export const file_bigint = /*@__PURE__*/ | ||
fileDesc("CgxiaWdpbnQucHJvdG8iGwoMQ291bnRSZXF1ZXN0EgsKA2FkZBgBIAEoAyIeCg1Db3VudFJlc3BvbnNlEg0KBWNvdW50GAEgASgDMmsKDUJpZ0ludFNlcnZpY2USJgoFQ291bnQSDS5Db3VudFJlcXVlc3QaDi5Db3VudFJlc3BvbnNlEjIKCEdldENvdW50EhYuZ29vZ2xlLnByb3RvYnVmLkVtcHR5Gg4uQ291bnRSZXNwb25zZWIGcHJvdG8z", [file_google_protobuf_empty]); | ||
|
||
/** | ||
* Describes the message CountRequest. | ||
* Use `create(CountRequestSchema)` to create a new message. | ||
*/ | ||
export const CountRequestSchema = /*@__PURE__*/ | ||
messageDesc(file_bigint, 0); | ||
|
||
/** | ||
* Describes the message CountResponse. | ||
* Use `create(CountResponseSchema)` to create a new message. | ||
*/ | ||
export const CountResponseSchema = /*@__PURE__*/ | ||
messageDesc(file_bigint, 1); | ||
|
||
/** | ||
* @generated from service BigIntService | ||
*/ | ||
export const BigIntService = /*@__PURE__*/ | ||
serviceDesc(file_bigint, 0); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
// Copyright 2021-2023 The Connect Authors | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
// @generated by protoc-gen-es v2.2.0 with parameter "target=dts+js" | ||
// @generated from file eliza.proto (package connectrpc.eliza.v1, syntax proto3) | ||
/* eslint-disable */ | ||
|
||
import type { GenFile, GenMessage, GenService } from "@bufbuild/protobuf/codegenv1"; | ||
import type { Message } from "@bufbuild/protobuf"; | ||
|
||
/** | ||
* Describes the file eliza.proto. | ||
*/ | ||
export declare const file_eliza: GenFile; | ||
|
||
/** | ||
* SayRequest is a single-sentence request. | ||
* | ||
* @generated from message connectrpc.eliza.v1.SayRequest | ||
*/ | ||
export declare type SayRequest = Message<"connectrpc.eliza.v1.SayRequest"> & { | ||
/** | ||
* @generated from field: string sentence = 1; | ||
*/ | ||
sentence: string; | ||
}; | ||
|
||
/** | ||
* Describes the message connectrpc.eliza.v1.SayRequest. | ||
* Use `create(SayRequestSchema)` to create a new message. | ||
*/ | ||
export declare const SayRequestSchema: GenMessage<SayRequest>; | ||
|
||
/** | ||
* SayResponse is a single-sentence response. | ||
* | ||
* @generated from message connectrpc.eliza.v1.SayResponse | ||
*/ | ||
export declare type SayResponse = Message<"connectrpc.eliza.v1.SayResponse"> & { | ||
/** | ||
* @generated from field: string sentence = 1; | ||
*/ | ||
sentence: string; | ||
}; | ||
|
||
/** | ||
* Describes the message connectrpc.eliza.v1.SayResponse. | ||
* Use `create(SayResponseSchema)` to create a new message. | ||
*/ | ||
export declare const SayResponseSchema: GenMessage<SayResponse>; | ||
|
||
/** | ||
* ElizaService provides a way to talk to Eliza, a port of the DOCTOR script | ||
* for Joseph Weizenbaum's original ELIZA program. Created in the mid-1960s at | ||
* the MIT Artificial Intelligence Laboratory, ELIZA demonstrates the | ||
* superficiality of human-computer communication. DOCTOR simulates a | ||
* psychotherapist, and is commonly found as an Easter egg in emacs | ||
* distributions. | ||
* | ||
* @generated from service connectrpc.eliza.v1.ElizaService | ||
*/ | ||
export declare const ElizaService: GenService<{ | ||
/** | ||
* Say is a unary RPC. Eliza responds to the prompt with a single sentence. | ||
* | ||
* @generated from rpc connectrpc.eliza.v1.ElizaService.Say | ||
*/ | ||
say: { | ||
methodKind: "unary"; | ||
input: typeof SayRequestSchema; | ||
output: typeof SayResponseSchema; | ||
}, | ||
}>; | ||
|
Oops, something went wrong.