@aldiokta/protocgen 1.1.43 → 1.1.45

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 (178) 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 +251 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +328 -0
  7. package/prisca/v1/core/auth/auth.proto +185 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -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 +41 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +188 -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 +94 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +295 -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 +77 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/messaging/notification.proto +144 -0
  29. package/prisca/v1/core/number_range/number_range.proto +89 -0
  30. package/prisca/v1/core/organization/organization.proto +94 -0
  31. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  32. package/prisca/v1/core/price_condition/price_condition.proto +97 -0
  33. package/prisca/v1/core/procurement/procurement.proto +54 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  35. package/prisca/v1/core/report/report.proto +90 -0
  36. package/prisca/v1/core/report/user_report.proto +74 -0
  37. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  38. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
  41. package/prisca/v1/core/users/users.proto +55 -0
  42. package/prisca/v1/core/work_location/work_location.proto +122 -0
  43. package/prisca/v1/core/workflow/workflow.proto +220 -0
  44. package/prisca/v1/core/workspace/workspace.proto +48 -0
  45. package/prisca/v1/delivery_order/delivery_order.proto +116 -0
  46. package/prisca/v1/document_type/document_type.proto +89 -0
  47. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  48. package/prisca/v1/global/meta/meta.proto +57 -0
  49. package/prisca/v1/good_receipt/good_receipt.proto +118 -0
  50. package/prisca/v1/invoice/invoice.proto +170 -0
  51. package/prisca/v1/purchase_order/purchase_order.proto +292 -0
  52. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
  53. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  54. package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
  55. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  56. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  57. package/prisca/v1/quotation/quotation.proto +135 -0
  58. package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
  59. package/prisca/v1/valuation/valuation.proto +223 -0
  60. package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
  61. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  62. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
  63. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  64. package/prisca/v1/account_group/account_group_pb.js +0 -2983
  65. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
  66. package/prisca/v1/bidding/bidding_pb.js +0 -8694
  67. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  68. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
  69. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
  70. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10625
  71. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
  72. package/prisca/v1/core/auth/auth_pb.js +0 -5833
  73. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  74. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
  75. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  76. package/prisca/v1/core/company/company_pb.js +0 -3094
  77. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  78. package/prisca/v1/core/currency/currency_pb.js +0 -2516
  79. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  80. package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
  81. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  82. package/prisca/v1/core/employee/employee_pb.js +0 -4329
  83. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  84. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
  85. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  86. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
  87. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  88. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
  89. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  90. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
  91. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  92. package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
  93. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  94. package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
  95. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
  96. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
  97. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
  98. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
  99. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  100. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
  101. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  102. package/prisca/v1/core/location/location_pb.js +0 -11262
  103. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  104. package/prisca/v1/core/material/material_pb.js +0 -4226
  105. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  106. package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
  107. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  108. package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
  109. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  110. package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
  111. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  112. package/prisca/v1/core/messaging/messaging_pb.js +0 -890
  113. package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
  114. package/prisca/v1/core/messaging/notification_pb.js +0 -4775
  115. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  116. package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
  117. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  118. package/prisca/v1/core/organization/organization_pb.js +0 -3078
  119. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  120. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
  121. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  122. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
  123. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  124. package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
  125. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  126. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
  127. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  128. package/prisca/v1/core/report/report_pb.js +0 -2816
  129. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  130. package/prisca/v1/core/report/user_report_pb.js +0 -2446
  131. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  132. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
  133. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  134. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
  135. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
  136. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
  137. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  138. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
  139. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  140. package/prisca/v1/core/users/users_pb.js +0 -1647
  141. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  142. package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
  143. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  144. package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
  145. package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
  146. package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
  147. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  148. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
  149. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
  150. package/prisca/v1/document_type/document_type_pb.js +0 -3004
  151. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  152. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
  153. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  154. package/prisca/v1/global/meta/meta_pb.js +0 -1173
  155. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
  156. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
  157. package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
  158. package/prisca/v1/invoice/invoice_pb.js +0 -5664
  159. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
  160. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
  162. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
  163. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  164. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
  165. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  166. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
  167. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  168. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
  169. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  170. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
  171. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
  172. package/prisca/v1/quotation/quotation_pb.js +0 -4167
  173. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
  174. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
  175. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
  176. package/prisca/v1/valuation/valuation_pb.js +0 -7806
  177. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -279
  178. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
