@in-human-resources/backend-proto 0.1.3 → 0.1.5
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 +85 -84
- package/api/v1/README.md +7 -0
- package/api/v1/auth.proto +11 -2
- package/api/v1/candidate.proto +8 -1
- package/api/v1/common.proto +3 -0
- package/api/v1/company.proto +8 -1
- package/api/v1/hiring.proto +345 -0
- package/api/v1/pipeline.proto +156 -0
- package/auth/v1/service.proto +824 -824
- package/common/v1/common.proto +10 -10
- package/gen/ts/api/v1/auth_connect.ts +8 -2
- package/gen/ts/api/v1/candidate_connect.ts +6 -1
- package/gen/ts/api/v1/company_connect.ts +6 -1
- package/gen/ts/api/v1/hiring_connect.ts +235 -0
- package/gen/ts/api/v1/hiring_pb.ts +2061 -0
- package/gen/ts/auth/v1/service_connect.ts +14 -14
- package/gen/ts/auth/v1/service_pb.ts +5 -5
- package/gen/ts/hiring/v1/service_connect.ts +191 -0
- package/gen/ts/hiring/v1/service_pb.ts +2079 -0
- package/gen/ts/workflow/v1/service_connect.ts +87 -0
- package/gen/ts/workflow/v1/service_pb.ts +580 -0
- package/hiring/v1/pipeline.proto +156 -0
- package/hiring/v1/service.proto +310 -0
- package/package.json +4 -2
- package/workflow/v1/service.proto +87 -0
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
package api.v1;
|
|
4
|
+
|
|
5
|
+
option go_package = "github.com/InHuman-Resources/Backend/Go/proto/gen/api/v1;apiv1";
|
|
6
|
+
|
|
7
|
+
// Pipeline capability aligns with business hiring automation areas.
|
|
8
|
+
enum PipelineCapability {
|
|
9
|
+
PIPELINE_CAPABILITY_UNSPECIFIED = 0;
|
|
10
|
+
PIPELINE_CAPABILITY_SCREENING = 1;
|
|
11
|
+
PIPELINE_CAPABILITY_RECRUITER_REVIEW = 2;
|
|
12
|
+
PIPELINE_CAPABILITY_ASSESSMENT = 3;
|
|
13
|
+
PIPELINE_CAPABILITY_INTERVIEW = 4;
|
|
14
|
+
PIPELINE_CAPABILITY_OFFER = 5;
|
|
15
|
+
PIPELINE_CAPABILITY_COMMUNICATION = 6;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
enum PipelineStepType {
|
|
19
|
+
PIPELINE_STEP_TYPE_UNSPECIFIED = 0;
|
|
20
|
+
PIPELINE_STEP_TYPE_AUTOMATED = 1;
|
|
21
|
+
PIPELINE_STEP_TYPE_HUMAN_GATE = 2;
|
|
22
|
+
PIPELINE_STEP_TYPE_ASSESSMENT = 3;
|
|
23
|
+
PIPELINE_STEP_TYPE_INTERVIEW = 4;
|
|
24
|
+
PIPELINE_STEP_TYPE_OFFER = 5;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
message BlockSLA {
|
|
28
|
+
int32 reminder_after_days = 1;
|
|
29
|
+
int32 escalate_after_days = 2;
|
|
30
|
+
int32 auto_reject_after_days = 3;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
message ManualFieldSpec {
|
|
34
|
+
string id = 1;
|
|
35
|
+
string label = 2;
|
|
36
|
+
string type = 3;
|
|
37
|
+
bool required = 4;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message ManualFieldsConfig {
|
|
41
|
+
repeated ManualFieldSpec fields = 1;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
message PipelineBlock {
|
|
45
|
+
string block_id = 1;
|
|
46
|
+
int32 sort_order = 2;
|
|
47
|
+
PipelineCapability capability = 3;
|
|
48
|
+
bool enabled = 4;
|
|
49
|
+
string display_name = 5;
|
|
50
|
+
string candidate_status_label = 6;
|
|
51
|
+
PipelineStepType step_type = 7;
|
|
52
|
+
BlockSLA sla = 8;
|
|
53
|
+
ManualFieldsConfig manual_fields = 9;
|
|
54
|
+
string config_json = 10;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message PipelineDefinition {
|
|
58
|
+
string definition_id = 1;
|
|
59
|
+
string company_id = 2;
|
|
60
|
+
string name = 3;
|
|
61
|
+
string description = 4;
|
|
62
|
+
string slug = 5;
|
|
63
|
+
int32 version = 6;
|
|
64
|
+
string status = 7;
|
|
65
|
+
bool is_platform = 8;
|
|
66
|
+
string source_template_id = 9;
|
|
67
|
+
int32 schema_version = 10;
|
|
68
|
+
repeated PipelineBlock blocks = 11;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
message ExecutionStep {
|
|
72
|
+
string stage_id = 1;
|
|
73
|
+
PipelineStepType step_type = 2;
|
|
74
|
+
string block_id = 3;
|
|
75
|
+
PipelineCapability capability = 4;
|
|
76
|
+
BlockSLA sla = 5;
|
|
77
|
+
string config_json = 6;
|
|
78
|
+
string manual_fields_json = 7;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
message PipelineSnapshot {
|
|
82
|
+
string definition_id = 1;
|
|
83
|
+
int32 definition_version = 2;
|
|
84
|
+
int32 schema_version = 3;
|
|
85
|
+
string definition_name = 4;
|
|
86
|
+
repeated ExecutionStep steps = 5;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
message ListPlatformPipelineTemplatesRequest {}
|
|
90
|
+
|
|
91
|
+
message ListPlatformPipelineTemplatesResponse {
|
|
92
|
+
repeated PipelineDefinition templates = 1;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
message GetPipelineDefinitionRequest {
|
|
96
|
+
string definition_id = 1;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message ListPipelineDefinitionsRequest {}
|
|
100
|
+
|
|
101
|
+
message ListPipelineDefinitionsResponse {
|
|
102
|
+
repeated PipelineDefinition definitions = 1;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
message CreatePipelineDefinitionRequest {
|
|
106
|
+
string name = 1;
|
|
107
|
+
string description = 2;
|
|
108
|
+
repeated PipelineBlock blocks = 3;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
message CreatePipelineDefinitionResponse {
|
|
112
|
+
string definition_id = 1;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
message UpdatePipelineDefinitionRequest {
|
|
116
|
+
string definition_id = 1;
|
|
117
|
+
string name = 2;
|
|
118
|
+
string description = 3;
|
|
119
|
+
repeated PipelineBlock blocks = 4;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
message PublishPipelineDefinitionRequest {
|
|
123
|
+
string definition_id = 1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message PublishPipelineDefinitionResponse {
|
|
127
|
+
int32 version = 1;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
message ClonePipelineFromTemplateRequest {
|
|
131
|
+
string template_id = 1;
|
|
132
|
+
string name = 2;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message ClonePipelineFromTemplateResponse {
|
|
136
|
+
string definition_id = 1;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
message SetCompanyDefaultPipelineRequest {
|
|
140
|
+
string definition_id = 1;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message SetCompanyDefaultPipelineResponse {}
|
|
144
|
+
|
|
145
|
+
message SetJobPipelineDefinitionRequest {
|
|
146
|
+
string job_id = 1;
|
|
147
|
+
string definition_id = 2;
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
message GetApplicationPipelineSnapshotRequest {
|
|
151
|
+
string application_id = 1;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
message GetApplicationPipelineSnapshotResponse {
|
|
155
|
+
PipelineSnapshot snapshot = 1;
|
|
156
|
+
}
|