@aldiokta/protocgen 1.1.22 → 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 (169) 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 -262
  63. package/prisca/v1/bidding/bidding_pb.js +0 -6944
  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 -3100
  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 -4335
  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 -177
  83. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2904
  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 -4180
  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 -2657
  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 -3814
  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 -3010
  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 -3251
  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 -4232
  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 -2828
  104. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  105. package/prisca/v1/core/material_type/material_type_pb.js +0 -3104
  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 -2978
  112. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  113. package/prisca/v1/core/organization/organization_pb.js +0 -3084
  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 -2597
  116. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  117. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3061
  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 -2732
  128. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  129. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2512
  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 -78
  135. package/prisca/v1/core/users/users_pb.js +0 -1653
  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 -4024
  138. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  139. package/prisca/v1/core/workflow/workflow_pb.js +0 -7577
  140. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  141. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -4661
  142. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  143. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  144. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  145. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  146. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  147. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  148. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -1
  149. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -35
  150. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
  151. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -5049
  152. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -523
  153. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  154. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  155. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2927
  156. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  157. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2546
  158. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  159. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2590
  160. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  161. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  162. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -163
  163. package/prisca/v1/quotation/quotation_pb.js +0 -2796
  164. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -193
  165. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5961
  166. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -365
  167. package/prisca/v1/valuation/valuation_pb.js +0 -7729
  168. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
  169. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6363
