@aldiokta/protocgen 1.1.21 → 1.1.23

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 (165) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +221 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -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 +37 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +134 -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 +66 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +96 -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 +95 -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 +93 -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 +82 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -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 +55 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +218 -0
  43. package/prisca/v1/delivery_order/delivery_order.proto +147 -0
  44. package/prisca/v1/document_type/document_type.proto +82 -0
  45. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  46. package/prisca/v1/global/meta/meta.proto +57 -0
  47. package/prisca/v1/good_receipt/good_receipt.proto +11 -0
  48. package/prisca/v1/purchase_order/purchase_order.proto +157 -0
  49. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +306 -0
  50. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  51. package/prisca/v1/purchasing_organization/purchasing_organization.proto +79 -0
  52. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  53. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  54. package/prisca/v1/quotation/quotation.proto +118 -0
  55. package/prisca/v1/request_for_quotation/request_for_quotation.proto +174 -0
  56. package/prisca/v1/valuation/valuation.proto +223 -0
  57. package/prisca/v1/vendor_domain/vendor_domain.proto +226 -0
  58. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  59. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  60. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  61. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  62. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -229
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6335
  64. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  65. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  66. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  67. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  68. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  69. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  70. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  71. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  72. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  73. package/prisca/v1/core/company/company_pb.js +0 -3048
  74. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  75. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  76. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  77. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  78. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  79. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  80. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  81. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1052
  82. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  84. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  85. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3910
  86. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  87. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  88. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  89. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  90. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  91. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  92. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  93. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  94. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  95. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  96. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  97. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  98. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  99. package/prisca/v1/core/location/location_pb.js +0 -10879
  100. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  101. package/prisca/v1/core/material/material_pb.js +0 -4180
  102. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  103. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  106. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  107. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  108. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  109. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  110. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  111. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  114. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  115. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  118. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  119. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  120. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  121. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  122. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  123. package/prisca/v1/core/report/report_pb.js +0 -2822
  124. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  125. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  126. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  127. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  130. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  131. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  133. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  134. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  135. package/prisca/v1/core/users/users_pb.js +0 -1246
  136. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  137. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  140. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  141. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  142. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  143. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  144. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  145. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  146. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  147. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4959
  148. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  149. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  150. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  151. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  152. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  153. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  154. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  155. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  156. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  157. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  158. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -152
  159. package/prisca/v1/quotation/quotation_pb.js +0 -2319
  160. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  161. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
  162. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  163. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  164. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  165. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
