@aldiokta/protocgen 1.0.88 → 1.0.89

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.
Files changed (103) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/access_manager/access_manager.proto +273 -0
  3. package/prisca/v1/core/auth/auth.proto +142 -0
  4. package/prisca/v1/core/company/company.proto +86 -0
  5. package/prisca/v1/core/currency/currency.proto +76 -0
  6. package/prisca/v1/core/department_material/department_material.proto +69 -0
  7. package/prisca/v1/core/employee/employee.proto +129 -0
  8. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  9. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  10. package/prisca/v1/core/job_position/job_position.proto +113 -0
  11. package/prisca/v1/core/job_title/job_title.proto +89 -0
  12. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  13. package/prisca/v1/core/line_of_approval/line_of_approval.proto +82 -0
  14. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  15. package/prisca/v1/core/location/location.proto +289 -0
  16. package/prisca/v1/core/material/material.proto +131 -0
  17. package/prisca/v1/core/material_group/material_group.proto +85 -0
  18. package/prisca/v1/core/material_type/material_type.proto +86 -0
  19. package/prisca/v1/core/messaging/email_template.proto +75 -0
  20. package/prisca/v1/core/messaging/messaging.proto +28 -0
  21. package/prisca/v1/core/number_range/number_range.proto +89 -0
  22. package/prisca/v1/core/organization/organization.proto +94 -0
  23. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  24. package/prisca/v1/core/procurement/procurement.proto +54 -0
  25. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +131 -0
  26. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  27. package/prisca/v1/core/report/report.proto +86 -0
  28. package/prisca/v1/core/report/user_report.proto +74 -0
  29. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  30. package/prisca/v1/core/transaction_builder/transaction_builder.proto +314 -0
  31. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  32. package/prisca/v1/core/users/users.proto +45 -0
  33. package/prisca/v1/core/work_location/work_location.proto +122 -0
  34. package/prisca/v1/core/workflow/workflow.proto +219 -0
  35. package/prisca/v1/global/meta/meta.proto +57 -0
  36. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  37. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9000
  38. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -400
  39. package/prisca/v1/core/auth/auth_pb.js +0 -4253
  40. package/prisca/v1/core/company/company_grpc_pb.js +0 -177
  41. package/prisca/v1/core/company/company_pb.js +0 -2875
  42. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  43. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  44. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  45. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  46. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  47. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  48. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  49. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -864
  50. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  51. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  52. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  53. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  54. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  55. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  56. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  57. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1158
  58. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -178
  59. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -2695
  60. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  61. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  62. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  63. package/prisca/v1/core/location/location_pb.js +0 -10879
  64. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  65. package/prisca/v1/core/material/material_pb.js +0 -4180
  66. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  67. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  68. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  69. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  70. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  71. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  72. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -45
  73. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  74. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  75. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  76. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  77. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  78. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  79. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  80. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  81. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  82. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  83. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  84. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  85. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  86. package/prisca/v1/core/report/report_grpc_pb.js +0 -189
  87. package/prisca/v1/core/report/report_pb.js +0 -2732
  88. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  89. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  90. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  91. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  92. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -465
  93. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10591
  94. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  95. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  96. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  97. package/prisca/v1/core/users/users_pb.js +0 -1246
  98. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  99. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  100. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -202
  101. package/prisca/v1/core/workflow/workflow_pb.js +0 -7376
  102. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  103. package/prisca/v1/global/meta/meta_pb.js +0 -1179