@@ -0,0 +1,74 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/report";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/core/report/report.proto";
7
+
8
+ // UserReport Service grpc
9
+ service UserReportService {
10
+ rpc CreateUserReport(CreateUserReportRequest) returns (CreateUserReportResponse);
11
+ rpc GetUserReportById(GetUserReportByIdRequest) returns (GetUserReportByIdResponse);
12
+ rpc GetListUserReports(GetListUserReportRequest) returns (GetListUserReportResponse);
13
+ rpc UpdateUserReport(UpdateUserReportRequest) returns (UpdateUserReportResponse);
14
+ rpc DeleteUserReport(DeleteUserReportRequest) returns (DeleteUserReportResponse);
15
+ }
16
+
17
+ // Base Model
18
+ message UserReport {
19
+ string report_references_id = 1;
20
+ string user_references_id = 2;
21
+ string created_at = 3; // ISO 8601 format
22
+ optional Report report = 4;
23
+ }
24
+
25
+ // Request Messages
26
+ message BaseUserReportRequest {
27
+ repeated string report_references_id = 1;
28
+ }
29
+
30
+ message CreateUserReportRequest {
31
+ BaseUserReportRequest base_report = 1;
32
+ }
33
+
34
+ message UpdateUserReportRequest {
35
+ BaseUserReportRequest base_report = 1;
36
+ }
37
+
38
+ message GetListUserReportRequest {
39
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
40
+ prisca.v1.global.meta.FilterRequest query = 2;
41
+ }
42
+
43
+ message GetUserReportByIdRequest {
44
+ }
45
+
46
+ message DeleteUserReportRequest {
47
+ BaseUserReportRequest base_report = 1;
48
+ }
49
+
50
+ // Response Messages
51
+ message CreateUserReportResponse {
52
+ BaseUserReportRequest user_report = 1;
53
+ prisca.v1.global.meta.Meta meta = 2;
54
+ }
55
+
56
+ message UpdateUserReportResponse {
57
+ BaseUserReportRequest user_report = 1;
58
+ prisca.v1.global.meta.Meta meta = 2;
59
+ }
60
+
61
+ message GetListUserReportResponse {
62
+ repeated UserReport reports = 1;
63
+ prisca.v1.global.meta.Meta meta = 2;
64
+ }
65
+
66
+ message GetUserReportByIdResponse {
67
+ repeated UserReport reports = 1;
68
+ prisca.v1.global.meta.Meta meta = 2;
69
+ }
70
+
71
+ message DeleteUserReportResponse {
72
+ string user_references_id = 1;
73
+ prisca.v1.global.meta.Meta meta = 2;
74
+ }
@@ -0,0 +1,82 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/tax_code;tax_code";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+
7
+ service TaxCodeService {
8
+ rpc CreateTaxCode(CreateTaxCodeRequest) returns (CreateTaxCodeResponse);
9
+ rpc UpdateTaxCode(UpdateTaxCodeRequest) returns (UpdateTaxCodeResponse);
10
+ rpc GetTaxCodeById(GetTaxCodeByIdRequest) returns (GetTaxCodeByIdResponse);
11
+ rpc GetListTaxCode(GetListTaxCodeRequest) returns (GetListTaxCodeResponse);
12
+ rpc DeleteTaxCode(DeleteTaxCodeRequest) returns (DeleteTaxCodeResponse);
13
+ }
14
+
15
+ message TaxCode {
16
+ int64 id = 1;
17
+ string code = 2;
18
+ string code_name = 3;
19
+ string procedure = 4;
20
+ string references_id = 5;
21
+ string created_at = 6;
22
+ string updated_at = 7;
23
+ string created_by = 8;
24
+ string updated_by = 9;
25
+ string companies_references_id = 10;
26
+ int64 value = 11;
27
+ }
28
+
29
+ message BaseTaxCode {
30
+ string code = 1;
31
+ string code_name = 2;
32
+ string procedure = 3;
33
+ int64 value = 4;
34
+ }
35
+ message CreateTaxCodeRequest {
36
+ BaseTaxCode base_tax_code = 1;
37
+ }
38
+
39
+ message CreateTaxCodeResponse {
40
+ TaxCode tax_code = 1;
41
+ prisca.v1.global.meta.Meta meta = 2;
42
+ }
43
+
44
+ message UpdateTaxCodeRequest {
45
+ string references_id = 1;
46
+ BaseTaxCode base_tax_code = 2;
47
+ }
48
+
49
+ message UpdateTaxCodeResponse {
50
+ TaxCode tax_code = 1;
51
+ prisca.v1.global.meta.Meta meta = 2;
52
+ }
53
+
54
+ message GetTaxCodeByIdRequest {
55
+ string references_id = 1;
56
+ }
57
+
58
+ message GetTaxCodeByIdResponse {
59
+ TaxCode tax_code = 1;
60
+ prisca.v1.global.meta.Meta meta = 2;
61
+ }
62
+
63
+ message GetListTaxCodeRequest {
64
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
65
+ prisca.v1.global.meta.FilterRequest query = 2;
66
+ }
67
+
68
+ message GetListTaxCodeResponse {
69
+ repeated TaxCode tax_codes = 1;
70
+ prisca.v1.global.meta.Meta meta = 2;
71
+ }
72
+
73
+ message DeleteTaxCodeRequest {
74
+ repeated string reference_ids = 1;
75
+ }
76
+
77
+ message DeleteTaxCodeResponse {
78
+ repeated string reference_ids = 1;
79
+ prisca.v1.global.meta.Meta meta = 2;
80
+ }
81
+
82
+
@@ -0,0 +1,74 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/term_of_payment";
4
+ import "prisca/v1/global/meta/meta.proto";
5
+
6
+ service TermOfPaymentService {
7
+ rpc CreateTermOfPayment (CreateTermOfPaymentReq) returns (CreateTermOfPaymentRes);
8
+ rpc UpdateTermOfPayment (UpdateTermOfPaymentReq) returns (UpdateTermOfPaymentRes);
9
+ rpc GetSingleTermOfPayment (GetSingleTermOfPaymentReq) returns (GetSingleTermOfPaymentRes);
10
+ rpc GetListTermOfPayment (GetListTermOfPaymentReq) returns (GetListTermOfPaymentRes);
11
+ rpc DeleteTermOfPayment (DeleteTermOfPaymentReq) returns (DeleteTermOfPaymentRes);
12
+ }
13
+
14
+
15
+
16
+ message TermOfPayment {
17
+ int64 id = 1;
18
+ string code = 2;
19
+ string days = 3;
20
+ string description = 4;
21
+ string references_id = 5;
22
+ string created_at = 6;
23
+ string updated_at = 7;
24
+ string created_by = 9;
25
+ string updated_by = 10;
26
+ string companies_references_id = 11;
27
+ }
28
+
29
+ message CreateTermOfPaymentReq {
30
+ TermOfPayment term_of_payment = 1;
31
+ }
32
+
33
+ message UpdateTermOfPaymentReq {
34
+ TermOfPayment term_of_payment = 1;
35
+ string references_id = 2;
36
+ }
37
+
38
+ message GetListTermOfPaymentReq {
39
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
40
+ prisca.v1.global.meta.FilterRequest query = 2;
41
+ }
42
+
43
+ message GetSingleTermOfPaymentReq {
44
+ string references_id = 1;
45
+ }
46
+
47
+ message DeleteTermOfPaymentReq {
48
+ repeated string reference_ids = 1;
49
+ }
50
+
51
+ message DeleteTermOfPaymentRes {
52
+ repeated string reference_ids = 1;
53
+ prisca.v1.global.meta.Meta meta = 2;
54
+ }
55
+
56
+ message CreateTermOfPaymentRes {
57
+ TermOfPayment term_of_payment = 1;
58
+ prisca.v1.global.meta.Meta meta = 2;
59
+ }
60
+
61
+ message GetSingleTermOfPaymentRes {
62
+ TermOfPayment term_of_payment = 1;
63
+ prisca.v1.global.meta.Meta meta = 2;
64
+ }
65
+
66
+ message UpdateTermOfPaymentRes {
67
+ TermOfPayment term_of_payment = 1;
68
+ prisca.v1.global.meta.Meta meta = 2;
69
+ }
70
+
71
+ message GetListTermOfPaymentRes {
72
+ repeated TermOfPayment term_of_payment = 1;
73
+ prisca.v1.global.meta.Meta meta = 2;
74
+ }
@@ -0,0 +1,366 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/transaction_builder";
4
+ import "prisca/v1/global/meta/meta.proto";
5
+ import "google/protobuf/any.proto";
6
+
7
+ service TransactionBuilderService {
8
+ // builder
9
+ rpc CreateTransactionBuilder(TransactionBuilderRequest)
10
+ returns (ResponseTransactionBuilder);
11
+ rpc CreateTransactionFields(TransactionFieldsRequest)
12
+ returns (ResponseTransactionFieldsList);
13
+ rpc CreateTransactionFieldsWithName(TransactionFieldsRequestWithName)
14
+ returns (ResponseTransactionFieldsList);
15
+ rpc CreateTransactionConfig(TransactionConfigRequest)
16
+ returns (ResponseTransactionConfig);
17
+
18
+ rpc GetTransactionBuilder(GetTransactionBuilderById)
19
+ returns (ResponseTransactionBuilder);
20
+ rpc GetTransactionBuilderWithDetail(GetTransactionBuilderByIdWithDetail)
21
+ returns (ResponseTransactionBuilderWithDetails);
22
+ rpc GetTransactionBuilderWithDetailByName(GetTransactionBuilderByNameWithDetail)
23
+ returns (ResponseTransactionBuilderWithDetails);
24
+ rpc GetTransactionFields(GetTransactionFieldsById)
25
+ returns (ResponseTransactionFields);
26
+ rpc GetTransactionConfig(GetTransactionConfigById)
27
+ returns (ResponseTransactionConfig);
28
+
29
+ rpc GetListTransactionBuilder(GetTransactionBuilderList)
30
+ returns (ResponseTransactionBuilderList);
31
+ rpc GetListTransactionBuilderTable(GetTransactionFieldsById)
32
+ returns (ResponseTransactionBuilderWithDetailTable);
33
+ rpc GetListTransactionBuilderFilter(GetTransactionFieldsById)
34
+ returns (ResponseTransactionBuilderWithDetailFilter);
35
+ rpc GetListTransactionBuilderWorkflowCriteria(GetTransactionFieldsById)
36
+ returns (ResponseTransactionBuilderWithDetailWorkflowCriteria);
37
+ rpc GetListTransactionBuilderForm(GetTransactionFieldsById)
38
+ returns (ResponseTransactionBuilderWithDetailForm);
39
+ rpc GetListTransactionBuilderDetail(GetTransactionFieldsById)
40
+ returns (ResponseTransactionBuilderWithDetail);
41
+ rpc GetListTransactionBuilderTableByName(GetTransactionFieldsByName)
42
+ returns (ResponseTransactionBuilderWithDetailTable);
43
+ rpc GetListTransactionBuilderFilterByName(GetTransactionFieldsByName)
44
+ returns (ResponseTransactionBuilderWithDetailFilter);
45
+ rpc GetListTransactionBuilderWorkflowCriteriaByName(GetTransactionFieldsByName)
46
+ returns (ResponseTransactionBuilderWithDetailWorkflowCriteria);
47
+ rpc GetListTransactionBuilderFormByName(GetTransactionFieldsByName)
48
+ returns (ResponseTransactionBuilderWithDetailForm);
49
+ rpc GetListTransactionBuilderDetailByName(GetTransactionFieldsByName)
50
+ returns (ResponseTransactionBuilderWithDetail);
51
+ rpc GetListTransactionBuilderByName(GetTransactionBuilderList)
52
+ returns (ResponseTransactionBuilderList);
53
+ rpc GetListTransactionConfig(GetTransactionConfigList)
54
+ returns (ResponseTransactionConfigList);
55
+
56
+ rpc UpdateTransactionBuilder(EditTransactionBuilderById)
57
+ returns (ResponseTransactionBuilder);
58
+ rpc UpdateTransactionFields(EditTransactionFieldsById)
59
+ returns (ResponseTransactionFields);
60
+ rpc UpdateTransactionConfig(EditTransactionConfigById)
61
+ returns (ResponseTransactionConfig);
62
+
63
+ rpc CreateTransactionBuilderDefault(CreateTransactionBuilderDefaultReq)
64
+ returns (CreateTransactionBuilderDefaultRes);
65
+
66
+ rpc DeleteTransactionBuilderFields (DeleteTransactionBuilderFieldsRequest) returns (DeleteTransactionBuilderFieldsRes);
67
+ }
68
+
69
+
70
+ message DeleteTransactionBuilderFieldsRequest {
71
+ repeated string references_ids = 1;
72
+ }
73
+
74
+ message DeleteTransactionBuilderFieldsRes {
75
+ repeated string reference_ids = 1;
76
+ prisca.v1.global.meta.Meta meta = 2;
77
+ }
78
+
79
+
80
+
81
+ message Value {
82
+ string key = 1;
83
+ string value = 2;
84
+ }
85
+
86
+ message PropertiesRules {
87
+ string type = 1;
88
+ string value = 2;
89
+ }
90
+
91
+ message TransactionBuilderFieldsForm {
92
+ int64 transaction_builder_id = 1;
93
+ int64 orders = 2;
94
+ string key = 3;
95
+ string label = 4;
96
+ string references_id = 5;
97
+ repeated Value option = 6;
98
+ string properties = 7;
99
+ repeated FieldRulesWithProp field_rules = 8;
100
+ bool is_master = 9;
101
+ }
102
+
103
+ message TransactionBuilderFieldsDetail {
104
+ int64 transaction_builder_id = 1;
105
+ int64 orders = 2;
106
+ string key = 3;
107
+ string label = 4;
108
+ string references_id = 5;
109
+ string properties = 6;
110
+ string value = 7;
111
+ bool is_master = 8;
112
+ }
113
+
114
+ message TransactionBuilderFieldsTable {
115
+ int64 transaction_builder_id = 1;
116
+ int64 orders = 2;
117
+ string key = 3;
118
+ string label = 4;
119
+ string references_id = 5;
120
+ string properties = 6;
121
+ bool is_master = 7;
122
+ }
123
+
124
+
125
+ message TransactionBuilderFieldsFilter {
126
+ int64 transaction_builder_id = 1;
127
+ int64 orders = 2;
128
+ string key = 3;
129
+ string label = 4;
130
+ string references_id = 5;
131
+ string properties = 6;
132
+ }
133
+
134
+
135
+ message TransactionBuilderFieldsWorkflowCriteria {
136
+ int64 transaction_builder_id = 1;
137
+ string key = 3;
138
+ string label = 4;
139
+ string references_id = 5;
140
+ string properties = 6;
141
+ }
142
+
143
+ // model
144
+ message TransactionBuilderFields {
145
+ int64 id = 1;
146
+ int64 transaction_builder_id = 2;
147
+ string key = 3;
148
+ string label = 4;
149
+ repeated FieldRules field_rules = 5;
150
+ repeated FieldViews field_views = 6;
151
+ string value = 7;
152
+ string references_id = 8;
153
+ bool is_master = 9;
154
+ }
155
+
156
+ message TransactionBuilderFieldsBase {
157
+ string key = 1;
158
+ string label = 2;
159
+ repeated FieldRules field_rules = 3;
160
+ repeated FieldViews field_views = 4;
161
+ bool is_master = 5;
162
+ string references_id = 6;
163
+ }
164
+
165
+ message FieldRulesWithProp {
166
+ optional int64 id = 1;
167
+ string name = 2;
168
+ string properties = 3;
169
+ optional string transaction_builder_field_ref = 4;
170
+ string references_id = 5;
171
+ }
172
+
173
+ message FieldRules {
174
+ optional int64 id = 1;
175
+ string name = 2;
176
+ string properties = 3;
177
+ optional string transaction_builder_field_ref = 4;
178
+ string references_id = 5;
179
+ }
180
+
181
+ message FieldViews {
182
+ optional int64 id = 1;
183
+ string name = 2;
184
+ string orders = 3;
185
+ string properties = 4;
186
+ optional string transaction_builder_field_ref = 5;
187
+ string references_id = 6;
188
+ }
189
+
190
+ message TransactionBuilder {
191
+ int64 id = 1;
192
+ string name = 2;
193
+ string reference_id = 3;
194
+ }
195
+
196
+ message TransactionBuilderWithDetails {
197
+ int64 id = 1;
198
+ string name = 2;
199
+ repeated TransactionBuilderFields transaction_builder_fields = 3;
200
+ }
201
+
202
+ message TransactionBuilderWithDetailTableRes {
203
+ int64 id = 1;
204
+ string name = 2;
205
+ repeated TransactionBuilderFieldsTable transaction_builder_fields = 3;
206
+ }
207
+
208
+
209
+ message TransactionBuilderWithDetailFilterRes {
210
+ int64 id = 1;
211
+ string name = 2;
212
+ repeated TransactionBuilderFieldsFilter transaction_builder_fields = 3;
213
+ }
214
+
215
+
216
+ message TransactionBuilderWithDetailWorkflowCriteriaRes {
217
+ int64 id = 1;
218
+ string name = 2;
219
+ repeated TransactionBuilderFieldsWorkflowCriteria transaction_builder_fields = 3;
220
+ }
221
+
222
+ message TransactionBuilderWithDetailFormRes {
223
+ int64 id = 1;
224
+ string name = 2;
225
+ repeated TransactionBuilderFieldsForm transaction_builder_fields = 3;
226
+ }
227
+
228
+ message TransactionBuilderWithDetailRes {
229
+ int64 id = 1;
230
+ string name = 2;
231
+ repeated TransactionBuilderFieldsDetail transaction_builder_fields = 3;
232
+ }
233
+
234
+ message TransactionBuilderConfig {
235
+ string name = 1;
236
+ int64 transaction_builder_id = 2;
237
+ string type = 3;
238
+ }
239
+
240
+ // request builder
241
+ message TransactionBuilderRequest { string name = 1; }
242
+
243
+ message GetTransactionBuilderById { int64 id = 1; }
244
+
245
+ message GetTransactionBuilderByIdWithDetail { int64 id = 1; }
246
+ message GetTransactionBuilderByNameWithDetail { string name = 1; }
247
+
248
+ message EditTransactionBuilderById {
249
+ int64 id = 1;
250
+ string name = 2;
251
+ }
252
+
253
+ message GetTransactionBuilderList {
254
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
255
+ }
256
+ // request transaction field
257
+ message TransactionFieldsRequest {
258
+ int64 id = 1;
259
+ repeated TransactionBuilderFieldsBase transaction_builder_fields = 2;
260
+ }
261
+
262
+ message TransactionFieldsRequestWithName {
263
+ string name = 1;
264
+ repeated TransactionBuilderFieldsBase transaction_builder_fields = 2;
265
+ }
266
+
267
+ message GetTransactionFieldsById { int64 id = 1; }
268
+
269
+ message GetTransactionFieldsByName {
270
+ string name = 1;
271
+ }
272
+
273
+ message EditTransactionFieldsById {
274
+ TransactionBuilderFields transaction_field = 1;
275
+ }
276
+
277
+ // request transaction config
278
+ message TransactionConfigRequest {
279
+ TransactionBuilderConfig transaction_builder_config = 1;
280
+ }
281
+
282
+ message GetTransactionConfigById { int64 id = 1; }
283
+
284
+ message GetTransactionConfigList {
285
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
286
+ }
287
+
288
+ message EditTransactionConfigById {
289
+ TransactionBuilderConfig transaction_congfig = 1;
290
+ }
291
+
292
+ // response builder
293
+ message ResponseTransactionBuilder {
294
+ TransactionBuilder transaction_builder = 1;
295
+ prisca.v1.global.meta.Meta meta = 2;
296
+ }
297
+
298
+ message ResponseTransactionBuilderWithDetailList {
299
+ repeated TransactionBuilderWithDetails transaction_builder = 1;
300
+ prisca.v1.global.meta.Meta meta = 2;
301
+ }
302
+
303
+ message ResponseTransactionBuilderWithDetails {
304
+ TransactionBuilderWithDetails transaction_builder = 1;
305
+ prisca.v1.global.meta.Meta meta = 2;
306
+ }
307
+
308
+ message ResponseTransactionBuilderWithDetailTable {
309
+ TransactionBuilderWithDetailTableRes transaction_builder = 1;
310
+ prisca.v1.global.meta.Meta meta = 2;
311
+ }
312
+
313
+ message ResponseTransactionBuilderWithDetailFilter{
314
+ TransactionBuilderWithDetailFilterRes transaction_builder = 1;
315
+ prisca.v1.global.meta.Meta meta = 2;
316
+ }
317
+
318
+
319
+ message ResponseTransactionBuilderWithDetailWorkflowCriteria{
320
+ TransactionBuilderWithDetailWorkflowCriteriaRes transaction_builder = 1;
321
+ prisca.v1.global.meta.Meta meta = 2;
322
+ }
323
+
324
+ message ResponseTransactionBuilderWithDetailForm {
325
+ TransactionBuilderWithDetailFormRes transaction_builder = 1;
326
+ prisca.v1.global.meta.Meta meta = 2;
327
+ }
328
+
329
+ message ResponseTransactionBuilderWithDetail {
330
+ TransactionBuilderWithDetailRes transaction_builder = 1;
331
+ prisca.v1.global.meta.Meta meta = 2;
332
+ }
333
+
334
+ message ResponseTransactionBuilderList {
335
+ repeated TransactionBuilder transaction_builders = 1;
336
+ prisca.v1.global.meta.Meta meta = 2;
337
+ }
338
+
339
+ // response fields
340
+ message ResponseTransactionFieldsList {
341
+ repeated TransactionBuilderFields transaction_fields = 1;
342
+ prisca.v1.global.meta.Meta meta = 2;
343
+ }
344
+
345
+ message ResponseTransactionFields {
346
+ TransactionBuilderFieldsBase transaction_field = 1;
347
+ prisca.v1.global.meta.Meta meta = 2;
348
+ }
349
+
350
+ // response config
351
+ message ResponseTransactionConfig {
352
+ TransactionBuilderConfig transaction_builder_config = 1;
353
+ }
354
+
355
+ message ResponseTransactionConfigList {
356
+ repeated TransactionBuilderConfig transaction_builder_config = 1;
357
+ prisca.v1.global.meta.Meta meta = 2;
358
+ }
359
+
360
+ message CreateTransactionBuilderDefaultReq {
361
+ string companies_references_id = 1;
362
+ }
363
+ message CreateTransactionBuilderDefaultRes {
364
+ repeated TransactionBuilderWithDetailRes transaction_builder = 1;
365
+ prisca.v1.global.meta.Meta meta = 2;
366
+ }
@@ -0,0 +1,89 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/unit_of_measurement";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+
7
+ //package prisca.v1.unit_of_measurement;
8
+
9
+ // Unit of Measurement Service
10
+ service UnitOfMeasurementService {
11
+ rpc CreateUnitOfMeasurement(CreateUnitOfMeasureRequest) returns (CreateUnitOfMeasureResponse);
12
+ rpc GetUnitOfMeasurementById(GetUnitOfMeasureByIdRequest) returns (GetUnitOfMeasureByIdResponse);
13
+ rpc GetListUnitOfMeasurements(GetListUnitOfMeasureRequest) returns (GetListUnitOfMeasureResponse);
14
+ rpc UpdateUnitOfMeasurement(UpdateUnitOfMeasureRequest) returns (UpdateUnitOfMeasureResponse);
15
+ rpc DeleteUnitOfMeasurement(DeleteUnitOfMeasureRequest) returns (DeleteUnitOfMeasureResponse);
16
+ }
17
+
18
+ // Base Model
19
+ message UnitOfMeasure {
20
+ int64 id = 1;
21
+ string unit = 2;
22
+ string commercial = 3;
23
+ string technical = 4;
24
+ string commercial_description = 5;
25
+ string technical_description = 6;
26
+ bool is_active = 7;
27
+ string references_id = 8;
28
+ string created_at = 9; // Use ISO 8601 format for date strings
29
+ string updated_at = 10; // Optional, nullable
30
+ string companies_references_id = 11;
31
+ }
32
+
33
+ // Request Messages
34
+ message BaseUnitOfMeasureRequest {
35
+ string unit = 1;
36
+ string commercial = 2;
37
+ string technical = 3;
38
+ optional string commercial_description= 4;
39
+ optional string technical_description= 5;
40
+ bool is_active = 6;
41
+ }
42
+
43
+ message CreateUnitOfMeasureRequest {
44
+ BaseUnitOfMeasureRequest base_unit_of_measure = 1;
45
+ }
46
+
47
+ message UpdateUnitOfMeasureRequest {
48
+ string references_id =1;
49
+ BaseUnitOfMeasureRequest base_unit_of_measure = 2;
50
+ }
51
+
52
+ message GetListUnitOfMeasureRequest {
53
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
54
+ prisca.v1.global.meta.FilterRequest query = 2;
55
+ }
56
+
57
+ message GetUnitOfMeasureByIdRequest {
58
+ string references_id =1;
59
+ }
60
+
61
+ message DeleteUnitOfMeasureRequest {
62
+ repeated string reference_ids = 1;
63
+ }
64
+
65
+ // Response Messages
66
+ message CreateUnitOfMeasureResponse {
67
+ UnitOfMeasure unit_of_measure = 1;
68
+ prisca.v1.global.meta.Meta meta =2;
69
+ }
70
+
71
+ message UpdateUnitOfMeasureResponse {
72
+ UnitOfMeasure unit_of_measure = 1;
73
+ prisca.v1.global.meta.Meta meta =2;
74
+ }
75
+
76
+ message GetListUnitOfMeasureResponse {
77
+ repeated UnitOfMeasure unit_of_measures = 1;
78
+ prisca.v1.global.meta.Meta meta =2;
79
+ }
80
+
81
+ message GetUnitOfMeasureByIdResponse {
82
+ UnitOfMeasure unit_of_measure = 1;
83
+ prisca.v1.global.meta.Meta meta =2;
84
+ }
85
+
86
+ message DeleteUnitOfMeasureResponse {
87
+ repeated string reference_ids = 1;
88
+ prisca.v1.global.meta.Meta meta = 2;
89
+ }