@@ -0,0 +1,66 @@
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
+ rpc GetLineOfProcessFlow (ProcessFlowRequest) returns (ProcessFlowResponse);
11
+ }
12
+
13
+
14
+ message LineOfActivity {
15
+ repeated Activity activity = 1;
16
+ }
17
+
18
+ message Activity {
19
+ string action = 1;
20
+ string actor = 2;
21
+ string document = 3;
22
+ string timestamp = 4;
23
+ string note = 5;
24
+ }
25
+
26
+ message ActivityRequest {
27
+ string document_type = 1;
28
+ string doc_references_id = 2;
29
+ }
30
+
31
+ message DocumentRequest {
32
+ string documents_refereneces = 1;
33
+ string status = 2;
34
+ string created_at = 3;
35
+ string created_by = 4;
36
+ string updated_at = 5;
37
+ string updated_by = 6;
38
+ }
39
+
40
+ message ActivityResponse {
41
+ LineOfActivity line_of_activity = 1;
42
+ prisca.v1.global.meta.Meta meta = 2;
43
+ }
44
+
45
+ message ProcessFlowRequest {
46
+ string reference_id = 1;
47
+ string transaction_type = 2;
48
+ }
49
+
50
+ message ProcessFlowResponse {
51
+ repeated ProcessFlow process_flow = 1;
52
+ prisca.v1.global.meta.Meta meta = 2;
53
+ }
54
+
55
+ message ProcessFlow {
56
+ string name = 1;
57
+ repeated ProcessFlowDetail details = 2;
58
+ }
59
+
60
+ message ProcessFlowDetail {
61
+ string transaction_number = 1;
62
+ string transaction_type = 2;
63
+ string transaction_status = 3;
64
+ string transaction_reference_id = 4;
65
+ string previous_transaction_reference_id = 5;
66
+ }
@@ -0,0 +1,96 @@
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
+ string status = 5;
90
+ string remarks = 6;
91
+ }
92
+
93
+ message GetListAllLineOfApprovalResponse {
94
+ repeated BaseListAllLineOfApproval line_of_approvals = 1;
95
+ prisca.v1.global.meta.Meta meta = 2;
96
+ }
@@ -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
+ }
@@ -0,0 +1,289 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/location";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+
8
+ service LocationService {
9
+ rpc CreateCountry(CreateCountryRequest) returns (CreateCountryResponse);
10
+ rpc GetCountry(GetCountryRequest) returns (GetCountryResponse);
11
+ rpc GetCountryById(CountryGetByIdRequest) returns (CountryGetByIdResponse);
12
+ rpc UpdateCountry(UpdateCountryRequest) returns (UpdateCountryResponse);
13
+ rpc DeleteCountry(DeleteCountryRequest) returns (DeleteCountryResponse);
14
+
15
+ rpc CreateProvince(CreateProvinceRequest) returns (CreateProvinceResponse);
16
+ rpc GetProvince(GetProvinceRequest) returns (GetProvinceResponse);
17
+ rpc GetProvinceById(ProvinceGetByIdRequest) returns (ProvinceGetByIdResponse);
18
+ rpc UpdateProvince(UpdateProvinceRequest) returns (UpdateProvinceResponse);
19
+ rpc DeleteProvince(DeleteProvinceRequest) returns (DeleteProvinceResponse);
20
+
21
+ rpc CreateCity(CreateCityRequest) returns (CreateCityResponse);
22
+ rpc GetCity(GetCityRequest) returns (GetCityResponse);
23
+ rpc GetCityById(CityGetByIdRequest) returns (CityGetByIdResponse);
24
+ rpc UpdateCity(UpdateCityRequest) returns (UpdateCityResponse);
25
+ rpc DeleteCity(DeleteCityRequest) returns (DeleteCityResponse);
26
+
27
+ rpc CreateDistrict(CreateDistrictRequest) returns (CreateDistrictResponse);
28
+ rpc GetDistrict(GetDistrictRequest) returns (GetDistrictResponse);
29
+ rpc GetDistrictById(DistrictGetByIdRequest) returns (DistrictGetByIdResponse);
30
+ rpc UpdateDistrict(UpdateDistrictRequest) returns (UpdateDistrictResponse);
31
+ rpc DeleteDistrict(DeleteDistrictRequest) returns (DeleteDistrictResponse);
32
+
33
+ rpc CreateVillage(CreateVillageRequest) returns (CreateVillageResponse);
34
+ rpc GetVillage(GetVillageRequest) returns (GetVillageResponse);
35
+ rpc GetVillageById(VillageGetByIdRequest) returns (VillageGetByIdResponse);
36
+ rpc UpdateVillage(UpdateVillageRequest) returns (UpdateVillageResponse);
37
+ rpc DeleteVillage(DeleteVillageRequest) returns (DeleteVillageResponse);
38
+ }
39
+
40
+ message Country {
41
+ string name = 1;
42
+ string references_id = 2;
43
+ }
44
+
45
+ message BaseCountry {
46
+ string name = 1;
47
+ }
48
+
49
+ message Province {
50
+ string name = 1;
51
+ string country_references_id = 2;
52
+ string references_id = 3;
53
+ }
54
+
55
+ message City {
56
+ string name = 1;
57
+ string province_references_id = 2;
58
+ string references_id = 3;
59
+ }
60
+
61
+ message District {
62
+ string name = 1;
63
+ string city_references_id = 2;
64
+ string references_id = 3;
65
+ }
66
+
67
+ message Village {
68
+ string name = 1;
69
+ string district_references_id = 2;
70
+ string references_id = 3;
71
+ }
72
+
73
+ message GetCountryRequest {
74
+ }
75
+
76
+ message CountryGetByIdRequest {
77
+ string references_id =1;
78
+ }
79
+
80
+ message UpdateCountryRequest {
81
+ string references_id =1;
82
+ BaseCountry country = 2;
83
+ }
84
+
85
+ message GetProvinceRequest {
86
+ string country_references_id =1;
87
+ }
88
+
89
+ message GetCityRequest {
90
+ string province_references_id =1;
91
+ }
92
+
93
+ message GetDistrictRequest {
94
+ string city_references_id =1;
95
+ }
96
+
97
+ message GetVillageRequest {
98
+ string district_references_id =1;
99
+ }
100
+
101
+ message CreateCountryRequest {
102
+ BaseCountry country = 1;
103
+ }
104
+
105
+ message ProvinceGetByIdRequest {
106
+ string references_id =1;
107
+ }
108
+
109
+ message UpdateProvinceRequest {
110
+ string references_id =1;
111
+ Province province = 2;
112
+ }
113
+
114
+ message DeleteCountryRequest {
115
+ string references_id =1;
116
+ }
117
+
118
+ message DeleteProvinceRequest {
119
+ string references_id =1;
120
+ }
121
+
122
+ message CreateProvinceRequest {
123
+ Province province = 1;
124
+ }
125
+
126
+ message CreateCityRequest {
127
+ City city = 1;
128
+ }
129
+
130
+ message CityGetByIdRequest {
131
+ string references_id =1;
132
+ }
133
+
134
+ message UpdateCityRequest {
135
+ string references_id =1;
136
+ City city = 2;
137
+ }
138
+
139
+ message DeleteCityRequest {
140
+ string references_id =1;
141
+ }
142
+
143
+ message CreateDistrictRequest {
144
+ District district = 1;
145
+ }
146
+
147
+ message DistrictGetByIdRequest {
148
+ string references_id =1;
149
+ }
150
+
151
+ message UpdateDistrictRequest {
152
+ string references_id =1;
153
+ District district = 2;
154
+ }
155
+
156
+ message DeleteDistrictRequest {
157
+ string references_id =1;
158
+ }
159
+
160
+ message CreateVillageRequest {
161
+ Village village = 1;
162
+ }
163
+
164
+ message VillageGetByIdRequest {
165
+ string references_id =1;
166
+ }
167
+
168
+ message UpdateVillageRequest {
169
+ string references_id =1;
170
+ Village village = 2;
171
+ }
172
+
173
+ message DeleteVillageRequest {
174
+ string references_id =1;
175
+ }
176
+
177
+ // response
178
+ message DeleteVillageResponse {
179
+ string references_id =1;
180
+ prisca.v1.global.meta.Meta meta = 2;
181
+ }
182
+ message UpdateVillageResponse {
183
+ Village village = 1;
184
+ prisca.v1.global.meta.Meta meta = 2;
185
+ }
186
+ message VillageGetByIdResponse {
187
+ Village village = 1;
188
+ prisca.v1.global.meta.Meta meta = 2;
189
+ }
190
+ message CreateVillageResponse {
191
+ Village village = 1;
192
+ prisca.v1.global.meta.Meta meta = 2;
193
+ }
194
+ message DeleteDistrictResponse {
195
+ string references_id =1;
196
+ prisca.v1.global.meta.Meta meta = 2;
197
+ }
198
+ message UpdateDistrictResponse {
199
+ District district = 1;
200
+ prisca.v1.global.meta.Meta meta = 2;
201
+ }
202
+ message DistrictGetByIdResponse {
203
+ District district = 1;
204
+ prisca.v1.global.meta.Meta meta = 2;
205
+ }
206
+ message CreateDistrictResponse {
207
+ District district = 1;
208
+ prisca.v1.global.meta.Meta meta = 2;
209
+ }
210
+ message DeleteCityResponse {
211
+ string references_id =1;
212
+ prisca.v1.global.meta.Meta meta = 2;
213
+ }
214
+ message UpdateCityResponse {
215
+ City city = 1;
216
+ prisca.v1.global.meta.Meta meta = 2;
217
+ }
218
+ message CityGetByIdResponse {
219
+ City city = 1;
220
+ prisca.v1.global.meta.Meta meta = 2;
221
+ }
222
+ message CreateCityResponse {
223
+ City city = 1;
224
+ prisca.v1.global.meta.Meta meta = 2;
225
+ }
226
+ message CreateProvinceResponse {
227
+ Province province = 1;
228
+ prisca.v1.global.meta.Meta meta = 2;
229
+ }
230
+
231
+ message DeleteProvinceResponse {
232
+ string references_id =1;
233
+ prisca.v1.global.meta.Meta meta = 2;
234
+ }
235
+
236
+ message DeleteCountryResponse {
237
+ string references_id =1;
238
+ prisca.v1.global.meta.Meta meta = 2;
239
+ }
240
+
241
+ message UpdateProvinceResponse {
242
+ Province province = 1;
243
+ prisca.v1.global.meta.Meta meta = 2;
244
+ }
245
+
246
+ message ProvinceGetByIdResponse {
247
+ Province province = 1;
248
+ prisca.v1.global.meta.Meta meta = 2;
249
+ }
250
+
251
+ message GetCountryResponse {
252
+ repeated Country country = 1;
253
+ prisca.v1.global.meta.Meta meta = 2;
254
+ }
255
+
256
+ message GetProvinceResponse {
257
+ repeated Province province = 1;
258
+ prisca.v1.global.meta.Meta meta = 2;
259
+ }
260
+
261
+ message GetCityResponse {
262
+ repeated City city = 1;
263
+ prisca.v1.global.meta.Meta meta = 2;
264
+ }
265
+
266
+ message GetDistrictResponse {
267
+ repeated District district = 1;
268
+ prisca.v1.global.meta.Meta meta = 2;
269
+ }
270
+
271
+ message GetVillageResponse {
272
+ repeated Village village = 1;
273
+ prisca.v1.global.meta.Meta meta = 2;
274
+ }
275
+
276
+ message CreateCountryResponse {
277
+ Country country = 1;
278
+ prisca.v1.global.meta.Meta meta = 2;
279
+ }
280
+
281
+ message UpdateCountryResponse {
282
+ Country country = 1;
283
+ prisca.v1.global.meta.Meta meta = 2;
284
+ }
285
+
286
+ message CountryGetByIdResponse {
287
+ Country country = 1;
288
+ prisca.v1.global.meta.Meta meta = 2;
289
+ }
@@ -0,0 +1,131 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/material";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/material_type/material_type.proto";
8
+ import "prisca/v1/core/material_group/material_group.proto";
9
+ import "prisca/v1/core/work_location/work_location.proto";
10
+ import "prisca/v1/core/unit_of_measurement/unit_of_measurement.proto";
11
+ import "prisca/v1/core/employee/employee.proto";
12
+ //import "prisca/v1/core/department_material/department_material.proto";
13
+
14
+
15
+
16
+ service MaterialService {
17
+ rpc CreateMaterial(CreateMaterialRequest) returns (CreateMaterialResponse);
18
+ rpc UpdateMaterial(UpdateMaterialRequest) returns (UpdateMaterialResponse);
19
+ rpc DeleteMaterial(DeleteMaterialRequest) returns (DeleteMaterialResponse);
20
+ rpc GetMaterialById(GetMaterialByIdRequest) returns (GetMaterialByIdResponse);
21
+ rpc GetListMaterials(GetListMaterialRequest) returns (GetListMaterialResponse);
22
+ }
23
+
24
+ message Material {
25
+ int64 id = 1;
26
+ string material_code = 2;
27
+ string material_description = 3;
28
+ string material_category = 4;
29
+ string old_product_number = 5;
30
+ string material_group_ref = 6;
31
+ string references_id = 7;
32
+ repeated MaterialLanguageDescription language_description = 8;
33
+ string created_by = 9;
34
+ string updated_by = 10;
35
+ string created_at = 11; // ISO 8601 format
36
+ string updated_at = 12; // Nullable, ISO 8601 format
37
+ string base_unit_of_measure_ref = 13;
38
+ optional UnitOfMeasure base_unit_of_measure = 14;
39
+ repeated MaterialUOM unit_of_measure = 15;
40
+ optional MaterialType material_type = 16;
41
+ optional MaterialGroup material_group = 17;
42
+ string material_plant_ref = 18;
43
+ optional WorkLocation material_plant = 19;
44
+ string material_type_code_ref = 20;
45
+ string number_range_sequence = 21;
46
+ string companies_references_id = 22;
47
+ optional Employee created_by_employee = 23;
48
+ optional Employee updated_by_employee = 24;
49
+ // int64 department_material_ref = 6;
50
+ // optional DepartmentMaterial department_material = 16;
51
+ }
52
+
53
+ message MaterialLanguageDescription {
54
+ string language = 1;
55
+ string title = 2;
56
+ }
57
+
58
+ message MaterialUOM {
59
+ int64 material_id = 1;
60
+ int64 uom_id = 2;
61
+ string unit_conversion = 3;
62
+ string unit =4;
63
+ string uom_references_id = 5;
64
+ }
65
+
66
+ message MaterialUOMRequest {
67
+ string uom_references_id = 1;
68
+ string unit_conversion = 2;
69
+ }
70
+
71
+ // Request Messages
72
+ message BaseMaterialRequest {
73
+ string material_code = 1;
74
+ string material_type_code_ref = 2;
75
+ string material_description = 3;
76
+ string material_category = 4;
77
+ string old_product_number = 5;
78
+ string material_group_ref = 6;
79
+ repeated MaterialLanguageDescription language_description = 7;
80
+ repeated MaterialUOMRequest unit_of_measure = 8;
81
+ string material_plant_ref = 9;
82
+ string base_unit_of_measure_ref = 10;
83
+ }
84
+
85
+ message CreateMaterialRequest {
86
+ BaseMaterialRequest base_material = 1;
87
+ }
88
+
89
+ message UpdateMaterialRequest {
90
+ string references_id =1;
91
+ BaseMaterialRequest base_material = 2;
92
+ }
93
+
94
+ message DeleteMaterialRequest {
95
+ repeated string reference_ids = 1;
96
+ }
97
+
98
+ message GetMaterialByIdRequest {
99
+ string references_id =1;
100
+ }
101
+
102
+ message GetListMaterialRequest {
103
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
104
+ prisca.v1.global.meta.FilterRequest query = 2;
105
+ }
106
+
107
+ // Response Messages
108
+ message CreateMaterialResponse {
109
+ Material material = 1;
110
+ prisca.v1.global.meta.Meta meta =2;
111
+ }
112
+
113
+ message UpdateMaterialResponse {
114
+ Material material = 1;
115
+ prisca.v1.global.meta.Meta meta =2;
116
+ }
117
+
118
+ message DeleteMaterialResponse {
119
+ repeated string reference_ids = 1;
120
+ prisca.v1.global.meta.Meta meta = 2;
121
+ }
122
+
123
+ message GetMaterialByIdResponse {
124
+ Material material = 1;
125
+ prisca.v1.global.meta.Meta meta =2;
126
+ }
127
+
128
+ message GetListMaterialResponse {
129
+ repeated Material materials = 1;
130
+ prisca.v1.global.meta.Meta meta =2;
131
+ }