@aldiokta/protocgen 1.1.19 → 1.1.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.
Files changed (160) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +199 -0
  3. package/prisca/v1/account_assignment/account_assignment_pb.js +2674 -0
  4. package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
  5. package/prisca/v1/account_group/account_group_pb.js +2937 -0
  6. package/prisca/v1/bidding/bidding_grpc_pb.js +173 -0
  7. package/prisca/v1/bidding/bidding_pb.js +5616 -0
  8. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
  9. package/prisca/v1/chart_of_account/chart_of_account_pb.js +2907 -0
  10. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
  11. package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
  12. package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
  13. package/prisca/v1/core/auth/auth_pb.js +4497 -0
  14. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
  15. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
  16. package/prisca/v1/core/company/company_grpc_pb.js +178 -0
  17. package/prisca/v1/core/company/company_pb.js +3048 -0
  18. package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
  19. package/prisca/v1/core/currency/currency_pb.js +2522 -0
  20. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  21. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  22. package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
  23. package/prisca/v1/core/employee/employee_pb.js +4283 -0
  24. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
  25. package/prisca/v1/core/file_upload/file_upload_pb.js +872 -0
  26. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +144 -0
  27. package/prisca/v1/core/incoterm/incoterm_pb.js +2497 -0
  28. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
  29. package/prisca/v1/core/item_transaction/item_transaction_pb.js +3880 -0
  30. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  31. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  32. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  33. package/prisca/v1/core/job_position/job_position_pb.js +3762 -0
  34. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  35. package/prisca/v1/core/job_title/job_title_pb.js +2958 -0
  36. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +45 -0
  37. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +1188 -0
  38. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
  39. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3191 -0
  40. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
  41. package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
  42. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  43. package/prisca/v1/core/location/location_pb.js +10879 -0
  44. package/prisca/v1/core/material/material_grpc_pb.js +182 -0
  45. package/prisca/v1/core/material/material_pb.js +4180 -0
  46. package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
  47. package/prisca/v1/core/material_group/material_group_pb.js +2776 -0
  48. package/prisca/v1/core/material_type/material_type_grpc_pb.js +149 -0
  49. package/prisca/v1/core/material_type/material_type_pb.js +2697 -0
  50. package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
  51. package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
  52. package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
  53. package/prisca/v1/core/messaging/messaging_pb.js +896 -0
  54. package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
  55. package/prisca/v1/core/number_range/number_range_pb.js +2926 -0
  56. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  57. package/prisca/v1/core/organization/organization_pb.js +3032 -0
  58. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
  59. package/prisca/v1/core/organization_level/organization_level_pb.js +2545 -0
  60. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +146 -0
  61. package/prisca/v1/core/price_condition/price_condition_pb.js +2654 -0
  62. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  63. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  64. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  65. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  66. package/prisca/v1/core/report/report_grpc_pb.js +200 -0
  67. package/prisca/v1/core/report/report_pb.js +2822 -0
  68. package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
  69. package/prisca/v1/core/report/user_report_pb.js +2452 -0
  70. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  71. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  72. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +144 -0
  73. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2105 -0
  74. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
  75. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
  76. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  77. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  78. package/prisca/v1/core/users/users_grpc_pb.js +45 -0
  79. package/prisca/v1/core/users/users_pb.js +1246 -0
  80. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  81. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  82. package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
  83. package/prisca/v1/core/workflow/workflow_pb.js +7525 -0
  84. package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
  85. package/prisca/v1/document_type/document_type_pb.js +2746 -0
  86. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
  87. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3276 -0
  88. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  89. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  90. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
  91. package/prisca/v1/purchase_order/purchase_order_pb.js +4989 -0
  92. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +512 -0
  93. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
  94. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
  95. package/prisca/v1/purchasing_group/purchasing_group_pb.js +2875 -0
  96. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +145 -0
  97. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2139 -0
  98. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +146 -0
  99. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2183 -0
  100. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
  101. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
  102. package/prisca/v1/quotation/quotation_grpc_pb.js +152 -0
  103. package/prisca/v1/quotation/quotation_pb.js +2319 -0
  104. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +192 -0
  105. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5703 -0
  106. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
  107. package/prisca/v1/vendor_domain/vendor_domain_pb.js +6333 -0
  108. package/prisca/v1/account_assignment/account_assignment.proto +0 -79
  109. package/prisca/v1/account_group/account_group.proto +0 -86
  110. package/prisca/v1/bidding/bidding.proto +0 -159
  111. package/prisca/v1/chart_of_account/chart_of_account.proto +0 -87
  112. package/prisca/v1/core/access_manager/access_manager.proto +0 -281
  113. package/prisca/v1/core/auth/auth.proto +0 -150
  114. package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
  115. package/prisca/v1/core/company/company.proto +0 -92
  116. package/prisca/v1/core/currency/currency.proto +0 -76
  117. package/prisca/v1/core/department_material/department_material.proto +0 -69
  118. package/prisca/v1/core/employee/employee.proto +0 -129
  119. package/prisca/v1/core/file_upload/file_upload.proto +0 -31
  120. package/prisca/v1/core/incoterm/incoterm.proto +0 -76
  121. package/prisca/v1/core/item_transaction/item_transaction.proto +0 -120
  122. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  123. package/prisca/v1/core/job_position/job_position.proto +0 -113
  124. package/prisca/v1/core/job_title/job_title.proto +0 -89
  125. package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -42
  126. package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -94
  127. package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
  128. package/prisca/v1/core/location/location.proto +0 -289
  129. package/prisca/v1/core/material/material.proto +0 -131
  130. package/prisca/v1/core/material_group/material_group.proto +0 -85
  131. package/prisca/v1/core/material_type/material_type.proto +0 -86
  132. package/prisca/v1/core/messaging/email_template.proto +0 -75
  133. package/prisca/v1/core/messaging/messaging.proto +0 -29
  134. package/prisca/v1/core/number_range/number_range.proto +0 -89
  135. package/prisca/v1/core/organization/organization.proto +0 -94
  136. package/prisca/v1/core/organization_level/organization_level.proto +0 -77
  137. package/prisca/v1/core/price_condition/price_condition.proto +0 -83
  138. package/prisca/v1/core/procurement/procurement.proto +0 -54
  139. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  140. package/prisca/v1/core/report/report.proto +0 -90
  141. package/prisca/v1/core/report/user_report.proto +0 -74
  142. package/prisca/v1/core/tax_code/tax_code.proto +0 -77
  143. package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -64
  144. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
  145. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  146. package/prisca/v1/core/users/users.proto +0 -45
  147. package/prisca/v1/core/work_location/work_location.proto +0 -122
  148. package/prisca/v1/core/workflow/workflow.proto +0 -216
  149. package/prisca/v1/document_type/document_type.proto +0 -80
  150. package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -98
  151. package/prisca/v1/global/meta/meta.proto +0 -57
  152. package/prisca/v1/purchase_order/purchase_order.proto +0 -155
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -304
  154. package/prisca/v1/purchasing_group/purchasing_group.proto +0 -87
  155. package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -68
  156. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -70
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
  158. package/prisca/v1/quotation/quotation.proto +0 -82
  159. package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -166
  160. package/prisca/v1/vendor_domain/vendor_domain.proto +0 -225
