@aldiokta/protocgen 1.1.8 → 1.1.19

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 (158) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +79 -0
  3. package/prisca/v1/account_group/account_group.proto +86 -0
  4. package/prisca/v1/bidding/bidding.proto +159 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +87 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +76 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +120 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +86 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +83 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +45 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +216 -0
  43. package/prisca/v1/document_type/document_type.proto +80 -0
  44. package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
  45. package/prisca/v1/global/meta/meta.proto +57 -0
  46. package/prisca/v1/purchase_order/purchase_order.proto +155 -0
  47. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
  48. package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
  49. package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
  50. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  52. package/prisca/v1/quotation/quotation.proto +82 -0
  53. package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
  54. package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
  55. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  56. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  57. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  58. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  59. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -119
  60. package/prisca/v1/bidding/bidding_pb.js +0 -3152
  61. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  62. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  63. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  64. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  65. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  66. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  67. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  68. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  69. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  70. package/prisca/v1/core/company/company_pb.js +0 -3048
  71. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  72. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  73. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  74. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  75. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  76. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  77. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  78. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
  79. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  80. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  81. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  82. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
  83. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  84. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  85. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  86. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  87. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  88. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  89. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  90. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  91. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  92. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  93. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  94. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  95. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  96. package/prisca/v1/core/location/location_pb.js +0 -10879
  97. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  98. package/prisca/v1/core/material/material_pb.js +0 -4180
  99. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  100. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  101. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  102. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  103. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  104. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  105. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  106. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  107. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  108. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  109. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  110. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  111. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  112. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  113. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  114. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  115. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  116. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  117. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  118. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  119. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  120. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  121. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  122. package/prisca/v1/core/report/report_pb.js +0 -2822
  123. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  124. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  125. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  126. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  127. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  128. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  129. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  130. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  131. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  133. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  134. package/prisca/v1/core/users/users_pb.js +0 -1246
  135. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  136. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  137. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  138. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  139. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  140. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  141. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  142. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  143. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  144. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  145. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
  146. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  147. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  148. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  149. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  150. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  151. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  152. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  153. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  154. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  155. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
  156. package/prisca/v1/quotation/quotation_pb.js +0 -3941
  157. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  158. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
