@in-human-resources/backend-proto 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -0
- package/buf.gen.yaml +17 -0
- package/buf.yaml +10 -0
- package/gen/ts/api/v1/auth_connect.ts +195 -0
- package/gen/ts/api/v1/auth_pb.ts +1282 -0
- package/gen/ts/api/v1/candidate_connect.ts +172 -0
- package/gen/ts/api/v1/candidate_pb.ts +1192 -0
- package/gen/ts/api/v1/common_pb.ts +441 -0
- package/gen/ts/api/v1/company_connect.ts +170 -0
- package/gen/ts/api/v1/company_pb.ts +1078 -0
- package/gen/ts/auth/v1/service_connect.ts +567 -0
- package/gen/ts/auth/v1/service_pb.ts +5373 -0
- package/gen/ts/common/v1/common_pb.ts +51 -0
- package/package.json +38 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=.js"
|
|
2
|
+
// @generated from file common/v1/common.proto (package common.v1, syntax proto3)
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
// @ts-nocheck
|
|
5
|
+
|
|
6
|
+
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
|
+
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* @generated from message common.v1.RequestMeta
|
|
11
|
+
*/
|
|
12
|
+
export class RequestMeta extends Message<RequestMeta> {
|
|
13
|
+
/**
|
|
14
|
+
* @generated from field: string idempotency_key = 1;
|
|
15
|
+
*/
|
|
16
|
+
idempotencyKey = "";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* @generated from field: map<string, string> tags = 2;
|
|
20
|
+
*/
|
|
21
|
+
tags: { [key: string]: string } = {};
|
|
22
|
+
|
|
23
|
+
constructor(data?: PartialMessage<RequestMeta>) {
|
|
24
|
+
super();
|
|
25
|
+
proto3.util.initPartial(data, this);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
29
|
+
static readonly typeName = "common.v1.RequestMeta";
|
|
30
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
31
|
+
{ no: 1, name: "idempotency_key", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
32
|
+
{ no: 2, name: "tags", kind: "map", K: 9 /* ScalarType.STRING */, V: {kind: "scalar", T: 9 /* ScalarType.STRING */} },
|
|
33
|
+
]);
|
|
34
|
+
|
|
35
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RequestMeta {
|
|
36
|
+
return new RequestMeta().fromBinary(bytes, options);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): RequestMeta {
|
|
40
|
+
return new RequestMeta().fromJson(jsonValue, options);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): RequestMeta {
|
|
44
|
+
return new RequestMeta().fromJsonString(jsonString, options);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
static equals(a: RequestMeta | PlainMessage<RequestMeta> | undefined, b: RequestMeta | PlainMessage<RequestMeta> | undefined): boolean {
|
|
48
|
+
return proto3.util.equals(RequestMeta, a, b);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@in-human-resources/backend-proto",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Protobuf-ES and Connect-ES generated clients for api.v1, auth.v1, and common.v1",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"gen/ts",
|
|
10
|
+
"buf.yaml",
|
|
11
|
+
"buf.gen.yaml"
|
|
12
|
+
],
|
|
13
|
+
"scripts": {
|
|
14
|
+
"generate": "buf generate"
|
|
15
|
+
},
|
|
16
|
+
"peerDependencies": {
|
|
17
|
+
"@bufbuild/protobuf": "^1.10.0",
|
|
18
|
+
"@connectrpc/connect": "^1.4.0"
|
|
19
|
+
},
|
|
20
|
+
"peerDependenciesMeta": {
|
|
21
|
+
"@connectrpc/connect-web": {
|
|
22
|
+
"optional": true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@bufbuild/buf": "^1.28.0",
|
|
27
|
+
"@bufbuild/protoc-gen-es": "^1.10.1",
|
|
28
|
+
"@connectrpc/protoc-gen-connect-es": "^1.4.0"
|
|
29
|
+
},
|
|
30
|
+
"repository": {
|
|
31
|
+
"type": "git",
|
|
32
|
+
"url": "git+https://github.com/InHuman-Resources/Backend.git",
|
|
33
|
+
"directory": "proto"
|
|
34
|
+
},
|
|
35
|
+
"publishConfig": {
|
|
36
|
+
"access": "public"
|
|
37
|
+
}
|
|
38
|
+
}
|