@aldiokta/protocgen 1.0.19 → 1.0.20
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/package.json +1 -1
- package/prisca/v1/core/auth/auth.pb.go +998 -0
- package/prisca/v1/core/auth/auth_grpc.pb.go +427 -0
- package/prisca/v1/core/company/company.pb.go +965 -0
- package/prisca/v1/core/company/company_grpc.pb.go +273 -0
- package/prisca/v1/core/department_material/department_material.pb.go +776 -0
- package/prisca/v1/core/department_material/department_material_grpc.pb.go +236 -0
- package/prisca/v1/core/job_grade/job_grade.pb.go +887 -0
- package/prisca/v1/core/job_grade/job_grade_grpc.pb.go +273 -0
- package/prisca/v1/core/job_position/job_position.pb.go +1196 -0
- package/prisca/v1/core/job_position/job_position_grpc.pb.go +273 -0
- package/prisca/v1/core/job_title/job_title.pb.go +986 -0
- package/prisca/v1/core/job_title/job_title_grpc.pb.go +273 -0
- package/prisca/v1/core/line_of_approval/line_of_approval.pb.go +913 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc.pb.go +273 -0
- package/prisca/v1/core/location/location.pb.go +1397 -0
- package/prisca/v1/core/location/location_grpc.pb.go +387 -0
- package/prisca/v1/core/material/material.pb.go +1366 -0
- package/prisca/v1/core/material/material_grpc.pb.go +273 -0
- package/prisca/v1/core/material_group/material_group.pb.go +911 -0
- package/prisca/v1/core/material_group/material_group_grpc.pb.go +273 -0
- package/prisca/v1/core/material_type/material_type.pb.go +827 -0
- package/prisca/v1/core/material_type/material_type_grpc.pb.go +239 -0
- package/prisca/v1/core/number_range/number_range.pb.go +916 -0
- package/prisca/v1/core/number_range/number_range_grpc.pb.go +273 -0
- package/prisca/v1/core/organization/organization.pb.go +1039 -0
- package/prisca/v1/core/organization/organization_grpc.pb.go +273 -0
- package/prisca/v1/core/organization_level/organization_level.pb.go +853 -0
- package/prisca/v1/core/organization_level/organization_level_grpc.pb.go +274 -0
- package/prisca/v1/core/procurement/procurement.pb.go +622 -0
- package/prisca/v1/core/procurement/procurement_grpc.pb.go +275 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.pb.go +1550 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc.pb.go +388 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.pb.go +141 -0
- package/prisca/v1/core/role/role.pb.go +797 -0
- package/prisca/v1/core/role/role_grpc.pb.go +273 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.pb.go +3217 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc.pb.go +656 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.pb.go +973 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc.pb.go +278 -0
- package/prisca/v1/core/users/users.pb.go +281 -0
- package/prisca/v1/core/users_role/users_role.pb.go +813 -0
- package/prisca/v1/core/users_role/users_role_grpc.pb.go +273 -0
- package/prisca/v1/core/work_location/work_location.pb.go +995 -0
- package/prisca/v1/core/work_location/work_location_grpc.pb.go +273 -0
- package/prisca/v1/core/work_locations/work_locations.pb.go +184 -0
- package/prisca/v1/core/work_locations/work_locations_grpc.pb.go +76 -0
- package/prisca/v1/core/workflow/workflow.pb.go +2057 -0
- package/prisca/v1/core/workflow/workflow_grpc.pb.go +273 -0
- package/prisca/v1/global/meta/meta.pb.go +446 -0
- package/prisca/v1/core/auth/auth.proto +0 -100
- package/prisca/v1/core/company/company.proto +0 -86
- package/prisca/v1/core/department_material/department_material.proto +0 -69
- package/prisca/v1/core/job_grade/job_grade.proto +0 -79
- package/prisca/v1/core/job_position/job_position.proto +0 -107
- package/prisca/v1/core/job_title/job_title.proto +0 -88
- package/prisca/v1/core/location/location.proto +0 -124
- package/prisca/v1/core/material/material.proto +0 -127
- package/prisca/v1/core/material_group/material_group.proto +0 -79
- package/prisca/v1/core/material_type/material_type.proto +0 -77
- package/prisca/v1/core/number_range/number_range.proto +0 -81
- package/prisca/v1/core/organization/organization.proto +0 -93
- package/prisca/v1/core/organization_level/organization_level.proto +0 -73
- package/prisca/v1/core/procurement/procurement.proto +0 -54
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -278
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
- package/prisca/v1/core/users/users.proto +0 -22
- package/prisca/v1/core/users_role/users_role.proto +0 -72
- package/prisca/v1/core/work_location/work_location.proto +0 -88
- package/prisca/v1/core/workflow/workflow.proto +0 -191
- package/prisca/v1/global/meta/meta.proto +0 -57
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/workflow";
|
|
4
|
-
|
|
5
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
-
import "prisca/v1/core/users/users.proto";
|
|
7
|
-
import "prisca/v1/core/recipient_roles/recipient_roles.proto";
|
|
8
|
-
|
|
9
|
-
service WorkflowService {
|
|
10
|
-
rpc CreateWorkflow(CreateWorkflowRequest) returns (CreateWorkflowResponse);
|
|
11
|
-
rpc UpdateWorkflow(UpdateWorkflowRequest) returns (UpdateWorkflowResponse);
|
|
12
|
-
rpc DeleteWorkflow(DeleteWorkflowRequest) returns (DeleteWorkflowResponse);
|
|
13
|
-
rpc GetWorkflowById(GetWorkflowByIdRequest) returns (GetWorkflowByIdResponse);
|
|
14
|
-
rpc GetListWorkflows(GetListWorkflowRequest) returns (GetListWorkflowResponse);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message Workflow {
|
|
18
|
-
int64 id = 1;
|
|
19
|
-
string name = 2;
|
|
20
|
-
string references_id = 3;
|
|
21
|
-
string description = 4;
|
|
22
|
-
string valid_from = 5; // ISO 8601 format
|
|
23
|
-
string valid_to = 6; // ISO 8601 format
|
|
24
|
-
string created_by = 7;
|
|
25
|
-
string updated_by = 8;
|
|
26
|
-
string created_at = 9; // ISO 8601 format
|
|
27
|
-
string updated_at = 10; // Nullable, ISO 8601 format
|
|
28
|
-
repeated WorkflowCondition workflow_condition = 11;
|
|
29
|
-
bool is_active = 12;
|
|
30
|
-
repeated WorkflowSteps workflow_steps = 13;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message WorkflowCondition {
|
|
34
|
-
int64 id = 1;
|
|
35
|
-
string references_id = 2;
|
|
36
|
-
optional string workflow_ref_id = 3;
|
|
37
|
-
optional string workflow_steps_ref_id = 4;
|
|
38
|
-
string created_at = 5; // ISO 8601 format
|
|
39
|
-
string updated_at = 6; // Nullable, ISO 8601 format
|
|
40
|
-
repeated WorkflowCriteria workflow_criteria = 7;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message WorkflowCriteria {
|
|
44
|
-
int64 id = 1;
|
|
45
|
-
string references_id = 2;
|
|
46
|
-
string value = 3;
|
|
47
|
-
string workflow_condition_ref_id = 4;
|
|
48
|
-
string properties = 5;
|
|
49
|
-
string key = 6;
|
|
50
|
-
string operator = 7;
|
|
51
|
-
string created_at = 8; // ISO 8601 format
|
|
52
|
-
string updated_at = 9; // Nullable, ISO 8601 format
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message WorkflowSteps {
|
|
56
|
-
int32 id = 1;
|
|
57
|
-
string references_id = 2;
|
|
58
|
-
string name = 3;
|
|
59
|
-
string step_type = 4;
|
|
60
|
-
string priority = 5;
|
|
61
|
-
bool is_optional_step = 6;
|
|
62
|
-
string exclude_restricted_agents = 7;
|
|
63
|
-
string action_result = 8;
|
|
64
|
-
string required_action = 9;
|
|
65
|
-
string redefine_task_title = 10;
|
|
66
|
-
string workflow_ref_id = 11;
|
|
67
|
-
string is_completed_by = 12;
|
|
68
|
-
string deadline_context = 13;
|
|
69
|
-
string deadline_unit = 14;
|
|
70
|
-
int64 deadline_unit_counter = 15;
|
|
71
|
-
string deadline_effect = 16;
|
|
72
|
-
string created_at = 17;
|
|
73
|
-
string updated_at = 18;
|
|
74
|
-
repeated WorkflowCondition workflow_condition = 19;
|
|
75
|
-
repeated WorkflowStepsRecipients workflow_steps_recipients = 20;
|
|
76
|
-
}
|
|
77
|
-
message WorkflowStepsRecipients {
|
|
78
|
-
int32 id = 1;
|
|
79
|
-
string references_id = 2;
|
|
80
|
-
string workflow_steps_ref_id = 3;
|
|
81
|
-
optional int32 roles_ref_id = 4;
|
|
82
|
-
optional string users_ref_id = 5;
|
|
83
|
-
string created_at = 6;
|
|
84
|
-
string updated_at = 7;
|
|
85
|
-
RecipientRoles roles = 8;
|
|
86
|
-
Users users = 9;
|
|
87
|
-
}
|
|
88
|
-
// Request Messages
|
|
89
|
-
message BaseWorkflowRequest {
|
|
90
|
-
string name = 1;
|
|
91
|
-
string description = 2;
|
|
92
|
-
string valid_from = 3; // ISO 8601 format
|
|
93
|
-
string valid_to = 4; // ISO 8601 format
|
|
94
|
-
string created_by = 5; // ISO 8601 format
|
|
95
|
-
string updated_by = 6; // ISO 8601 format
|
|
96
|
-
repeated BaseWorkflowConditionRequest workflow_condition = 7;
|
|
97
|
-
repeated BaseWorkflowStepsRequest workflow_steps = 8;
|
|
98
|
-
bool is_active = 9;
|
|
99
|
-
}
|
|
100
|
-
//WorkflowCondition
|
|
101
|
-
// Request Messages
|
|
102
|
-
message BaseWorkflowConditionRequest {
|
|
103
|
-
repeated BaseWorkflowCriteriaRequest workflow_criteria = 1;
|
|
104
|
-
}
|
|
105
|
-
|
|
106
|
-
//WorkflowCriteria
|
|
107
|
-
// Request Messages
|
|
108
|
-
message BaseWorkflowCriteriaRequest {
|
|
109
|
-
string value = 1;
|
|
110
|
-
string properties = 2;
|
|
111
|
-
string key = 3;
|
|
112
|
-
string operator = 4;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
//WorkflowSteps
|
|
117
|
-
// Request Messages
|
|
118
|
-
message BaseWorkflowStepsRequest {
|
|
119
|
-
string name = 1;
|
|
120
|
-
string step_type = 2;
|
|
121
|
-
string priority = 3;
|
|
122
|
-
bool is_optional_step = 4;
|
|
123
|
-
string exclude_restricted_agents = 5;
|
|
124
|
-
string action_result = 6;
|
|
125
|
-
string required_action = 7;
|
|
126
|
-
string redefine_task_title = 8;
|
|
127
|
-
string is_completed_by = 9;
|
|
128
|
-
string deadline_context = 10;
|
|
129
|
-
string deadline_unit = 11;
|
|
130
|
-
int64 deadline_unit_counter = 12;
|
|
131
|
-
string deadline_effect = 13;
|
|
132
|
-
repeated BaseWorkflowConditionRequest workflow_condition = 14;
|
|
133
|
-
repeated BaseWorkflowStepsRecipientRequest workflow_steps_recipients = 15;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
//WorkflowStepsRecipients
|
|
137
|
-
// Request Messages
|
|
138
|
-
message BaseWorkflowStepsRecipientRequest {
|
|
139
|
-
int64 roles_ref_id = 1;
|
|
140
|
-
string users_ref_id = 2;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
message CreateWorkflowRequest {
|
|
144
|
-
BaseWorkflowRequest base_workflow = 1;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
message UpdateWorkflowRequest {
|
|
148
|
-
string references_id =1;
|
|
149
|
-
BaseWorkflowRequest base_workflow = 2;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
message DeleteWorkflowRequest {
|
|
153
|
-
string references_id =1;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
message GetWorkflowByIdRequest {
|
|
157
|
-
string references_id =1;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
message GetListWorkflowRequest {
|
|
161
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
162
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
// Response Messages
|
|
166
|
-
message CreateWorkflowResponse {
|
|
167
|
-
Workflow workflow = 1;
|
|
168
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
message UpdateWorkflowResponse {
|
|
172
|
-
Workflow workflow = 1;
|
|
173
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
message DeleteWorkflowResponse {
|
|
177
|
-
string references_id =1;
|
|
178
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
message GetWorkflowByIdResponse {
|
|
182
|
-
Workflow workflow = 1;
|
|
183
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
message GetListWorkflowResponse {
|
|
187
|
-
repeated Workflow workflows = 1;
|
|
188
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
syntax="proto3";
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/global/meta";
|
|
4
|
-
package prisca.v1.global.meta;
|
|
5
|
-
import "google/protobuf/any.proto";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
message PaginationRequest {
|
|
9
|
-
int32 offset = 1;
|
|
10
|
-
int32 limit = 2;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
message FilterRequest{
|
|
14
|
-
string filter = 1;
|
|
15
|
-
string order = 2;
|
|
16
|
-
string keyword = 3;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message PaginationResponse {
|
|
20
|
-
int32 offset = 1;
|
|
21
|
-
int32 limit = 2;
|
|
22
|
-
int64 total_pages = 3;
|
|
23
|
-
int64 total_rows = 4;
|
|
24
|
-
int64 total_row_per_page = 5;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
message Meta {
|
|
28
|
-
int64 status_code = 1;
|
|
29
|
-
string message_code = 2;
|
|
30
|
-
string message = 3;
|
|
31
|
-
optional PaginationResponse pagination = 4;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message ResponseJson {
|
|
35
|
-
Meta meta = 1;
|
|
36
|
-
optional google.protobuf.Any data = 2;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
// type Meta struct {
|
|
41
|
-
// StatusCode int `json:"status_code"`
|
|
42
|
-
// MessageCode string `json:"message_code"`
|
|
43
|
-
// Message string `json:"message"`
|
|
44
|
-
// Pagination *Pagination `json:"pagination"`
|
|
45
|
-
// }
|
|
46
|
-
|
|
47
|
-
// type Pagination struct {
|
|
48
|
-
// Total int `json:"total"`
|
|
49
|
-
// Offset int `json:"offset"`
|
|
50
|
-
// Limit int `json:"Limit"`
|
|
51
|
-
// }
|
|
52
|
-
|
|
53
|
-
// type ResponseJson struct {
|
|
54
|
-
// Data interface{} `json:"data"`
|
|
55
|
-
// Meta Meta `json:"meta"`
|
|
56
|
-
// }
|
|
57
|
-
|