@@ -0,0 +1,120 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/item_transaction";
4
+ import "prisca/v1/core/file_upload/file_upload.proto";
5
+
6
+ message ItemTransaction {
7
+ int64 id = 1;
8
+ string acc_assigment = 2;
9
+ string material_group = 3;
10
+ string material_code = 4;
11
+ string detail_description = 5;
12
+ string description = 6;
13
+ float quantity = 7;
14
+ string unit_of_measure = 8;
15
+ float estimated_unit_price = 9;
16
+ string delivery_date = 10;
17
+ string planned_delivery_time = 11;
18
+ string custom_transaction = 12;
19
+ repeated ItemTransactionDetail item_transaction_detail = 13;
20
+ repeated ItemTransactionPriceCondition item_transaction_price_condition = 14;
21
+ string references_id = 15;
22
+ string created_at = 16; // ISO 8601
23
+ string updated_at = 17; // Nullable
24
+ string transaction_references = 18;
25
+ string type_transaction = 19;
26
+ string previous_references = 20;
27
+ repeated FileUploadReferencesReq files = 21;
28
+ string previous_transaction_references = 22;
29
+ string currency = 23;
30
+ }
31
+
32
+ message ItemTransactionDetail {
33
+ int64 id = 1;
34
+ string item_transaction_ref = 2;
35
+ string gl_account = 3;
36
+ string gl_account_description = 4;
37
+ string unit_of_measure = 5;
38
+ float valuation_price = 6;
39
+ string requisitioner = 7;
40
+ string custom_transaction = 8;
41
+ string order_number = 9;
42
+ string order_description = 10;
43
+ string material_code = 11;
44
+ float quantity = 12;
45
+ float distribution = 13;
46
+ string asset_no = 14;
47
+ string references_id = 15;
48
+ string created_at = 16; // ISO 8601
49
+ string updated_at = 17; // Nullable
50
+ string cost_center = 18;
51
+ string service_no = 19;
52
+ string service_description = 20;
53
+ float amount_price = 21;
54
+ repeated FileUploadReferencesReq files = 22;
55
+ }
56
+
57
+ message ItemTransactionPriceCondition {
58
+ int64 id = 1;
59
+ float amount = 2;
60
+ string operator = 3;
61
+ float divide = 4;
62
+ string type = 5;
63
+ string name = 6;
64
+ string item_transaction_ref = 7;
65
+ string references_id = 8; // UUID
66
+ string created_at = 9; // ISO 8601
67
+ string updated_at = 10; // Nullable (ISO 8601)
68
+ }
69
+
70
+ message BaseItemTransaction {
71
+ string transaction_references = 1;
72
+ string acc_assigment = 2;
73
+ string material_group = 3;
74
+ string material_code = 4;
75
+ string detail_description = 5;
76
+ string description = 6;
77
+ float quantity = 7;
78
+ string unit_of_measure = 8;
79
+ float estimated_unit_price = 9;
80
+ string delivery_date = 10;
81
+ string planned_delivery_time = 11;
82
+ string custom_transaction = 12;
83
+ repeated BaseItemTransactionDetail item_transaction_detail =13;
84
+ repeated BaseItemTransactionPriceCondition item_transaction_price_condition = 14;
85
+ string previous_references = 15;
86
+ string previous_transaction_references = 16;
87
+ repeated FileUploadReferencesReq files = 17;
88
+ string currency = 18;
89
+ }
90
+
91
+ message BaseItemTransactionDetail {
92
+ string gl_account = 1;
93
+ string gl_account_description = 2;
94
+ string unit_of_measure = 3;
95
+ float valuation_price = 4;
96
+ string requisitioner = 5;
97
+ string custom_transaction = 6;
98
+ float distribution = 7;
99
+ float quantity = 8;
100
+ string asset_no = 9;
101
+ string item_transaction_ref = 10;
102
+ string cost_center = 11;
103
+ string order_number = 12;
104
+ string order_description = 13;
105
+ string service_no = 14;
106
+ string service_description = 15;
107
+ float amount_price = 16;
108
+ string material_code = 17;
109
+ repeated FileUploadReferencesReq files = 18;
110
+ }
111
+
112
+
113
+ message BaseItemTransactionPriceCondition {
114
+ float amount = 1;
115
+ string operator = 2;
116
+ float divide = 3;
117
+ string type = 4;
118
+ string name = 5;
119
+ string item_transaction_ref = 6;
120
+ }
@@ -0,0 +1,79 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/job_grade";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/company/company.proto";
8
+
9
+ service JobGradeService {
10
+ rpc CreateJobGrade(CreateJobGradeRequest) returns (CreateJobGradeResponse);
11
+ rpc GetJobGradeById(JobGradeGetByIdRequest) returns (JobGradeGetByIdResponse);
12
+ rpc UpdateJobGrade(UpdateJobGradeRequest) returns (UpdateJobGradeResponse);
13
+ rpc DeleteJobGrade(DeleteJobGradeRequest) returns (DeleteJobGradeResponse);
14
+ rpc GetListJobGrade(GetListJobGradeRequest) returns (GetListJobGradeResponse);
15
+ }
16
+
17
+ message JobGrade {
18
+ string code = 1;
19
+ string name = 2;
20
+ string description = 3;
21
+ string companies_references_id = 4;
22
+ }
23
+
24
+ message BaseJobGrade {
25
+ string references_id = 1;
26
+ string code = 2;
27
+ string name = 3;
28
+ string description = 4;
29
+ string companies_references_id = 5;
30
+ BaseCompanyParent company = 6;
31
+ }
32
+
33
+ message JobGradeGetByIdRequest {
34
+ string references_id = 1;
35
+ }
36
+
37
+ message CreateJobGradeRequest {
38
+ JobGrade job_grade = 1;
39
+ }
40
+
41
+ message UpdateJobGradeRequest {
42
+ string references_id = 1;
43
+ JobGrade job_grade = 2;
44
+ }
45
+
46
+ message DeleteJobGradeRequest {
47
+ int64 id = 1;
48
+ }
49
+
50
+ message DeleteJobGradeResponse {
51
+ int64 id = 1;
52
+ prisca.v1.global.meta.Meta meta = 2;
53
+ }
54
+
55
+ message GetListJobGradeRequest {
56
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
57
+ prisca.v1.global.meta.FilterRequest query = 2;
58
+ }
59
+
60
+ // Response Messages
61
+ message CreateJobGradeResponse {
62
+ BaseJobGrade job_grade = 1;
63
+ prisca.v1.global.meta.Meta meta = 2;
64
+ }
65
+
66
+ message GetListJobGradeResponse {
67
+ repeated BaseJobGrade job_grade = 1;
68
+ prisca.v1.global.meta.Meta meta = 2;
69
+ }
70
+
71
+ message UpdateJobGradeResponse {
72
+ JobGrade job_grade = 1;
73
+ prisca.v1.global.meta.Meta meta = 2;
74
+ }
75
+
76
+ message JobGradeGetByIdResponse {
77
+ BaseJobGrade job_grade = 1;
78
+ prisca.v1.global.meta.Meta meta = 2;
79
+ }
@@ -0,0 +1,113 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/job_position";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/organization/organization.proto";
8
+ import "prisca/v1/core/work_location/work_location.proto";
9
+ import "prisca/v1/core/company/company.proto";
10
+ import "prisca/v1/core/access_manager/access_manager.proto";
11
+
12
+ service JobPositionService {
13
+ rpc CreateJobPosition(CreateJobPositionRequest) returns (CreateJobPositionResponse);
14
+ rpc GetJobPositionById(JobPositionGetByIdRequest) returns (JobPositionGetByIdResponse);
15
+ rpc UpdateJobPosition(UpdateJobPositionRequest) returns (UpdateJobPositionResponse);
16
+ rpc DeleteJobPosition(DeleteJobPositionRequest) returns (DeleteJobPositionResponse);
17
+ rpc GetListJobPosition(GetListJobPositionRequest) returns (GetListJobPositionResponse);
18
+ }
19
+
20
+ message BaseJobPosition {
21
+ string code = 1;
22
+ string name = 2;
23
+ string alias = 3;
24
+ string cost_center_code = 4;
25
+ string parent_references_id = 5;
26
+ BaseJobPositionParent parent = 6;
27
+ string organization_references_id = 7;
28
+ BaseOrganization organizations = 8;
29
+ string work_location_references_id = 9;
30
+ WorkLocation work_locations = 10;
31
+ string description = 11;
32
+ string companies_references_id = 12;
33
+ BaseCompanyParent company = 13;
34
+ string users_role_references_id = 14;
35
+ Role role = 15;
36
+ string references_id = 16;
37
+ }
38
+
39
+ message BaseJobPositionParent {
40
+ string references_id = 1;
41
+ string code = 2;
42
+ string name = 3;
43
+ string alias = 4;
44
+ string cost_center_code = 5;
45
+ BaseJobPosition job_positions = 6;
46
+ Organization organizations = 7;
47
+ WorkLocation work_locations = 8;
48
+ string description = 9;
49
+ BaseCompanyParent company = 10;
50
+ Role role = 11;
51
+ }
52
+
53
+ message JobPosition {
54
+ string references_id = 1;
55
+ string code = 2;
56
+ string name = 3;
57
+ string alias = 4;
58
+ string cost_center_code = 5;
59
+ string parent_references_id = 6;
60
+ string organization_references_id = 7;
61
+ string work_location_references_id = 8;
62
+ string description = 9;
63
+ string companies_references_id = 10;
64
+ string users_role_references_id = 11;
65
+ }
66
+
67
+ message JobPositionGetByIdRequest {
68
+ string references_id = 1;
69
+ }
70
+
71
+ message CreateJobPositionRequest {
72
+ JobPosition job_position = 1;
73
+ }
74
+
75
+ message UpdateJobPositionRequest {
76
+ string references_id = 1;
77
+ JobPosition job_position = 2;
78
+ }
79
+
80
+ message DeleteJobPositionRequest {
81
+ string references_id = 1;
82
+ }
83
+
84
+ message DeleteJobPositionResponse {
85
+ string references_id = 1;
86
+ prisca.v1.global.meta.Meta meta = 2;
87
+ }
88
+
89
+ message GetListJobPositionRequest {
90
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
91
+ prisca.v1.global.meta.FilterRequest query = 2;
92
+ }
93
+
94
+ // Response Messages
95
+ message CreateJobPositionResponse {
96
+ JobPosition job_position = 1;
97
+ prisca.v1.global.meta.Meta meta = 2;
98
+ }
99
+
100
+ message GetListJobPositionResponse {
101
+ repeated BaseJobPosition job_position = 1;
102
+ prisca.v1.global.meta.Meta meta = 2;
103
+ }
104
+
105
+ message UpdateJobPositionResponse {
106
+ JobPosition job_position = 1;
107
+ prisca.v1.global.meta.Meta meta = 2;
108
+ }
109
+
110
+ message JobPositionGetByIdResponse {
111
+ BaseJobPosition job_position = 1;
112
+ prisca.v1.global.meta.Meta meta = 2;
113
+ }
@@ -0,0 +1,89 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/job_title";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/company/company.proto";
8
+
9
+ service JobTitleService {
10
+ rpc CreateJobTitle(CreateJobTitleRequest) returns (CreateJobTitleResponse);
11
+ rpc GetJobTitleById(JobTitleGetByIdRequest) returns (JobTitleGetByIdResponse);
12
+ rpc UpdateJobTitle(UpdateJobTitleRequest) returns (UpdateJobTitleResponse);
13
+ rpc DeleteJobTitle(DeleteJobTitleRequest) returns (DeleteJobTitleResponse);
14
+ rpc GetListJobTitle(GetListJobTitleRequest) returns (GetListJobTitleResponse);
15
+ }
16
+
17
+ message JobTitle {
18
+ string code = 1;
19
+ string name = 2;
20
+ string description = 3;
21
+ string parent_references_id = 4;
22
+ string companies_references_id = 5;
23
+ }
24
+
25
+ message BaseJobTitle {
26
+ string references_id = 1;
27
+ string code = 2;
28
+ string name = 3;
29
+ string description = 4;
30
+ string parent_references_id = 5;
31
+ BaseJobTitleParent parent = 6;
32
+ string companies_references_id = 7;
33
+ BaseCompanyParent company = 8;
34
+ }
35
+
36
+ message BaseJobTitleParent {
37
+ string references_id = 1;
38
+ string code = 2;
39
+ string name = 3;
40
+ string description = 4;
41
+ }
42
+
43
+ message JobTitleGetByIdRequest {
44
+ string references_id = 1;
45
+ }
46
+
47
+ message CreateJobTitleRequest {
48
+ JobTitle job_title = 1;
49
+ }
50
+
51
+ message UpdateJobTitleRequest {
52
+ string references_id = 1;
53
+ JobTitle job_title = 2;
54
+ }
55
+
56
+ message DeleteJobTitleRequest {
57
+ int64 id = 1;
58
+ }
59
+
60
+ message DeleteJobTitleResponse {
61
+ int64 id = 1;
62
+ prisca.v1.global.meta.Meta meta = 2;
63
+ }
64
+
65
+ message GetListJobTitleRequest {
66
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
67
+ prisca.v1.global.meta.FilterRequest query = 2;
68
+ }
69
+
70
+ // Response Messages
71
+ message CreateJobTitleResponse {
72
+ JobTitle job_title = 1;
73
+ prisca.v1.global.meta.Meta meta = 2;
74
+ }
75
+
76
+ message GetListJobTitleResponse {
77
+ repeated BaseJobTitle job_title = 1;
78
+ prisca.v1.global.meta.Meta meta = 2;
79
+ }
80
+
81
+ message UpdateJobTitleResponse {
82
+ JobTitle job_title = 1;
83
+ prisca.v1.global.meta.Meta meta = 2;
84
+ }
85
+
86
+ message JobTitleGetByIdResponse {
87
+ BaseJobTitle job_title = 1;
88
+ prisca.v1.global.meta.Meta meta = 2;
89
+ }
@@ -0,0 +1,42 @@
1
+
2
+ syntax = "proto3";
3
+
4
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/line_of_activity";
5
+
6
+ import "prisca/v1/global/meta/meta.proto";
7
+
8
+ service ActivityService {
9
+ rpc GetActivityLineOfApproval (ActivityRequest) returns (ActivityResponse);
10
+ }
11
+
12
+
13
+ message LineOfActivity {
14
+ repeated Activity activity = 1;
15
+ }
16
+
17
+ message Activity {
18
+ string action = 1;
19
+ string actor = 2;
20
+ string document = 3;
21
+ string timestamp = 4;
22
+ string note = 5;
23
+ }
24
+
25
+ message ActivityRequest {
26
+ string document_type = 1;
27
+ string doc_references_id = 2;
28
+ }
29
+
30
+ message DocumentRequest {
31
+ string documents_refereneces = 1;
32
+ string status = 2;
33
+ string created_at = 3;
34
+ string created_by = 4;
35
+ string updated_at = 5;
36
+ string updated_by = 6;
37
+ }
38
+
39
+ message ActivityResponse {
40
+ LineOfActivity line_of_activity = 1;
41
+ prisca.v1.global.meta.Meta meta = 2;
42
+ }
@@ -0,0 +1,94 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/line_of_approval";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/core/employee/employee.proto";
7
+
8
+ service LineOfApprovalService {
9
+ rpc CreateLineOfApproval(CreateLineOfApprovalRequest) returns (CreateLineOfApprovalResponse);
10
+ rpc UpdateLineOfApproval(UpdateLineOfApprovalRequest) returns (UpdateLineOfApprovalResponse);
11
+ rpc DeleteLineOfApproval(DeleteLineOfApprovalRequest) returns (DeleteLineOfApprovalResponse);
12
+ rpc GetLineOfApprovalById(GetLineOfApprovalByIdRequest) returns (GetLineOfApprovalByIdResponse);
13
+ rpc GetListLineOfApprovals(GetListLineOfApprovalRequest) returns (GetListLineOfApprovalResponse);
14
+ rpc GetListAllLineOfApprovals(GetListLineOfApprovalRequest) returns (GetListAllLineOfApprovalResponse);
15
+ }
16
+
17
+ message LineOfApproval {
18
+ int32 id = 1;
19
+ string workflow_ref = 2;
20
+ string document_ref = 3;
21
+ string employees_ref_id = 4;
22
+ string status = 5;
23
+ string references_id = 6;
24
+ string created_at = 7; // ISO 8601 format
25
+ string updated_at = 8; // Nullable, ISO 8601 format
26
+ string document_type = 9;
27
+ optional Employee employees = 10;
28
+ string approval_note = 11;
29
+ }
30
+
31
+ // Request Messages
32
+ message BaseLineOfApprovalRequest {
33
+ string status = 1; // Enum values: rejected, pending, approved
34
+ string approval_note = 2;
35
+ }
36
+
37
+ message CreateLineOfApprovalRequest {
38
+ BaseLineOfApprovalRequest base_line_of_approval = 1;
39
+ }
40
+
41
+ message UpdateLineOfApprovalRequest {
42
+ string references_id = 1;
43
+ BaseLineOfApprovalRequest base_line_of_approval = 2;
44
+ }
45
+
46
+ message DeleteLineOfApprovalRequest {
47
+ string references_id = 1;
48
+ }
49
+
50
+ message GetLineOfApprovalByIdRequest {
51
+ string references_id = 1;
52
+ }
53
+
54
+ message GetListLineOfApprovalRequest {
55
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
56
+ prisca.v1.global.meta.FilterRequest query = 2;
57
+ }
58
+
59
+ // Response Messages
60
+ message CreateLineOfApprovalResponse {
61
+ LineOfApproval line_of_approval = 1;
62
+ prisca.v1.global.meta.Meta meta = 2;
63
+ }
64
+
65
+ message UpdateLineOfApprovalResponse {
66
+ LineOfApproval line_of_approval = 1;
67
+ prisca.v1.global.meta.Meta meta = 2;
68
+ }
69
+
70
+ message DeleteLineOfApprovalResponse {
71
+ string references_id = 1;
72
+ prisca.v1.global.meta.Meta meta = 2;
73
+ }
74
+
75
+ message GetLineOfApprovalByIdResponse {
76
+ LineOfApproval line_of_approval = 1;
77
+ prisca.v1.global.meta.Meta meta = 2;
78
+ }
79
+
80
+ message GetListLineOfApprovalResponse {
81
+ repeated LineOfApproval line_of_approvals = 1;
82
+ prisca.v1.global.meta.Meta meta = 2;
83
+ }
84
+ message BaseListAllLineOfApproval {
85
+ optional LineOfApproval line_of_approval = 1;
86
+ string document_number = 2;
87
+ string title = 3;
88
+ string department = 4;
89
+ }
90
+
91
+ message GetListAllLineOfApprovalResponse {
92
+ repeated BaseListAllLineOfApproval line_of_approvals = 1;
93
+ prisca.v1.global.meta.Meta meta = 2;
94
+ }
@@ -0,0 +1,78 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/cherry/v1/core/link_data_source";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ service LinkDataSourceService {
7
+ rpc CreateLinkDataSource (CreateLinkDataSourceReq) returns (CreateLinkDataSourceRes);
8
+ rpc UpdateLinkDataSource (UpdateLinkDataSourceReq) returns (UpdateLinkDataSourceRes);
9
+ rpc GetIdLinkDataSource (GetIdLinkDataSourceReq) returns (GetIdLinkDataSourceRes);
10
+ rpc GetListLinkDataSource (GetListLinkDataSourceReq) returns (GetListLinkDataSourceRes);
11
+ rpc DeleteLinkDatasource (DeleteLinkDataSourceReq) returns (DeleteLinkDataSourceRes);
12
+ }
13
+
14
+ message LinkDataSource {
15
+ int64 id = 1;
16
+ string url = 2;
17
+ string name = 3;
18
+ string key = 4;
19
+ string auth_type = 5;
20
+ string references_id = 6;
21
+ string created_at = 7; // Use ISO 8601 format for date strings
22
+ string updated_at = 8; // Optional, nullable
23
+ }
24
+
25
+ message BaseLinkDataSourceReq {
26
+ string url = 1;
27
+ string key = 2;
28
+ string auth_key = 3;
29
+ }
30
+
31
+ message CreateLinkDataSourceReq {
32
+ BaseLinkDataSourceReq base_link_data_source = 1;
33
+ }
34
+
35
+ message UpdateLinkDataSourceReq {
36
+ int64 id = 1;
37
+ BaseLinkDataSourceReq base_link_data_source = 2;
38
+ }
39
+
40
+ message GetIdLinkDataSourceReq {
41
+ int64 id = 1;
42
+ }
43
+
44
+ message DeleteLinkDataSourceReq {
45
+ int64 id = 1;
46
+ }
47
+
48
+ message GetListLinkDataSourceReq {
49
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
50
+ prisca.v1.global.meta.FilterRequest query = 2;
51
+ }
52
+
53
+ // response
54
+
55
+ message CreateLinkDataSourceRes {
56
+ LinkDataSource link_data_source = 1;
57
+ prisca.v1.global.meta.Meta meta =2;
58
+ }
59
+
60
+ message UpdateLinkDataSourceRes {
61
+ LinkDataSource link_data_source = 1;
62
+ prisca.v1.global.meta.Meta meta =2;
63
+ }
64
+
65
+ message GetIdLinkDataSourceRes {
66
+ LinkDataSource link_data_source = 1;
67
+ prisca.v1.global.meta.Meta meta =2;
68
+ }
69
+
70
+ message DeleteLinkDataSourceRes {
71
+ int64 id = 1;
72
+ prisca.v1.global.meta.Meta meta =2;
73
+ }
74
+
75
+ message GetListLinkDataSourceRes {
76
+ repeated LinkDataSource link_data_source = 1;
77
+ prisca.v1.global.meta.Meta meta =2;
78
+ }