@@ -1,216 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-proto/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
- import "prisca/v1/core/job_title/job_title.proto";
10
-
11
- service WorkflowService {
12
- rpc CreateWorkflow(CreateWorkflowRequest) returns (CreateWorkflowResponse);
13
- rpc CreateWorkflowDefault(CreateWorkflowRequestDefault)
14
- returns (CreateWorkflowResponse);
15
- rpc UpdateWorkflow(UpdateWorkflowRequest) returns (UpdateWorkflowResponse);
16
- rpc DeleteWorkflow(DeleteWorkflowRequest) returns (DeleteWorkflowResponse);
17
- rpc GetWorkflowById(GetWorkflowByIdRequest) returns (GetWorkflowByIdResponse);
18
- rpc GetListWorkflows(GetListWorkflowRequest)
19
- returns (GetListWorkflowResponse);
20
- }
21
-
22
- message Workflow {
23
- int64 id = 1;
24
- string name = 2;
25
- string references_id = 3;
26
- string description = 4;
27
- string valid_from = 5; // ISO 8601 format
28
- string valid_to = 6; // ISO 8601 format
29
- string created_by = 7;
30
- string updated_by = 8;
31
- string created_at = 9; // ISO 8601 format
32
- string updated_at = 10; // Nullable, ISO 8601 format
33
- repeated WorkflowCondition workflow_condition = 11;
34
- bool is_active = 12;
35
- repeated WorkflowSteps workflow_steps = 13;
36
- string workflow_type = 14;
37
- string companies_references_id = 15;
38
- optional Employee created_by_employee = 16;
39
- optional Employee updated_by_employee = 17;
40
- }
41
-
42
- message WorkflowCondition {
43
- int64 id = 1;
44
- string references_id = 2;
45
- optional string workflow_ref_id = 3;
46
- optional string workflow_steps_ref_id = 4;
47
- string created_at = 5; // ISO 8601 format
48
- string updated_at = 6; // Nullable, ISO 8601 format
49
- repeated WorkflowCriteria workflow_criteria = 7;
50
- }
51
-
52
- message WorkflowCriteria {
53
- int64 id = 1;
54
- string references_id = 2;
55
- string value = 3;
56
- string workflow_condition_ref_id = 4;
57
- string properties = 5;
58
- string key = 6;
59
- string operator = 7;
60
- string created_at = 8; // ISO 8601 format
61
- string updated_at = 9; // Nullable, ISO 8601 format
62
- }
63
-
64
- message WorkflowSteps {
65
- int32 id = 1;
66
- string references_id = 2;
67
- string name = 3;
68
- string step_type = 4;
69
- string priority = 5;
70
- bool is_optional_step = 6;
71
- string exclude_restricted_agents = 7;
72
- string action_result = 8;
73
- string required_action = 9;
74
- string redefine_task_title = 10;
75
- string workflow_ref_id = 11;
76
- string is_completed_by = 12;
77
- repeated WorkflowDeadline deadlines = 13;
78
- string created_at = 14;
79
- string updated_at = 15;
80
- repeated WorkflowCondition workflow_condition = 16;
81
- int32 roles_ref_id = 17;
82
- RecipientRoles roles = 18;
83
- WorkflowStepsRecipients workflow_steps_recipients = 19;
84
- }
85
-
86
- message WorkflowDeadline {
87
- string deadline_context = 13;
88
- string deadline_unit = 14;
89
- int64 deadline_unit_counter = 15;
90
- string deadline_effect = 16;
91
- }
92
-
93
- message WorkflowStepsRecipients {
94
- int32 id = 1;
95
- string references_id = 2;
96
- string workflow_steps_ref_id = 3;
97
- optional string job_position_ref_id = 4;
98
- optional string job_title_ref_id = 5;
99
- repeated string employees_ref_id = 6;
100
- string created_at = 7;
101
- string updated_at = 8;
102
- optional JobPosition job_position = 9;
103
- repeated Employee employees = 10;
104
- optional JobTitle job_title = 11;
105
- }
106
- // Request Messages
107
- message BaseWorkflowRequest {
108
- string name = 1;
109
- string description = 2;
110
- string valid_from = 3; // ISO 8601 format
111
- string valid_to = 4; // ISO 8601 format
112
- string created_by = 5; // ISO 8601 format
113
- string updated_by = 6; // ISO 8601 format
114
- repeated BaseWorkflowConditionRequest workflow_condition = 7;
115
- repeated BaseWorkflowStepsRequest workflow_steps = 8;
116
- bool is_active = 9;
117
- string workflow_type = 10;
118
- }
119
- message BaseWorkflowRequestDefault {
120
- string name = 1;
121
- string description = 2;
122
- string valid_from = 3; // ISO 8601 format
123
- string valid_to = 4; // ISO 8601 format
124
- string created_by = 5; // ISO 8601 format
125
- string updated_by = 6; // ISO 8601 format
126
- string employee_references_id = 7;
127
- string companies_references_id = 8;
128
- bool is_active = 9;
129
- string workflow_type = 10;
130
- }
131
- // WorkflowCondition
132
- // Request Messages
133
- message BaseWorkflowConditionRequest {
134
- repeated BaseWorkflowCriteriaRequest workflow_criteria = 1;
135
- }
136
-
137
- // WorkflowCriteria
138
- // Request Messages
139
- message BaseWorkflowCriteriaRequest {
140
- string value = 1;
141
- string properties = 2;
142
- string key = 3;
143
- string operator = 4;
144
- }
145
-
146
- // WorkflowSteps
147
- // Request Messages
148
- message BaseWorkflowStepsRequest {
149
- string name = 1;
150
- string step_type = 2;
151
- string priority = 3;
152
- bool is_optional_step = 4;
153
- string exclude_restricted_agents = 5;
154
- string action_result = 6;
155
- string required_action = 7;
156
- string redefine_task_title = 8;
157
- string is_completed_by = 9;
158
- repeated WorkflowDeadline deadlines = 10;
159
- repeated BaseWorkflowConditionRequest workflow_condition = 14;
160
- BaseWorkflowStepsRecipientRequest workflow_steps_recipients = 15;
161
- int32 roles_ref_id = 16;
162
- }
163
-
164
- // WorkflowStepsRecipients
165
- // Request Messages
166
- message BaseWorkflowStepsRecipientRequest {
167
- optional string job_position_ref_id = 1;
168
- repeated string employees_ref_id = 2;
169
- optional string job_title_ref_id = 3;
170
- }
171
-
172
- message CreateWorkflowRequest { BaseWorkflowRequest base_workflow = 1; }
173
-
174
- message CreateWorkflowRequestDefault {
175
- BaseWorkflowRequestDefault base_workflow = 1;
176
- }
177
-
178
- message UpdateWorkflowRequest {
179
- string references_id = 1;
180
- BaseWorkflowRequest base_workflow = 2;
181
- }
182
-
183
- message DeleteWorkflowRequest { string references_id = 1; }
184
-
185
- message GetWorkflowByIdRequest { string references_id = 1; }
186
-
187
- message GetListWorkflowRequest {
188
- prisca.v1.global.meta.PaginationRequest pagination = 1;
189
- prisca.v1.global.meta.FilterRequest query = 2;
190
- }
191
-
192
- // Response Messages
193
- message CreateWorkflowResponse {
194
- Workflow workflow = 1;
195
- prisca.v1.global.meta.Meta meta = 2;
196
- }
197
-
198
- message UpdateWorkflowResponse {
199
- Workflow workflow = 1;
200
- prisca.v1.global.meta.Meta meta = 2;
201
- }
202
-
203
- message DeleteWorkflowResponse {
204
- string references_id = 1;
205
- prisca.v1.global.meta.Meta meta = 2;
206
- }
207
-
208
- message GetWorkflowByIdResponse {
209
- Workflow workflow = 1;
210
- prisca.v1.global.meta.Meta meta = 2;
211
- }
212
-
213
- message GetListWorkflowResponse {
214
- repeated Workflow workflows = 1;
215
- prisca.v1.global.meta.Meta meta = 2;
216
- }
@@ -1,80 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/document_type;document_type";
4
-
5
- import "prisca/v1/global/meta/meta.proto";
6
- import "prisca/v1/core/number_range/number_range.proto";
7
-
8
- service DocumentTypeService {
9
- rpc CreateDocumentType(CreateDocumentTypeRequest)
10
- returns (CreateDocumentTypeResponse);
11
- rpc UpdateDocumentType(UpdateDocumentTypeRequest)
12
- returns (UpdateDocumentTypeResponse);
13
- rpc GetDocumentTypeById(GetDocumentTypeByIdRequest)
14
- returns (GetDocumentTypeByIdResponse);
15
- rpc GetListDocumentTypes(GetListDocumentTypeRequest)
16
- returns (GetListDocumentTypeResponse);
17
- rpc DeleteDocumentType(DeleteDocumentTypeRequest)
18
- returns (DeleteDocumentTypeResponse);
19
- }
20
-
21
- message DocumentType {
22
- int32 id = 1;
23
- string references_id = 2;
24
- string code = 3;
25
- string code_description = 4;
26
- int32 integer_increment = 5;
27
- string number_range_ref = 6;
28
- string created_at = 7;
29
- string updated_at = 8;
30
- optional NumberRange number_range = 9;
31
- }
32
-
33
- message BaseDocumentType {
34
- string code = 1;
35
- string code_description = 2;
36
- int32 integer_increment = 3;
37
- string number_range_ref = 4;
38
- }
39
-
40
- message CreateDocumentTypeRequest { BaseDocumentType base_document_type = 1; }
41
-
42
- message CreateDocumentTypeResponse {
43
- DocumentType document_type = 1;
44
- prisca.v1.global.meta.Meta meta = 2;
45
- }
46
-
47
- message UpdateDocumentTypeRequest {
48
- string references_id = 1;
49
- BaseDocumentType base_document_type = 2;
50
- }
51
-
52
- message UpdateDocumentTypeResponse {
53
- DocumentType document_type = 1;
54
- prisca.v1.global.meta.Meta meta = 2;
55
- }
56
-
57
- message GetDocumentTypeByIdRequest { string references_id = 1; }
58
-
59
- message GetDocumentTypeByIdResponse {
60
- DocumentType document_type = 1;
61
- optional NumberRange number_range = 2;
62
- prisca.v1.global.meta.Meta meta = 3;
63
- }
64
-
65
- message GetListDocumentTypeRequest {
66
- prisca.v1.global.meta.PaginationRequest pagination = 1;
67
- prisca.v1.global.meta.FilterRequest query = 2;
68
- }
69
-
70
- message GetListDocumentTypeResponse {
71
- repeated DocumentType document_types = 1;
72
- prisca.v1.global.meta.Meta meta = 2;
73
- }
74
-
75
- message DeleteDocumentTypeRequest { string references_id = 1; }
76
-
77
- message DeleteDocumentTypeResponse {
78
- string references_id = 1;
79
- prisca.v1.global.meta.Meta meta = 2;
80
- }
@@ -1,98 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/general_ledger_account;general_ledger_account";
4
-
5
- import "prisca/v1/global/meta/meta.proto";
6
- import "prisca/v1/account_group/account_group.proto";
7
- import "prisca/v1/chart_of_account/chart_of_account.proto";
8
- import "prisca/v1/core/company/company.proto";
9
- import "prisca/v1/core/currency/currency.proto";
10
-
11
- service GeneralLedgerAccountService {
12
- rpc CreateGeneralLedgerAccount(CreateGeneralLedgerAccountRequest)
13
- returns (CreateGeneralLedgerAccountResponse);
14
- rpc UpdateGeneralLedgerAccount(UpdateGeneralLedgerAccountRequest)
15
- returns (UpdateGeneralLedgerAccountResponse);
16
- rpc GetGeneralLedgerAccountById(GetGeneralLedgerAccountByIdRequest)
17
- returns (GetGeneralLedgerAccountByIdResponse);
18
- rpc GetListGeneralLedgerAccount(GetListGeneralLedgerAccountRequest)
19
- returns (GetListGeneralLedgerAccountResponse);
20
- rpc DeleteGeneralLedgerAccount(DeleteGeneralLedgerAccountRequest)
21
- returns (DeleteGeneralLedgerAccountResponse);
22
- }
23
-
24
- message GeneralLedgerAccount {
25
- int64 id = 1;
26
- string account_type = 2;
27
- repeated GeneralLedgerLanguage language_description = 3;
28
- string chart_of_account_ref = 4;
29
- string account_group_ref = 5;
30
- string references_id = 6;
31
- string created_at = 7; // Use ISO 8601 format for date strings
32
- string updated_at = 8; // Optional, nullable
33
- string companies_references_id = 9;
34
- string account_id = 10;
35
- string currency_ref = 11;
36
- optional AccountGroup account_group = 12;
37
- optional ChartOfAccount chart_of_account = 13;
38
- optional Company companies = 14;
39
- optional Currency currency = 15;
40
- }
41
-
42
- message GeneralLedgerLanguage {
43
- string language_key = 1;
44
- string short_text = 2;
45
- string long_text = 3;
46
- }
47
-
48
- message BaseGeneralLedgerAccount {
49
- string account_type = 1;
50
- repeated GeneralLedgerLanguage language_description = 2;
51
- string chart_of_account_ref = 3;
52
- string account_group_ref = 4;
53
- string account_id = 5;
54
- string currency_ref = 6;
55
- }
56
-
57
- message CreateGeneralLedgerAccountRequest {
58
- BaseGeneralLedgerAccount base_general_ledger_account = 1;
59
- }
60
-
61
- message CreateGeneralLedgerAccountResponse {
62
- GeneralLedgerAccount general_ledger_account = 1;
63
- prisca.v1.global.meta.Meta meta = 2;
64
- }
65
-
66
- message UpdateGeneralLedgerAccountRequest {
67
- string references_id = 1;
68
- BaseGeneralLedgerAccount base_general_ledger_account = 2;
69
- }
70
-
71
- message UpdateGeneralLedgerAccountResponse {
72
- GeneralLedgerAccount general_ledger_account = 1;
73
- prisca.v1.global.meta.Meta meta = 2;
74
- }
75
-
76
- message GetGeneralLedgerAccountByIdRequest { string references_id = 1; }
77
-
78
- message GetGeneralLedgerAccountByIdResponse {
79
- GeneralLedgerAccount general_ledger_account = 1;
80
- prisca.v1.global.meta.Meta meta = 2;
81
- }
82
-
83
- message GetListGeneralLedgerAccountRequest {
84
- prisca.v1.global.meta.PaginationRequest pagination = 1;
85
- prisca.v1.global.meta.FilterRequest query = 2;
86
- }
87
-
88
- message GetListGeneralLedgerAccountResponse {
89
- repeated GeneralLedgerAccount general_ledger_accounts = 1;
90
- prisca.v1.global.meta.Meta meta = 2;
91
- }
92
-
93
- message DeleteGeneralLedgerAccountRequest { string references_id = 1; }
94
-
95
- message DeleteGeneralLedgerAccountResponse {
96
- string references_id = 1;
97
- prisca.v1.global.meta.Meta meta = 2;
98
- }
@@ -1,57 +0,0 @@
1
-
2
- syntax="proto3";
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-proto/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
-
@@ -1,155 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchase_order";
4
-
5
- import "prisca/v1/global/meta/meta.proto";
6
- import "prisca/v1/core/file_upload/file_upload.proto";
7
- import "prisca/v1/core/transaction_builder/transaction_builder.proto";
8
- import "prisca/v1/core/item_transaction/item_transaction.proto";
9
- import "prisca/v1/vendor_domain/vendor_domain.proto";
10
- import "prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto";
11
- import "prisca/v1/core/employee/employee.proto";
12
- //package prisca.v1.purchase_order_domain;
13
-
14
- // Purchase Order Service
15
- service PurchaseOrderService {
16
- rpc CreatePurchaseOrder(CreatePurchaseOrderRequest) returns (CreatePurchaseOrderResponse);
17
- rpc GetPurchaseOrderById(GetPurchaseOrderByIdRequest) returns (GetPurchaseOrderByIdResponse);
18
- rpc GetPurchaseOrderByIdDetail(GetPurchaseOrderByIdRequest) returns (GetPurchaseOrderDetailResponse);
19
- rpc GetListPurchaseOrders(GetListPurchaseOrderRequest) returns (GetListPurchaseOrderResponse);
20
- rpc UpdatePurchaseOrder(UpdatePurchaseOrderRequest) returns (UpdatePurchaseOrderResponse);
21
- rpc UpdatePurchaseOrderStatus(UpdatePurchaseOrderStatusRequest) returns (UpdatePurchaseOrderResponse);
22
- rpc DeletePurchaseOrder(DeletePurchaseOrderRequest) returns (DeletePurchaseOrderResponse);
23
- }
24
-
25
- // Domain Model for PurchaseOrder
26
- message PurchaseOrder {
27
- int64 id = 1;
28
- string purchase_request_references_id = 2;
29
- string title = 3;
30
- string date = 4; // ISO 8601 format
31
- string vendor_references_id = 5;
32
- string company_code = 6;
33
- string purchasing_organizations = 7;
34
- string purchasing_groups = 8;
35
- string term_of_payment = 9;
36
- string shipping_address = 10;
37
- string term_of_payment_text = 11;
38
- string guarantee_period = 12;
39
- string retention = 13;
40
- string penalty = 14;
41
- string insurance = 15;
42
- string header_text = 16;
43
- string header_note = 17;
44
- string email_cc = 18;
45
- string references_id = 19; // UUID
46
- string status = 20;
47
- string created_at = 21; // ISO 8601 format
48
- string updated_at = 22; // Nullable
49
- string created_by = 23;
50
- string updated_by = 24;
51
- string file_ids = 25;
52
- string group_references = 26;
53
- bool is_expired = 27;
54
- string purchase_order_number = 28;
55
- repeated FileUploadReferencesReq files = 29;
56
- repeated ItemTransaction item_transactions = 30;
57
- optional Vendor vendor = 31;
58
- optional PurchaseRequisitionTrx purchase_requisition_transaction = 32;
59
- optional Employee created_by_employee = 33;
60
- optional Employee updated_by_employee = 34;
61
- }
62
-
63
- // Order Messages
64
- message BasePurchaseOrderRequest {
65
- string purchase_request_references_id = 1;
66
- string title = 2;
67
- string company_code = 3;
68
- string purchasing_organizations = 4;
69
- string purchasing_groups = 5;
70
- string term_of_payment = 6;
71
- string shipping_address = 7;
72
- string term_of_payment_text = 8;
73
- string guarantee_period = 9;
74
- string retention = 10;
75
- string penalty = 11;
76
- string insurance = 12;
77
- string header_text = 13;
78
- string header_note = 14;
79
- string email_cc = 15;
80
- string status = 16;
81
- string date = 17;
82
- string group_references = 18;
83
- repeated FileUploadReferencesReq files = 19;
84
- repeated BaseItemTransaction item_transactions = 20;
85
- optional Vendor vendor = 21;
86
- }
87
-
88
- message CreatePurchaseOrderRequest {
89
- BasePurchaseOrderRequest base_purchase_order = 1;
90
- }
91
-
92
- message UpdatePurchaseOrderStatusRequest {
93
- string status = 1;
94
- string references_id = 2;
95
- }
96
-
97
- message UpdatePurchaseOrderRequest {
98
- string references_id = 1;
99
- BasePurchaseOrderRequest base_purchase_order = 2;
100
- }
101
-
102
- message GetPurchaseOrderByIdRequest {
103
- string references_id = 1;
104
- }
105
-
106
- message GetListPurchaseOrderRequest {
107
- prisca.v1.global.meta.PaginationRequest pagination = 1;
108
- prisca.v1.global.meta.FilterRequest query = 2;
109
- }
110
-
111
- message DeletePurchaseOrderRequest {
112
- string references_id = 1;
113
- }
114
-
115
- // Response Messages
116
- message CreatePurchaseOrderResponse {
117
- PurchaseOrder purchase_order = 1;
118
- prisca.v1.global.meta.Meta meta = 2;
119
- }
120
-
121
- message UpdatePurchaseOrderResponse {
122
- PurchaseOrder purchase_order = 1;
123
- prisca.v1.global.meta.Meta meta = 2;
124
- }
125
-
126
- message GetPurchaseOrderByIdResponse {
127
- PurchaseOrder purchase_order = 1;
128
- prisca.v1.global.meta.Meta meta = 2;
129
- }
130
-
131
- message GetPurchaseOrderDetailResponse {
132
- repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
133
- repeated GetPurchaseOrderItemPreload transaction_builder_items = 2;
134
- }
135
-
136
- message GetPurchaseOrderItemPreload {
137
- repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item = 1;
138
- repeated GetPurchaseOrderItemDetailPreload transaction_builder_item_details = 2;
139
- }
140
-
141
- message GetPurchaseOrderItemDetailPreload {
142
- repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
143
- }
144
-
145
- message GetListPurchaseOrderResponse {
146
- repeated PurchaseOrder purchase_orders = 1;
147
- prisca.v1.global.meta.Meta meta = 2;
148
- }
149
-
150
- message DeletePurchaseOrderResponse {
151
- string references_id = 1;
152
- prisca.v1.global.meta.Meta meta = 2;
153
- }
154
-
155
-