@in-human-resources/backend-proto 0.1.0 → 0.1.3
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 +84 -63
- package/api/v1/README.md +282 -0
- package/api/v1/auth.proto +228 -0
- package/api/v1/candidate.proto +203 -0
- package/api/v1/common.proto +66 -0
- package/api/v1/company.proto +203 -0
- package/auth/v1/service.proto +824 -0
- package/buf.gen.yaml +5 -2
- package/common/v1/common.proto +10 -0
- package/gen/ts/api/v1/auth_connect.ts +21 -3
- package/gen/ts/api/v1/auth_pb.ts +90 -2
- package/gen/ts/api/v1/candidate_connect.ts +3 -3
- package/gen/ts/api/v1/candidate_pb.ts +1 -1
- package/gen/ts/api/v1/common_pb.ts +1 -1
- package/gen/ts/api/v1/company_connect.ts +12 -3
- package/gen/ts/api/v1/company_pb.ts +125 -1
- package/gen/ts/auth/v1/service_connect.ts +29 -2
- package/gen/ts/auth/v1/service_pb.ts +286 -2
- package/gen/ts/common/v1/common_pb.ts +1 -1
- package/package.json +4 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file auth/v1/service.proto (package auth.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
|
5
5
|
|
|
6
6
|
import type { BinaryReadOptions, FieldList, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf";
|
|
7
7
|
import { Message, proto3 } from "@bufbuild/protobuf";
|
|
8
|
-
import { RequestMeta } from "../../common/v1/common_pb
|
|
8
|
+
import { RequestMeta } from "../../common/v1/common_pb";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* @generated from message auth.v1.RegisterRequest
|
|
@@ -45,6 +45,13 @@ export class RegisterRequest extends Message<RegisterRequest> {
|
|
|
45
45
|
*/
|
|
46
46
|
meta?: RequestMeta;
|
|
47
47
|
|
|
48
|
+
/**
|
|
49
|
+
* optional; raw token from invite email when user_type=company
|
|
50
|
+
*
|
|
51
|
+
* @generated from field: string company_invite_token = 12;
|
|
52
|
+
*/
|
|
53
|
+
companyInviteToken = "";
|
|
54
|
+
|
|
48
55
|
constructor(data?: PartialMessage<RegisterRequest>) {
|
|
49
56
|
super();
|
|
50
57
|
proto3.util.initPartial(data, this);
|
|
@@ -59,6 +66,7 @@ export class RegisterRequest extends Message<RegisterRequest> {
|
|
|
59
66
|
{ no: 4, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
60
67
|
{ no: 8, name: "professional_headline", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
61
68
|
{ no: 10, name: "meta", kind: "message", T: RequestMeta },
|
|
69
|
+
{ no: 12, name: "company_invite_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
62
70
|
]);
|
|
63
71
|
|
|
64
72
|
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): RegisterRequest {
|
|
@@ -848,6 +856,148 @@ export class ResendVerificationEmailResponse extends Message<ResendVerificationE
|
|
|
848
856
|
}
|
|
849
857
|
}
|
|
850
858
|
|
|
859
|
+
/**
|
|
860
|
+
* @generated from message auth.v1.SendEmailVerificationOtpRequest
|
|
861
|
+
*/
|
|
862
|
+
export class SendEmailVerificationOtpRequest extends Message<SendEmailVerificationOtpRequest> {
|
|
863
|
+
/**
|
|
864
|
+
* @generated from field: string email = 1;
|
|
865
|
+
*/
|
|
866
|
+
email = "";
|
|
867
|
+
|
|
868
|
+
constructor(data?: PartialMessage<SendEmailVerificationOtpRequest>) {
|
|
869
|
+
super();
|
|
870
|
+
proto3.util.initPartial(data, this);
|
|
871
|
+
}
|
|
872
|
+
|
|
873
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
874
|
+
static readonly typeName = "auth.v1.SendEmailVerificationOtpRequest";
|
|
875
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
876
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
877
|
+
]);
|
|
878
|
+
|
|
879
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendEmailVerificationOtpRequest {
|
|
880
|
+
return new SendEmailVerificationOtpRequest().fromBinary(bytes, options);
|
|
881
|
+
}
|
|
882
|
+
|
|
883
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendEmailVerificationOtpRequest {
|
|
884
|
+
return new SendEmailVerificationOtpRequest().fromJson(jsonValue, options);
|
|
885
|
+
}
|
|
886
|
+
|
|
887
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendEmailVerificationOtpRequest {
|
|
888
|
+
return new SendEmailVerificationOtpRequest().fromJsonString(jsonString, options);
|
|
889
|
+
}
|
|
890
|
+
|
|
891
|
+
static equals(a: SendEmailVerificationOtpRequest | PlainMessage<SendEmailVerificationOtpRequest> | undefined, b: SendEmailVerificationOtpRequest | PlainMessage<SendEmailVerificationOtpRequest> | undefined): boolean {
|
|
892
|
+
return proto3.util.equals(SendEmailVerificationOtpRequest, a, b);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
/**
|
|
897
|
+
* @generated from message auth.v1.SendEmailVerificationOtpResponse
|
|
898
|
+
*/
|
|
899
|
+
export class SendEmailVerificationOtpResponse extends Message<SendEmailVerificationOtpResponse> {
|
|
900
|
+
constructor(data?: PartialMessage<SendEmailVerificationOtpResponse>) {
|
|
901
|
+
super();
|
|
902
|
+
proto3.util.initPartial(data, this);
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
906
|
+
static readonly typeName = "auth.v1.SendEmailVerificationOtpResponse";
|
|
907
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
908
|
+
]);
|
|
909
|
+
|
|
910
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): SendEmailVerificationOtpResponse {
|
|
911
|
+
return new SendEmailVerificationOtpResponse().fromBinary(bytes, options);
|
|
912
|
+
}
|
|
913
|
+
|
|
914
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): SendEmailVerificationOtpResponse {
|
|
915
|
+
return new SendEmailVerificationOtpResponse().fromJson(jsonValue, options);
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): SendEmailVerificationOtpResponse {
|
|
919
|
+
return new SendEmailVerificationOtpResponse().fromJsonString(jsonString, options);
|
|
920
|
+
}
|
|
921
|
+
|
|
922
|
+
static equals(a: SendEmailVerificationOtpResponse | PlainMessage<SendEmailVerificationOtpResponse> | undefined, b: SendEmailVerificationOtpResponse | PlainMessage<SendEmailVerificationOtpResponse> | undefined): boolean {
|
|
923
|
+
return proto3.util.equals(SendEmailVerificationOtpResponse, a, b);
|
|
924
|
+
}
|
|
925
|
+
}
|
|
926
|
+
|
|
927
|
+
/**
|
|
928
|
+
* @generated from message auth.v1.VerifyEmailWithOtpRequest
|
|
929
|
+
*/
|
|
930
|
+
export class VerifyEmailWithOtpRequest extends Message<VerifyEmailWithOtpRequest> {
|
|
931
|
+
/**
|
|
932
|
+
* @generated from field: string email = 1;
|
|
933
|
+
*/
|
|
934
|
+
email = "";
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* @generated from field: string code = 2;
|
|
938
|
+
*/
|
|
939
|
+
code = "";
|
|
940
|
+
|
|
941
|
+
constructor(data?: PartialMessage<VerifyEmailWithOtpRequest>) {
|
|
942
|
+
super();
|
|
943
|
+
proto3.util.initPartial(data, this);
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
947
|
+
static readonly typeName = "auth.v1.VerifyEmailWithOtpRequest";
|
|
948
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
949
|
+
{ no: 1, name: "email", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
950
|
+
{ no: 2, name: "code", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
951
|
+
]);
|
|
952
|
+
|
|
953
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyEmailWithOtpRequest {
|
|
954
|
+
return new VerifyEmailWithOtpRequest().fromBinary(bytes, options);
|
|
955
|
+
}
|
|
956
|
+
|
|
957
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyEmailWithOtpRequest {
|
|
958
|
+
return new VerifyEmailWithOtpRequest().fromJson(jsonValue, options);
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyEmailWithOtpRequest {
|
|
962
|
+
return new VerifyEmailWithOtpRequest().fromJsonString(jsonString, options);
|
|
963
|
+
}
|
|
964
|
+
|
|
965
|
+
static equals(a: VerifyEmailWithOtpRequest | PlainMessage<VerifyEmailWithOtpRequest> | undefined, b: VerifyEmailWithOtpRequest | PlainMessage<VerifyEmailWithOtpRequest> | undefined): boolean {
|
|
966
|
+
return proto3.util.equals(VerifyEmailWithOtpRequest, a, b);
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* @generated from message auth.v1.VerifyEmailWithOtpResponse
|
|
972
|
+
*/
|
|
973
|
+
export class VerifyEmailWithOtpResponse extends Message<VerifyEmailWithOtpResponse> {
|
|
974
|
+
constructor(data?: PartialMessage<VerifyEmailWithOtpResponse>) {
|
|
975
|
+
super();
|
|
976
|
+
proto3.util.initPartial(data, this);
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
980
|
+
static readonly typeName = "auth.v1.VerifyEmailWithOtpResponse";
|
|
981
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
982
|
+
]);
|
|
983
|
+
|
|
984
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): VerifyEmailWithOtpResponse {
|
|
985
|
+
return new VerifyEmailWithOtpResponse().fromBinary(bytes, options);
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): VerifyEmailWithOtpResponse {
|
|
989
|
+
return new VerifyEmailWithOtpResponse().fromJson(jsonValue, options);
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): VerifyEmailWithOtpResponse {
|
|
993
|
+
return new VerifyEmailWithOtpResponse().fromJsonString(jsonString, options);
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
static equals(a: VerifyEmailWithOtpResponse | PlainMessage<VerifyEmailWithOtpResponse> | undefined, b: VerifyEmailWithOtpResponse | PlainMessage<VerifyEmailWithOtpResponse> | undefined): boolean {
|
|
997
|
+
return proto3.util.equals(VerifyEmailWithOtpResponse, a, b);
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
|
|
851
1001
|
/**
|
|
852
1002
|
* @generated from message auth.v1.RequestPasswordResetRequest
|
|
853
1003
|
*/
|
|
@@ -2606,6 +2756,140 @@ export class InviteCompanyMemberResponse extends Message<InviteCompanyMemberResp
|
|
|
2606
2756
|
}
|
|
2607
2757
|
}
|
|
2608
2758
|
|
|
2759
|
+
/**
|
|
2760
|
+
* @generated from message auth.v1.AcceptCompanyInvitationRequest
|
|
2761
|
+
*/
|
|
2762
|
+
export class AcceptCompanyInvitationRequest extends Message<AcceptCompanyInvitationRequest> {
|
|
2763
|
+
/**
|
|
2764
|
+
* @generated from field: string user_id = 1;
|
|
2765
|
+
*/
|
|
2766
|
+
userId = "";
|
|
2767
|
+
|
|
2768
|
+
/**
|
|
2769
|
+
* @generated from field: string token = 2;
|
|
2770
|
+
*/
|
|
2771
|
+
token = "";
|
|
2772
|
+
|
|
2773
|
+
constructor(data?: PartialMessage<AcceptCompanyInvitationRequest>) {
|
|
2774
|
+
super();
|
|
2775
|
+
proto3.util.initPartial(data, this);
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2779
|
+
static readonly typeName = "auth.v1.AcceptCompanyInvitationRequest";
|
|
2780
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2781
|
+
{ no: 1, name: "user_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2782
|
+
{ no: 2, name: "token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2783
|
+
]);
|
|
2784
|
+
|
|
2785
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptCompanyInvitationRequest {
|
|
2786
|
+
return new AcceptCompanyInvitationRequest().fromBinary(bytes, options);
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationRequest {
|
|
2790
|
+
return new AcceptCompanyInvitationRequest().fromJson(jsonValue, options);
|
|
2791
|
+
}
|
|
2792
|
+
|
|
2793
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationRequest {
|
|
2794
|
+
return new AcceptCompanyInvitationRequest().fromJsonString(jsonString, options);
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
static equals(a: AcceptCompanyInvitationRequest | PlainMessage<AcceptCompanyInvitationRequest> | undefined, b: AcceptCompanyInvitationRequest | PlainMessage<AcceptCompanyInvitationRequest> | undefined): boolean {
|
|
2798
|
+
return proto3.util.equals(AcceptCompanyInvitationRequest, a, b);
|
|
2799
|
+
}
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
/**
|
|
2803
|
+
* @generated from message auth.v1.AcceptCompanyInvitationResponse
|
|
2804
|
+
*/
|
|
2805
|
+
export class AcceptCompanyInvitationResponse extends Message<AcceptCompanyInvitationResponse> {
|
|
2806
|
+
/**
|
|
2807
|
+
* @generated from field: string access_token = 1;
|
|
2808
|
+
*/
|
|
2809
|
+
accessToken = "";
|
|
2810
|
+
|
|
2811
|
+
/**
|
|
2812
|
+
* @generated from field: string refresh_token = 2;
|
|
2813
|
+
*/
|
|
2814
|
+
refreshToken = "";
|
|
2815
|
+
|
|
2816
|
+
/**
|
|
2817
|
+
* @generated from field: string user_type = 3;
|
|
2818
|
+
*/
|
|
2819
|
+
userType = "";
|
|
2820
|
+
|
|
2821
|
+
/**
|
|
2822
|
+
* @generated from field: bool email_verified = 4;
|
|
2823
|
+
*/
|
|
2824
|
+
emailVerified = false;
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* @generated from field: string onboarding_status = 5;
|
|
2828
|
+
*/
|
|
2829
|
+
onboardingStatus = "";
|
|
2830
|
+
|
|
2831
|
+
/**
|
|
2832
|
+
* @generated from field: string onboarding_step = 6;
|
|
2833
|
+
*/
|
|
2834
|
+
onboardingStep = "";
|
|
2835
|
+
|
|
2836
|
+
/**
|
|
2837
|
+
* @generated from field: bool onboarding_complete = 7;
|
|
2838
|
+
*/
|
|
2839
|
+
onboardingComplete = false;
|
|
2840
|
+
|
|
2841
|
+
/**
|
|
2842
|
+
* @generated from field: string company_id = 8;
|
|
2843
|
+
*/
|
|
2844
|
+
companyId = "";
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
* @generated from field: string hierarchy_level = 9;
|
|
2848
|
+
*/
|
|
2849
|
+
hierarchyLevel = "";
|
|
2850
|
+
|
|
2851
|
+
/**
|
|
2852
|
+
* @generated from field: string department = 10;
|
|
2853
|
+
*/
|
|
2854
|
+
department = "";
|
|
2855
|
+
|
|
2856
|
+
constructor(data?: PartialMessage<AcceptCompanyInvitationResponse>) {
|
|
2857
|
+
super();
|
|
2858
|
+
proto3.util.initPartial(data, this);
|
|
2859
|
+
}
|
|
2860
|
+
|
|
2861
|
+
static readonly runtime: typeof proto3 = proto3;
|
|
2862
|
+
static readonly typeName = "auth.v1.AcceptCompanyInvitationResponse";
|
|
2863
|
+
static readonly fields: FieldList = proto3.util.newFieldList(() => [
|
|
2864
|
+
{ no: 1, name: "access_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2865
|
+
{ no: 2, name: "refresh_token", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2866
|
+
{ no: 3, name: "user_type", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2867
|
+
{ no: 4, name: "email_verified", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2868
|
+
{ no: 5, name: "onboarding_status", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2869
|
+
{ no: 6, name: "onboarding_step", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2870
|
+
{ no: 7, name: "onboarding_complete", kind: "scalar", T: 8 /* ScalarType.BOOL */ },
|
|
2871
|
+
{ no: 8, name: "company_id", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2872
|
+
{ no: 9, name: "hierarchy_level", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2873
|
+
{ no: 10, name: "department", kind: "scalar", T: 9 /* ScalarType.STRING */ },
|
|
2874
|
+
]);
|
|
2875
|
+
|
|
2876
|
+
static fromBinary(bytes: Uint8Array, options?: Partial<BinaryReadOptions>): AcceptCompanyInvitationResponse {
|
|
2877
|
+
return new AcceptCompanyInvitationResponse().fromBinary(bytes, options);
|
|
2878
|
+
}
|
|
2879
|
+
|
|
2880
|
+
static fromJson(jsonValue: JsonValue, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationResponse {
|
|
2881
|
+
return new AcceptCompanyInvitationResponse().fromJson(jsonValue, options);
|
|
2882
|
+
}
|
|
2883
|
+
|
|
2884
|
+
static fromJsonString(jsonString: string, options?: Partial<JsonReadOptions>): AcceptCompanyInvitationResponse {
|
|
2885
|
+
return new AcceptCompanyInvitationResponse().fromJsonString(jsonString, options);
|
|
2886
|
+
}
|
|
2887
|
+
|
|
2888
|
+
static equals(a: AcceptCompanyInvitationResponse | PlainMessage<AcceptCompanyInvitationResponse> | undefined, b: AcceptCompanyInvitationResponse | PlainMessage<AcceptCompanyInvitationResponse> | undefined): boolean {
|
|
2889
|
+
return proto3.util.equals(AcceptCompanyInvitationResponse, a, b);
|
|
2890
|
+
}
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2609
2893
|
/**
|
|
2610
2894
|
* @generated from message auth.v1.RemoveCompanyMemberRequest
|
|
2611
2895
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension
|
|
1
|
+
// @generated by protoc-gen-es v1.10.1 with parameter "target=ts,import_extension=none"
|
|
2
2
|
// @generated from file common/v1/common.proto (package common.v1, syntax proto3)
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
// @ts-nocheck
|
package/package.json
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@in-human-resources/backend-proto",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "Protobuf-ES and Connect-ES generated clients for api.v1, auth.v1, and common.v1",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"files": [
|
|
9
9
|
"gen/ts",
|
|
10
|
+
"api",
|
|
11
|
+
"auth",
|
|
12
|
+
"common",
|
|
10
13
|
"buf.yaml",
|
|
11
14
|
"buf.gen.yaml"
|
|
12
15
|
],
|