@@ -0,0 +1,100 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/general_ledger_account;general_ledger_account";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/account_group/account_group.proto";
7
+ import "prisca/v1/chart_of_account/chart_of_account.proto";
8
+ import "prisca/v1/core/company/company.proto";
9
+ import "prisca/v1/core/currency/currency.proto";
10
+
11
+ service GeneralLedgerAccountService {
12
+ rpc CreateGeneralLedgerAccount(CreateGeneralLedgerAccountRequest)
13
+ returns (CreateGeneralLedgerAccountResponse);
14
+ rpc UpdateGeneralLedgerAccount(UpdateGeneralLedgerAccountRequest)
15
+ returns (UpdateGeneralLedgerAccountResponse);
16
+ rpc GetGeneralLedgerAccountById(GetGeneralLedgerAccountByIdRequest)
17
+ returns (GetGeneralLedgerAccountByIdResponse);
18
+ rpc GetListGeneralLedgerAccount(GetListGeneralLedgerAccountRequest)
19
+ returns (GetListGeneralLedgerAccountResponse);
20
+ rpc DeleteGeneralLedgerAccount(DeleteGeneralLedgerAccountRequest)
21
+ returns (DeleteGeneralLedgerAccountResponse);
22
+ }
23
+
24
+ message GeneralLedgerAccount {
25
+ int64 id = 1;
26
+ string account_type = 2;
27
+ repeated GeneralLedgerLanguage language_description = 3;
28
+ string chart_of_account_ref = 4;
29
+ string account_group_ref = 5;
30
+ string references_id = 6;
31
+ string created_at = 7; // Use ISO 8601 format for date strings
32
+ string updated_at = 8; // Optional, nullable
33
+ string companies_references_id = 9;
34
+ string account_id = 10;
35
+ string currency_ref = 11;
36
+ optional AccountGroup account_group = 12;
37
+ optional ChartOfAccount chart_of_account = 13;
38
+ optional Company companies = 14;
39
+ optional Currency currency = 15;
40
+ }
41
+
42
+ message GeneralLedgerLanguage {
43
+ string language_key = 1;
44
+ string short_text = 2;
45
+ string long_text = 3;
46
+ }
47
+
48
+ message BaseGeneralLedgerAccount {
49
+ string account_type = 1;
50
+ repeated GeneralLedgerLanguage language_description = 2;
51
+ string chart_of_account_ref = 3;
52
+ string account_group_ref = 4;
53
+ string account_id = 5;
54
+ string currency_ref = 6;
55
+ }
56
+
57
+ message CreateGeneralLedgerAccountRequest {
58
+ BaseGeneralLedgerAccount base_general_ledger_account = 1;
59
+ }
60
+
61
+ message CreateGeneralLedgerAccountResponse {
62
+ GeneralLedgerAccount general_ledger_account = 1;
63
+ prisca.v1.global.meta.Meta meta = 2;
64
+ }
65
+
66
+ message UpdateGeneralLedgerAccountRequest {
67
+ string references_id = 1;
68
+ BaseGeneralLedgerAccount base_general_ledger_account = 2;
69
+ }
70
+
71
+ message UpdateGeneralLedgerAccountResponse {
72
+ GeneralLedgerAccount general_ledger_account = 1;
73
+ prisca.v1.global.meta.Meta meta = 2;
74
+ }
75
+
76
+ message GetGeneralLedgerAccountByIdRequest { string references_id = 1; }
77
+
78
+ message GetGeneralLedgerAccountByIdResponse {
79
+ GeneralLedgerAccount general_ledger_account = 1;
80
+ prisca.v1.global.meta.Meta meta = 2;
81
+ }
82
+
83
+ message GetListGeneralLedgerAccountRequest {
84
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
85
+ prisca.v1.global.meta.FilterRequest query = 2;
86
+ }
87
+
88
+ message GetListGeneralLedgerAccountResponse {
89
+ repeated GeneralLedgerAccount general_ledger_accounts = 1;
90
+ prisca.v1.global.meta.Meta meta = 2;
91
+ }
92
+
93
+ message DeleteGeneralLedgerAccountRequest {
94
+ repeated string reference_ids = 1;
95
+ }
96
+
97
+ message DeleteGeneralLedgerAccountResponse {
98
+ repeated string reference_ids = 1;
99
+ prisca.v1.global.meta.Meta meta = 2;
100
+ }
@@ -0,0 +1,57 @@
1
+
2
+ syntax="proto3";
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/global/meta";
4
+ package prisca.v1.global.meta;
5
+ import "google/protobuf/any.proto";
6
+
7
+
8
+ message PaginationRequest {
9
+ int32 offset = 1;
10
+ int32 limit = 2;
11
+ }
12
+
13
+ message FilterRequest{
14
+ string filter = 1;
15
+ string order = 2;
16
+ string keyword = 3;
17
+ }
18
+
19
+ message PaginationResponse {
20
+ int32 offset = 1;
21
+ int32 limit = 2;
22
+ int64 total_pages = 3;
23
+ int64 total_rows = 4;
24
+ int64 total_row_per_page = 5;
25
+ }
26
+
27
+ message Meta {
28
+ int64 status_code = 1;
29
+ string message_code = 2;
30
+ string message = 3;
31
+ optional PaginationResponse pagination = 4;
32
+ }
33
+
34
+ message ResponseJson {
35
+ Meta meta = 1;
36
+ optional google.protobuf.Any data = 2;
37
+ }
38
+
39
+
40
+ // type Meta struct {
41
+ // StatusCode int `json:"status_code"`
42
+ // MessageCode string `json:"message_code"`
43
+ // Message string `json:"message"`
44
+ // Pagination *Pagination `json:"pagination"`
45
+ // }
46
+
47
+ // type Pagination struct {
48
+ // Total int `json:"total"`
49
+ // Offset int `json:"offset"`
50
+ // Limit int `json:"Limit"`
51
+ // }
52
+
53
+ // type ResponseJson struct {
54
+ // Data interface{} `json:"data"`
55
+ // Meta Meta `json:"meta"`
56
+ // }
57
+
@@ -0,0 +1,11 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/request_for_quotation";
4
+ import "prisca/v1/global/meta/meta.proto";
5
+ import "prisca/v1/vendor_domain/vendor_domain.proto";
6
+ import "prisca/v1/core/transaction_builder/transaction_builder.proto";
7
+ import "prisca/v1/core/item_transaction/item_transaction.proto";
8
+ import "prisca/v1/core/employee/employee.proto";
9
+ import "prisca/v1/core/file_upload/file_upload.proto";
10
+
11
+
@@ -0,0 +1,157 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchase_order";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/core/file_upload/file_upload.proto";
7
+ import "prisca/v1/core/transaction_builder/transaction_builder.proto";
8
+ import "prisca/v1/core/item_transaction/item_transaction.proto";
9
+ import "prisca/v1/vendor_domain/vendor_domain.proto";
10
+ import "prisca/v1/core/employee/employee.proto";
11
+ import "prisca/v1/core/company/company.proto";
12
+ //package prisca.v1.purchase_order_domain;
13
+
14
+ // Purchase Order Service
15
+ service PurchaseOrderService {
16
+ rpc CreatePurchaseOrder(CreatePurchaseOrderRequest) returns (CreatePurchaseOrderResponse);
17
+ rpc GetPurchaseOrderById(GetPurchaseOrderByIdRequest) returns (GetPurchaseOrderByIdResponse);
18
+ rpc GetPurchaseOrderByIdDetail(GetPurchaseOrderByIdRequest) returns (GetPurchaseOrderDetailResponse);
19
+ rpc GetListPurchaseOrders(GetListPurchaseOrderRequest) returns (GetListPurchaseOrderResponse);
20
+ rpc UpdatePurchaseOrder(UpdatePurchaseOrderRequest) returns (UpdatePurchaseOrderResponse);
21
+ rpc UpdatePurchaseOrderStatus(UpdatePurchaseOrderStatusRequest) returns (UpdatePurchaseOrderResponse);
22
+ rpc DeletePurchaseOrder(DeletePurchaseOrderRequest) returns (DeletePurchaseOrderResponse);
23
+ }
24
+
25
+ // Domain Model for PurchaseOrder
26
+ message PurchaseOrder {
27
+ int64 id = 1;
28
+ string title = 2;
29
+ string date = 3; // ISO 8601 format
30
+ string vendor_references_id = 4;
31
+ string company_code = 5;
32
+ string purchasing_organizations = 6;
33
+ string purchasing_groups = 7;
34
+ string term_of_payment = 8;
35
+ string shipping_address = 9;
36
+ string term_of_payment_text = 10;
37
+ string guarantee_period = 11;
38
+ string retention = 12;
39
+ string penalty = 13;
40
+ string insurance = 14;
41
+ string header_text = 15;
42
+ string header_note = 16;
43
+ string email_cc = 17;
44
+ string references_id = 18; // UUID
45
+ string status = 19;
46
+ string created_at = 20; // ISO 8601 format
47
+ string updated_at = 21; // Nullable
48
+ string created_by = 22;
49
+ string updated_by = 23;
50
+ string file_ids = 24;
51
+ string group_references = 25;
52
+ bool is_expired = 26;
53
+ string purchase_order_number = 27;
54
+ repeated FileUploadReferencesReq files = 28;
55
+ repeated ItemTransaction item_transactions = 29;
56
+ optional Vendor vendor = 30;
57
+ optional Employee created_by_employee = 31;
58
+ optional Employee updated_by_employee = 32;
59
+ string companies_references_id = 33;
60
+ optional BaseCompany companies = 34;
61
+ string department = 35;
62
+ string sales_order_number = 36;
63
+ }
64
+
65
+ // Order Messages
66
+ message BasePurchaseOrderRequest {
67
+ string title = 1;
68
+ string company_code = 2;
69
+ string purchasing_organizations = 3;
70
+ string purchasing_groups = 4;
71
+ string term_of_payment = 5;
72
+ string shipping_address = 6;
73
+ string term_of_payment_text = 7;
74
+ string guarantee_period = 8;
75
+ string retention = 9;
76
+ string penalty = 10;
77
+ string insurance = 11;
78
+ string header_text = 12;
79
+ string header_note = 13;
80
+ string email_cc = 14;
81
+ string status = 15;
82
+ string date = 16;
83
+ string group_references = 17;
84
+ repeated FileUploadReferencesReq files = 18;
85
+ repeated BaseItemTransaction item_transactions = 19;
86
+ optional Vendor vendor = 20;
87
+ string department = 21;
88
+ }
89
+
90
+ message CreatePurchaseOrderRequest {
91
+ BasePurchaseOrderRequest base_purchase_order = 1;
92
+ }
93
+
94
+ message UpdatePurchaseOrderStatusRequest {
95
+ string status = 1;
96
+ string references_id = 2;
97
+ }
98
+
99
+ message UpdatePurchaseOrderRequest {
100
+ string references_id = 1;
101
+ BasePurchaseOrderRequest base_purchase_order = 2;
102
+ }
103
+
104
+ message GetPurchaseOrderByIdRequest {
105
+ string references_id = 1;
106
+ }
107
+
108
+ message GetListPurchaseOrderRequest {
109
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
110
+ prisca.v1.global.meta.FilterRequest query = 2;
111
+ }
112
+
113
+ message DeletePurchaseOrderRequest {
114
+ string references_id = 1;
115
+ }
116
+
117
+ // Response Messages
118
+ message CreatePurchaseOrderResponse {
119
+ PurchaseOrder purchase_order = 1;
120
+ prisca.v1.global.meta.Meta meta = 2;
121
+ }
122
+
123
+ message UpdatePurchaseOrderResponse {
124
+ PurchaseOrder purchase_order = 1;
125
+ prisca.v1.global.meta.Meta meta = 2;
126
+ }
127
+
128
+ message GetPurchaseOrderByIdResponse {
129
+ PurchaseOrder purchase_order = 1;
130
+ prisca.v1.global.meta.Meta meta = 2;
131
+ }
132
+
133
+ message GetPurchaseOrderDetailResponse {
134
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
135
+ repeated GetPurchaseOrderItemPreload transaction_builder_items = 2;
136
+ }
137
+
138
+ message GetPurchaseOrderItemPreload {
139
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item = 1;
140
+ repeated GetPurchaseOrderItemDetailPreload transaction_builder_item_details = 2;
141
+ }
142
+
143
+ message GetPurchaseOrderItemDetailPreload {
144
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
145
+ }
146
+
147
+ message GetListPurchaseOrderResponse {
148
+ repeated PurchaseOrder purchase_orders = 1;
149
+ prisca.v1.global.meta.Meta meta = 2;
150
+ }
151
+
152
+ message DeletePurchaseOrderResponse {
153
+ string references_id = 1;
154
+ prisca.v1.global.meta.Meta meta = 2;
155
+ }
156
+
157
+
@@ -0,0 +1,306 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchase_requisition_trx";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/core/transaction_builder/transaction_builder.proto";
7
+ import "prisca/v1/document_type/document_type.proto";
8
+ import "prisca/v1/core/employee/employee.proto";
9
+ import "prisca/v1/core/file_upload/file_upload.proto";
10
+ import "prisca/v1/core/item_transaction/item_transaction.proto";
11
+
12
+
13
+ service PurchaseRequisitionTrxService {
14
+ rpc CreatePurchaseRequisitionTrx(CreatePurchaseRequisitionTrxRequest)
15
+ returns (CreatePurchaseRequisitionTrxResponse);
16
+ rpc UpdatePurchaseRequisitionTrx(UpdatePurchaseRequisitionTrxRequest)
17
+ returns (UpdatePurchaseRequisitionTrxResponse);
18
+ rpc UpdatePurchaseRequisitionStatusTrx(UpdatePurchaseRequisitionTrxStatusRequest)
19
+ returns (UpdatePurchaseRequisitionTrxResponse);
20
+ rpc GetPurchaseRequisitionTrxById(GetPurchaseRequisitionTrxByIdRequest)
21
+ returns (GetPurchaseRequisitionTrxByIdResponse);
22
+ rpc GetPurchaseRequisitionTrxRefId(GetPurchaseRequisitionTrxByRefRequest)
23
+ returns (GetPurchaseRequisitionTrxByRefResponse);
24
+ rpc GetPurchaseRequisitionTrxList(GetPurchaseRequisitionTrxListRequest)
25
+ returns (GetPurchaseRequisitionTrxListResponse);
26
+ rpc GetPurchaseRequisitionTrxListStatusApproved(GetPurchaseRequisitionTrxListRequest)
27
+ returns (GetPurchaseRequisitionTrxListResponse);
28
+ rpc GetPurchaseRequisitionWithTrxId(
29
+ GetPurchaseRequisitionTrxDetailByIdRequest)
30
+ returns (GetPurchaseRequisitionTransactionTrxDetailPreloadResponse);
31
+ rpc GetPurchaseRequisitionWithTrxList(
32
+ GetPurchaseRequisitionTrxDetailListRequest)
33
+ returns (GetPurchaseRequisitionTrxDetailListResponse);
34
+ rpc GetPurchaseRequisitionWithTrxListTable(
35
+ GetPurchaseRequisitionTrxDetailListDetailRequest)
36
+ returns (GetPurchaseRequisitionTrxDetailListTableResponse);
37
+ rpc GetPurchaseRequisitionWithTrxListDetail(
38
+ GetPurchaseRequisitionTrxDetailListDetailRequest)
39
+ returns (GetPurchaseRequisitionTrxDetailListDetailResponse);
40
+ rpc CreatePurchaseRequisitionTemplate(CreatePurchaseRequisitionTemplateRequest)
41
+ returns (CreatePurchaseRequisitionTemplateResponse);
42
+ rpc GetPurchaseRequisitionTemplateById(GetPurchaseRequisitionTemplateByIdRequest)
43
+ returns (GetPurchaseRequisitionTemplateByIdResponse);
44
+ rpc GetPurchaseRequisitionTemplateList(GetPurchaseRequisitionTemplateListRequest)
45
+ returns (GetPurchaseRequisitionTemplateListResponse);
46
+ rpc DeletePurchaseRequisitionTemplate(DeletePurchaseRequisitionTemplateRequest)
47
+ returns (DeletePurchaseRequisitionTemplateResponse);
48
+ rpc UpdatePurchaseRequisitionTemplate(UpdatePurchaseRequisitionTemplateRequest)
49
+ returns (UpdatePurchaseRequisitionTemplateResponse);
50
+ rpc GetPurchaseRequisitionTrxByGroupRef(GetPurchaseRequisitionTrxByGroupRefRequest)
51
+ returns (GetPurchaseRequisitionTrxListResponse);
52
+ }
53
+
54
+ message PurchaseRequisitionTrx {
55
+ int64 id = 1;
56
+ string title = 2;
57
+ string purchase_requisition_transaction_number = 3;
58
+ string item_category_ref = 4;
59
+ string account_assigment_ref = 5;
60
+ string currency_ref = 6;
61
+ string purchase_requisition_type = 7;
62
+ string department = 8;
63
+ string purchasing_organization = 9;
64
+ string email_cc = 10;
65
+ string plant_ref = 11;
66
+ string purchasing_group = 12;
67
+ string custom_transaction = 13;
68
+ repeated ItemTransaction item_transactions = 14;
69
+ string references_id = 15;
70
+ string group_references = 16;
71
+ bool is_expired = 17;
72
+ string created_at = 18; // ISO 8601
73
+ string updated_at = 19; // Nullable
74
+ string document_type_ref = 20;
75
+ string number_range_sequence = 21;
76
+ optional DocumentType document_type = 22;
77
+ string status = 23;
78
+ string created_by = 24; // ISO 8601
79
+ string updated_by = 25; // ISO 8601
80
+ string justification = 26;
81
+ repeated FileUploadReferencesReq files = 27;
82
+ }
83
+
84
+
85
+ // req
86
+ message BasePurchaseRequisitionTrx {
87
+ string title = 1;
88
+ string purchase_requisition_transaction_number = 2;
89
+ string item_category_ref = 3;
90
+ string account_assigment_ref = 4;
91
+ string currency_ref = 5;
92
+ string purchase_requisition_type = 6;
93
+ string department = 7;
94
+ string purchasing_organization = 8;
95
+ string email_cc = 9;
96
+ string plant_ref = 10;
97
+ string purchasing_group = 11;
98
+ string custom_transaction = 12;
99
+ repeated BaseItemTransaction item_transactions = 13;
100
+ string document_type_ref = 14;
101
+ string companies_references_id = 15;
102
+ string status = 16;
103
+ string justification = 17;
104
+ repeated FileUploadReferencesReq files = 18;
105
+ }
106
+
107
+ message BaseUpdatePurchaseRequisitionTrx {
108
+ string title = 1;
109
+ string purchase_requisition_transaction_number = 2;
110
+ string item_category_ref = 3;
111
+ string account_assigment_ref = 4;
112
+ string currency_ref = 5;
113
+ string purchase_requisition_type = 6;
114
+ string department = 7;
115
+ string purchasing_organization = 8;
116
+ string email_cc = 9;
117
+ string plant_ref = 10;
118
+ string purchasing_group = 11;
119
+ string custom_transaction = 12;
120
+ repeated BaseItemTransaction item_transactions = 13;
121
+ string document_type_ref = 14;
122
+ string status = 15;
123
+ string group_references = 16;
124
+ string references_id = 17;
125
+ string number_range_sequence = 18;
126
+ string justification = 19;
127
+ repeated FileUploadReferencesReq files = 20;
128
+ }
129
+
130
+
131
+ message CreatePurchaseRequisitionTrxRequest {
132
+ BasePurchaseRequisitionTrx purchase_requisition_transaction = 1;
133
+ }
134
+
135
+ message UpdatePurchaseRequisitionTrxRequest {
136
+ int64 id = 1;
137
+ BaseUpdatePurchaseRequisitionTrx purchase_requisition_transaction = 2;
138
+ }
139
+
140
+ message UpdatePurchaseRequisitionTrxStatusRequest {
141
+ string status = 1;
142
+ string references_id = 2;
143
+ }
144
+
145
+ message GetPurchaseRequisitionTrxByIdRequest {
146
+ int64 id = 1;
147
+ }
148
+
149
+ message GetPurchaseRequisitionTrxByRefRequest {
150
+ string references_id = 1;
151
+ }
152
+
153
+ message GetPurchaseRequisitionTrxByGroupRefRequest { string group_ref = 1; }
154
+
155
+ message GetPurchaseRequisitionTrxListRequest {
156
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
157
+ prisca.v1.global.meta.FilterRequest query = 2;
158
+ }
159
+
160
+ message GetPurchaseRequisitionTrxDetailByIdRequest {
161
+ string references_id = 1;
162
+ int64 trx_builder_id = 2;
163
+ }
164
+
165
+ message GetPurchaseRequisitionTrxDetailListRequest {
166
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
167
+ int64 trx_builder_id = 2;
168
+ }
169
+
170
+ message GetPurchaseRequisitionTrxDetailListDetailRequest {
171
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
172
+ int64 trx_builder_id = 2;
173
+ }
174
+
175
+ message CreatePurchaseRequisitionTemplateRequest {
176
+ BasePurchaseRequisitionTrx purchase_requisition_transaction = 1;
177
+ string companies_references_id = 2;
178
+ }
179
+
180
+ message GetPurchaseRequisitionTemplateByIdRequest {
181
+ int64 id = 1;
182
+ }
183
+
184
+ message GetPurchaseRequisitionTemplateListRequest {
185
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
186
+ prisca.v1.global.meta.FilterRequest query = 2;
187
+ }
188
+
189
+ message DeletePurchaseRequisitionTemplateRequest {
190
+ int64 id = 1;
191
+ }
192
+
193
+ message UpdatePurchaseRequisitionTemplateRequest {
194
+ int64 id = 1;
195
+ BaseUpdatePurchaseRequisitionTrx purchase_requisition_transaction = 2;
196
+ string companies_references_id = 3;
197
+ }
198
+
199
+ // res
200
+
201
+ message CreatePurchaseRequisitionTrxResponse {
202
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
203
+ prisca.v1.global.meta.Meta meta = 2;
204
+ }
205
+
206
+ message UpdatePurchaseRequisitionTrxResponse {
207
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
208
+ prisca.v1.global.meta.Meta meta = 2;
209
+ }
210
+
211
+ message GetPurchaseRequisitionTrxByRefResponse {
212
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
213
+ prisca.v1.global.meta.Meta meta = 2;
214
+ }
215
+
216
+ message GetPurchaseRequisitionTrxByIdResponse {
217
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
218
+ prisca.v1.global.meta.Meta meta = 2;
219
+ }
220
+
221
+ message GetPurchaseRequisitionTrxListResponse {
222
+ repeated PurchaseRequisitionTrx purchase_requisition_transaction = 1;
223
+ prisca.v1.global.meta.Meta meta = 2;
224
+ }
225
+
226
+ message GetPurchaseRequisitionTrxDetailByIdResponse {
227
+ prisca.v1.core.transaction_builder.TransactionBuilderFields data = 1;
228
+ }
229
+
230
+ message GetPurchaseRequisitionTrxDetaiPreloadlByIdResponse {
231
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail pr_transaction_builder = 3;
232
+ }
233
+
234
+ message GetPurchaseRequisitionTransactionTrxDetail {
235
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail pr_transaction_builder = 1;
236
+ repeated GetItemTransactionTrxDetail pr_transaction_item = 2;
237
+ }
238
+
239
+ message GetItemTransactionTrxDetail {
240
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail pr_transaction_item_builder = 1;
241
+ repeated GetPurchaseRequisitionDetailTrxDetail
242
+ pr_transaction_item_detail_builder = 2;
243
+ }
244
+
245
+ message GetPurchaseRequisitionDetailTrxDetail {
246
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail
247
+ pr_transaction_item_builder = 1;
248
+ }
249
+
250
+ message GetPurchaseRequisitionTrxDetailListResponse {
251
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetails
252
+ data = 1;
253
+ prisca.v1.global.meta.Meta meta = 2;
254
+ }
255
+
256
+ message GetPurchaseRequisitionTrxDetailListTableResponse {
257
+ repeated
258
+ prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes
259
+ data = 1;
260
+ prisca.v1.global.meta.Meta meta = 2;
261
+ }
262
+
263
+ message GetPurchaseRequisitionTrxDetailListDetailResponse {
264
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetailRes
265
+ data = 1;
266
+ prisca.v1.global.meta.Meta meta = 2;
267
+ }
268
+
269
+ message GetPurchaseRequisitionTransactionTrxDetailPreloadResponse {
270
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail pr_transaction_builder = 1;
271
+ repeated GetPurchaseRequisitionTransactionTrxDetailItemPreload pr_transaction_builder_items = 2;
272
+ }
273
+
274
+ message GetPurchaseRequisitionTransactionTrxDetailItemPreload {
275
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail pr_transaction_builder_item = 1;
276
+ repeated GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload pr_transaction_builder_item_details = 2;
277
+ }
278
+
279
+ message GetPurchaseRequisitionTransactionTrxDetailItemDetailPreload {
280
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail pr_transaction_builder_item_detail = 1;
281
+ }
282
+
283
+ message CreatePurchaseRequisitionTemplateResponse {
284
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
285
+ prisca.v1.global.meta.Meta meta = 2;
286
+ }
287
+
288
+ message GetPurchaseRequisitionTemplateByIdResponse {
289
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
290
+ prisca.v1.global.meta.Meta meta = 2;
291
+ }
292
+
293
+ message GetPurchaseRequisitionTemplateListResponse {
294
+ repeated PurchaseRequisitionTrx purchase_requisition_transaction = 1;
295
+ prisca.v1.global.meta.Meta meta = 2;
296
+ }
297
+
298
+ message DeletePurchaseRequisitionTemplateResponse {
299
+ int64 id = 1;
300
+ prisca.v1.global.meta.Meta meta = 2;
301
+ }
302
+
303
+ message UpdatePurchaseRequisitionTemplateResponse {
304
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
305
+ prisca.v1.global.meta.Meta meta = 2;
306
+ }