@@ -0,0 +1,219 @@
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/employee/employee.proto";
7
+ import "prisca/v1/core/job_position/job_position.proto";
8
+ import "prisca/v1/core/recipient_roles/recipient_roles.proto";
9
+
10
+ service WorkflowService {
11
+ rpc CreateWorkflow(CreateWorkflowRequest) returns (CreateWorkflowResponse);
12
+ rpc CreateWorkflowDefault(CreateWorkflowRequestDefault) returns (CreateWorkflowResponse);
13
+ rpc UpdateWorkflow(UpdateWorkflowRequest) returns (UpdateWorkflowResponse);
14
+ rpc DeleteWorkflow(DeleteWorkflowRequest) returns (DeleteWorkflowResponse);
15
+ rpc GetWorkflowById(GetWorkflowByIdRequest) returns (GetWorkflowByIdResponse);
16
+ rpc GetListWorkflows(GetListWorkflowRequest) returns (GetListWorkflowResponse);
17
+ }
18
+
19
+ message Workflow {
20
+ int64 id = 1;
21
+ string name = 2;
22
+ string references_id = 3;
23
+ string description = 4;
24
+ string valid_from = 5; // ISO 8601 format
25
+ string valid_to = 6; // ISO 8601 format
26
+ string created_by = 7;
27
+ string updated_by = 8;
28
+ string created_at = 9; // ISO 8601 format
29
+ string updated_at = 10; // Nullable, ISO 8601 format
30
+ repeated WorkflowCondition workflow_condition = 11;
31
+ bool is_active = 12;
32
+ repeated WorkflowSteps workflow_steps = 13;
33
+ string workflow_type = 14;
34
+ string companies_references_id = 15;
35
+ optional Employee created_by_employee = 16;
36
+ optional Employee updated_by_employee = 17;
37
+ }
38
+
39
+ message WorkflowCondition {
40
+ int64 id = 1;
41
+ string references_id = 2;
42
+ optional string workflow_ref_id = 3;
43
+ optional string workflow_steps_ref_id = 4;
44
+ string created_at = 5; // ISO 8601 format
45
+ string updated_at = 6; // Nullable, ISO 8601 format
46
+ repeated WorkflowCriteria workflow_criteria = 7;
47
+ }
48
+
49
+ message WorkflowCriteria {
50
+ int64 id = 1;
51
+ string references_id = 2;
52
+ string value = 3;
53
+ string workflow_condition_ref_id = 4;
54
+ string properties = 5;
55
+ string key = 6;
56
+ string operator = 7;
57
+ string created_at = 8; // ISO 8601 format
58
+ string updated_at = 9; // Nullable, ISO 8601 format
59
+ }
60
+
61
+ message WorkflowSteps {
62
+ int32 id = 1;
63
+ string references_id = 2;
64
+ string name = 3;
65
+ string step_type = 4;
66
+ string priority = 5;
67
+ bool is_optional_step = 6;
68
+ string exclude_restricted_agents = 7;
69
+ string action_result = 8;
70
+ string required_action = 9;
71
+ string redefine_task_title = 10;
72
+ string workflow_ref_id = 11;
73
+ string is_completed_by = 12;
74
+ repeated WorkflowDeadline deadlines = 13;
75
+ string created_at = 14;
76
+ string updated_at = 15;
77
+ repeated WorkflowCondition workflow_condition = 16;
78
+ int32 roles_ref_id = 17;
79
+ RecipientRoles roles = 18;
80
+ WorkflowStepsRecipients workflow_steps_recipients = 19;
81
+ }
82
+
83
+ message WorkflowDeadline {
84
+ string deadline_context = 13;
85
+ string deadline_unit = 14;
86
+ int64 deadline_unit_counter = 15;
87
+ string deadline_effect = 16;
88
+ }
89
+
90
+ message WorkflowStepsRecipients {
91
+ int32 id = 1;
92
+ string references_id = 2;
93
+ string workflow_steps_ref_id = 3;
94
+ optional string job_position_ref_id = 4;
95
+ repeated string employees_ref_id = 5;
96
+ string created_at = 6;
97
+ string updated_at = 7;
98
+ optional JobPosition job_position = 8;
99
+ repeated Employee employees = 9;
100
+ }
101
+ // Request Messages
102
+ message BaseWorkflowRequest {
103
+ string name = 1;
104
+ string description = 2;
105
+ string valid_from = 3; // ISO 8601 format
106
+ string valid_to = 4; // ISO 8601 format
107
+ string created_by = 5; // ISO 8601 format
108
+ string updated_by = 6; // ISO 8601 format
109
+ repeated BaseWorkflowConditionRequest workflow_condition = 7;
110
+ repeated BaseWorkflowStepsRequest workflow_steps = 8;
111
+ bool is_active = 9;
112
+ string workflow_type = 10;
113
+ }
114
+ message BaseWorkflowRequestDefault {
115
+ string name = 1;
116
+ string description = 2;
117
+ string valid_from = 3; // ISO 8601 format
118
+ string valid_to = 4; // ISO 8601 format
119
+ string created_by = 5; // ISO 8601 format
120
+ string updated_by = 6; // ISO 8601 format
121
+ string employee_references_id = 7;
122
+ string companies_references_id = 8;
123
+ bool is_active = 9;
124
+ string workflow_type = 10;
125
+ }
126
+ //WorkflowCondition
127
+ // Request Messages
128
+ message BaseWorkflowConditionRequest {
129
+ repeated BaseWorkflowCriteriaRequest workflow_criteria = 1;
130
+ }
131
+
132
+ //WorkflowCriteria
133
+ // Request Messages
134
+ message BaseWorkflowCriteriaRequest {
135
+ string value = 1;
136
+ string properties = 2;
137
+ string key = 3;
138
+ string operator = 4;
139
+ }
140
+
141
+
142
+ //WorkflowSteps
143
+ // Request Messages
144
+ message BaseWorkflowStepsRequest {
145
+ string name = 1;
146
+ string step_type = 2;
147
+ string priority = 3;
148
+ bool is_optional_step = 4;
149
+ string exclude_restricted_agents = 5;
150
+ string action_result = 6;
151
+ string required_action = 7;
152
+ string redefine_task_title = 8;
153
+ string is_completed_by = 9;
154
+ repeated WorkflowDeadline deadlines = 10;
155
+ repeated BaseWorkflowConditionRequest workflow_condition = 14;
156
+ BaseWorkflowStepsRecipientRequest workflow_steps_recipients = 15;
157
+ int32 roles_ref_id = 16;
158
+ }
159
+
160
+ //WorkflowStepsRecipients
161
+ // Request Messages
162
+ message BaseWorkflowStepsRecipientRequest {
163
+ optional string job_position_ref_id = 1;
164
+ repeated string employees_ref_id = 2;
165
+ }
166
+
167
+ message CreateWorkflowRequest {
168
+ BaseWorkflowRequest base_workflow = 1;
169
+ }
170
+
171
+ message CreateWorkflowRequestDefault {
172
+ BaseWorkflowRequestDefault base_workflow = 1;
173
+ }
174
+
175
+ message UpdateWorkflowRequest {
176
+ string references_id =1;
177
+ BaseWorkflowRequest base_workflow = 2;
178
+ }
179
+
180
+ message DeleteWorkflowRequest {
181
+ string references_id =1;
182
+ }
183
+
184
+ message GetWorkflowByIdRequest {
185
+ string references_id =1;
186
+ }
187
+
188
+ message GetListWorkflowRequest {
189
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
190
+ prisca.v1.global.meta.FilterRequest query = 2;
191
+ }
192
+
193
+ // Response Messages
194
+ message CreateWorkflowResponse {
195
+ Workflow workflow = 1;
196
+ prisca.v1.global.meta.Meta meta = 2;
197
+ }
198
+
199
+ message UpdateWorkflowResponse {
200
+ Workflow workflow = 1;
201
+ prisca.v1.global.meta.Meta meta = 2;
202
+ }
203
+
204
+ message DeleteWorkflowResponse {
205
+ string references_id =1;
206
+ prisca.v1.global.meta.Meta meta = 2;
207
+ }
208
+
209
+ message GetWorkflowByIdResponse {
210
+ Workflow workflow = 1;
211
+ prisca.v1.global.meta.Meta meta = 2;
212
+ }
213
+
214
+ message GetListWorkflowResponse {
215
+ repeated Workflow workflows = 1;
216
+ prisca.v1.global.meta.Meta meta = 2;
217
+ }
218
+
219
+
@@ -0,0 +1,57 @@
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
+