@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,77 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchasing_organization";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/company/company.proto";
8
+
9
+ service PurchasingOrganizationService {
10
+ rpc CreatePurchasingOrganization(CreatePurchasingOrganizationRequest)
11
+ returns (CreatePurchasingOrganizationResponse);
12
+ rpc GetPurchasingOrganizationById(PurchasingOrganizationGetByIdRequest)
13
+ returns (PurchasingOrganizationGetByIdResponse);
14
+ rpc UpdatePurchasingOrganization(UpdatePurchasingOrganizationRequest)
15
+ returns (UpdatePurchasingOrganizationResponse);
16
+ rpc GetListPurchasingOrganization(GetListPurchasingOrganizationRequest)
17
+ returns (GetListPurchasingOrganizationResponse);
18
+ rpc DeletePurchasingOrganization(DeletePurchasingOrganizationRequest)
19
+ returns (DeletePurchasingOrganizationResponse);
20
+ }
21
+
22
+ message PurchasingOrganization {
23
+ string references_id = 1;
24
+ string description = 2;
25
+ string code = 3;
26
+ bool validity = 4;
27
+ string created_at = 5; // ISO 8601 format
28
+ string updated_at = 6; // Nullable (ISO 8601 format)
29
+ string companies_references_id = 7;
30
+ }
31
+
32
+
33
+ message PurchasingOrganizationGetByIdRequest { string references_id = 1; }
34
+
35
+ message CreatePurchasingOrganizationRequest {
36
+ PurchasingOrganization purchasing_organization = 1;
37
+ }
38
+
39
+ message UpdatePurchasingOrganizationRequest {
40
+ string references_id = 1;
41
+ PurchasingOrganization purchasing_organization = 2;
42
+ }
43
+
44
+ message GetListPurchasingOrganizationRequest {
45
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
46
+ prisca.v1.global.meta.FilterRequest query = 2;
47
+ }
48
+
49
+ message DeletePurchasingOrganizationRequest {
50
+ repeated string reference_ids = 1;
51
+ }
52
+
53
+ // Response Messages
54
+ message CreatePurchasingOrganizationResponse {
55
+ PurchasingOrganization purchasing_organization = 1;
56
+ prisca.v1.global.meta.Meta meta = 2;
57
+ }
58
+
59
+ message GetListPurchasingOrganizationResponse {
60
+ repeated PurchasingOrganization purchasing_organization = 1;
61
+ prisca.v1.global.meta.Meta meta = 2;
62
+ }
63
+
64
+ message UpdatePurchasingOrganizationResponse {
65
+ PurchasingOrganization purchasing_organization = 1;
66
+ prisca.v1.global.meta.Meta meta = 2;
67
+ }
68
+
69
+ message PurchasingOrganizationGetByIdResponse {
70
+ PurchasingOrganization purchasing_organization = 1;
71
+ prisca.v1.global.meta.Meta meta = 2;
72
+ }
73
+
74
+ message DeletePurchasingOrganizationResponse {
75
+ repeated string reference_ids = 1;
76
+ prisca.v1.global.meta.Meta meta = 2;
77
+ }
@@ -0,0 +1,81 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchasing_organization_assignment";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/purchasing_organization/purchasing_organization.proto";
8
+ import "prisca/v1/core/company/company.proto";
9
+
10
+ service AssignPOrganizationService {
11
+ rpc CreateAssignPOrganization(CreateAssignPOrganizationRequest)
12
+ returns (CreateAssignPOrganizationResponse);
13
+ rpc GetAssignPOrganizationById(AssignPOrganizationGetByIdRequest)
14
+ returns (AssignPOrganizationGetByIdResponse);
15
+ rpc UpdateAssignPOrganization(UpdateAssignPOrganizationRequest)
16
+ returns (UpdateAssignPOrganizationResponse);
17
+ rpc GetListAssignPOrganization(GetListAssignPOrganizationRequest)
18
+ returns (GetListAssignPOrganizationResponse);
19
+ rpc DeleteAssignPOrganization(DeleteAssignPOrganizationRequest)
20
+ returns (DeleteAssignPOrganizationResponse);
21
+ }
22
+
23
+ message AssignPOrganization {
24
+ string companies_references_id = 1;
25
+ string purchasing_organization_references_id = 2;
26
+ }
27
+
28
+ message BaseAssignPOrganization {
29
+ string companies_references_id = 1;
30
+ string references_id = 2;
31
+ Company company = 3;
32
+ string purchasing_organization_references_id = 4;
33
+ PurchasingOrganization purchasing_organizations = 5;
34
+ }
35
+
36
+ message DeleteAssignPOrganizationRequest {
37
+ repeated string reference_ids = 1;
38
+ }
39
+
40
+ // Request Messages
41
+ message CreateAssignPOrganizationRequest {
42
+ AssignPOrganization assign_purchasing_organization = 1;
43
+ }
44
+
45
+ message UpdateAssignPOrganizationRequest {
46
+ string references_id = 1;
47
+ AssignPOrganization assign_purchasing_organization = 2;
48
+ }
49
+
50
+ message GetListAssignPOrganizationRequest {
51
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
52
+ prisca.v1.global.meta.FilterRequest query = 2;
53
+ }
54
+
55
+ message AssignPOrganizationGetByIdRequest { string references_id = 1; }
56
+
57
+ // Response Messages
58
+ message CreateAssignPOrganizationResponse {
59
+ AssignPOrganization assign_purchasing_organization = 1;
60
+ prisca.v1.global.meta.Meta meta = 2;
61
+ }
62
+
63
+ message GetListAssignPOrganizationResponse {
64
+ repeated BaseAssignPOrganization assign_purchasing_organization = 1;
65
+ prisca.v1.global.meta.Meta meta = 2;
66
+ }
67
+
68
+ message UpdateAssignPOrganizationResponse {
69
+ AssignPOrganization assign_purchasing_organization = 1;
70
+ prisca.v1.global.meta.Meta meta = 2;
71
+ }
72
+
73
+ message AssignPOrganizationGetByIdResponse {
74
+ BaseAssignPOrganization assign_purchasing_organization = 1;
75
+ prisca.v1.global.meta.Meta meta = 2;
76
+ }
77
+
78
+ message DeleteAssignPOrganizationResponse {
79
+ repeated string reference_ids = 1;
80
+ prisca.v1.global.meta.Meta meta = 2;
81
+ }
@@ -0,0 +1,80 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/purchasing_organization_plant";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/purchasing_organization/purchasing_organization.proto";
8
+
9
+ service PlantPOrganizationService {
10
+ rpc CreatePlantPOrganization(CreatePlantPOrganizationRequest)
11
+ returns (CreatePlantPOrganizationResponse);
12
+ rpc GetPlantPOrganizationById(PlantPOrganizationGetByIdRequest)
13
+ returns (PlantPOrganizationGetByIdResponse);
14
+ rpc UpdatePlantPOrganization(UpdatePlantPOrganizationRequest)
15
+ returns (UpdatePlantPOrganizationResponse);
16
+ rpc GetListPlantPOrganization(GetListPlantPOrganizationRequest)
17
+ returns (GetListPlantPOrganizationResponse);
18
+ }
19
+
20
+ message PlantPOrganization {
21
+ string purchasing_organization_references_id = 1;
22
+ string plant_references_id = 2; // work_location
23
+ string code = 3;
24
+ string description = 4;
25
+ string companies_references_id = 5;
26
+ }
27
+
28
+ message BasePlantPOrganization {
29
+ string references_id = 1;
30
+ POWorkLocation plant = 2;
31
+ string code = 3;
32
+ string description = 4;
33
+ string purchasing_organization_references_id = 5;
34
+ PurchasingOrganization purchasing_organizations = 6;
35
+ string companies_references_id = 7;
36
+ }
37
+
38
+ message POWorkLocation {
39
+ string code = 1;
40
+ string location_name = 2;
41
+ string references_id = 3;
42
+ }
43
+
44
+ // Request Messages
45
+ message CreatePlantPOrganizationRequest {
46
+ PlantPOrganization plant_purchasing_organization = 1;
47
+ }
48
+
49
+ message UpdatePlantPOrganizationRequest {
50
+ string references_id = 1;
51
+ PlantPOrganization plant_purchasing_organization = 2;
52
+ }
53
+
54
+ message GetListPlantPOrganizationRequest {
55
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
56
+ prisca.v1.global.meta.FilterRequest query = 2;
57
+ }
58
+
59
+ message PlantPOrganizationGetByIdRequest { string references_id = 1; }
60
+
61
+ // Response Messages
62
+ message CreatePlantPOrganizationResponse {
63
+ PlantPOrganization Plant_purchasing_organization = 1;
64
+ prisca.v1.global.meta.Meta meta = 2;
65
+ }
66
+
67
+ message GetListPlantPOrganizationResponse {
68
+ repeated BasePlantPOrganization plant_purchasing_organization = 1;
69
+ prisca.v1.global.meta.Meta meta = 2;
70
+ }
71
+
72
+ message UpdatePlantPOrganizationResponse {
73
+ PlantPOrganization plant_purchasing_organization = 1;
74
+ prisca.v1.global.meta.Meta meta = 2;
75
+ }
76
+
77
+ message PlantPOrganizationGetByIdResponse {
78
+ BasePlantPOrganization plant_purchasing_organization = 1;
79
+ prisca.v1.global.meta.Meta meta = 2;
80
+ }
@@ -0,0 +1,135 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/quotation";
4
+ import "prisca/v1/global/meta/meta.proto";
5
+ import "prisca/v1/vendor_domain/vendor_domain.proto";
6
+ import "prisca/v1/purchase_requisition_trx/purchase_requisition_trx.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/core/employee/employee.proto";
10
+ import "prisca/v1/core/file_upload/file_upload.proto";
11
+ import "prisca/v1/request_for_quotation/request_for_quotation.proto";
12
+ import "prisca/v1/bidding/bidding.proto";
13
+
14
+ service QuotationService {
15
+ rpc GetQuotationById(GetQuotationByIdRequest) returns (GetQuotationByIdResponse);
16
+ rpc GetQuotationByIdDetail(GetQuotationByIdRequest) returns (GetQuotationDetailResponse);
17
+ rpc GetListQuotations(GetListQuotationRequest) returns (GetListQuotationResponse);
18
+ rpc UpdateQuotation (UpdateQuotationRequest) returns (UpdateQuotationResponse);
19
+ rpc SetWinner (UpdateSetWinner) returns (UpdateQuotationResponse);
20
+ rpc SetQuotation (SetQuotationRequest) returns (UpdateQuotationResponse);
21
+ rpc UnSetWinner (UnSetWinnerRequest) returns (UpdateQuotationResponse);
22
+ rpc SetVisible (SetVisibleRequest) returns (SetVisibleResponse);
23
+ }
24
+
25
+
26
+ message BaseEditQuantityQuotationItem {
27
+ string references_id = 1;
28
+ string quantity = 2;
29
+ }
30
+
31
+ message UpdateSetWinner {
32
+ string references_id = 1;
33
+ string term_and_condition = 2;
34
+ string justification = 3;
35
+ repeated BaseEditQuantityQuotationItem item_transactions = 4;
36
+ }
37
+
38
+ // Order Messages
39
+ message BaseQuotationRequest {
40
+ string description = 1;
41
+ string detail = 2; // Represents json.RawMessage
42
+ float pr_quantity = 3;
43
+ float remaining_quantity_po = 4;
44
+ string replacement = 5;
45
+ float quantity = 6;
46
+ float price = 7;
47
+ string vendor_references_id = 8;
48
+ string bidding_references_id = 9; // Unique
49
+ string term_of_payment = 10; // Represents json.RawMessage
50
+ string delivery_date = 11; // Nullable (ISO 8601 format)
51
+ string delivery_point = 12;
52
+ string vendor_source = 13;
53
+ bool set_winner = 14; // Default: false
54
+ string notes_for_vendor = 15;
55
+ string term_of_condition = 16; // Represents json.RawMessage
56
+ string custom_transaction = 17; // Represents json.RawMessage
57
+ string plant = 18; // json.RawMessage
58
+ string department = 19; // json.RawMessage
59
+ repeated ItemTransaction item_transactions = 20;
60
+ bool visible = 21;
61
+ repeated FileUploadReferencesReq files = 22;
62
+ string title = 23;
63
+ string vendor_name = 24;
64
+ string status = 25;
65
+ string bidding_date = 26;
66
+ string bidding_start_date = 27;
67
+ string request_for_quotation_method = 28;
68
+ string max_submission_date = 29;
69
+ }
70
+
71
+ //request
72
+ message GetQuotationByIdRequest {
73
+ string references_id = 1;
74
+ }
75
+
76
+ message UnSetWinnerRequest {
77
+ string references_id = 1;
78
+ }
79
+
80
+ message UpdateQuotationRequest {
81
+ BaseQuotationRequest base_quotation = 1;
82
+ string references_id = 2;
83
+ }
84
+
85
+ message GetListQuotationRequest {
86
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
87
+ prisca.v1.global.meta.FilterRequest query = 2;
88
+ }
89
+
90
+ message SetItemQuotation {
91
+ string references_id = 1;
92
+ string detail_description = 2;
93
+ string replacement = 3;
94
+ string quantity = 4;
95
+ string delivery_date = 5;
96
+ repeated ItemTransactionPriceCondition item_transaction_price_condition = 6;
97
+ }
98
+
99
+ message SetQuotationRequest {
100
+ string references_id = 1;
101
+ string term_of_payment = 2;
102
+ string term_of_condition = 3;
103
+ repeated SetItemQuotation set_item_quotations = 4;
104
+ }
105
+
106
+ message SetVisibleRequest {
107
+ string bidding_reference_id = 1;
108
+ repeated string vendor_reference_ids = 2; // List of vendor references to set visibility
109
+ }
110
+
111
+ //response
112
+
113
+ message GetQuotationByIdResponse {
114
+ Quotation quotation = 1;
115
+ prisca.v1.global.meta.Meta meta = 2;
116
+ }
117
+
118
+ message GetQuotationDetailResponse {
119
+ repeated TransactionBuilderFieldsDetail transaction_builder = 1;
120
+ repeated GetQuotationItemPreload transaction_builder_items = 2;
121
+ }
122
+
123
+ message GetListQuotationResponse {
124
+ repeated Quotation quotations = 1;
125
+ prisca.v1.global.meta.Meta meta = 2;
126
+ }
127
+
128
+ message UpdateQuotationResponse {
129
+ Quotation quotation = 1;
130
+ prisca.v1.global.meta.Meta meta = 2;
131
+ }
132
+
133
+ message SetVisibleResponse {
134
+ prisca.v1.global.meta.Meta meta = 1;
135
+ }
@@ -0,0 +1,203 @@
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
+ service RequestForQuotationService {
12
+ rpc CreateRFQ (RequestRFQ) returns (ResponseRFQ);
13
+ rpc GetById (GetByIdRFQ) returns (GetByIdRFQResponse);
14
+ rpc GetListRfq (GetListRFQ) returns (GetListRFQResponse);
15
+ rpc UpdateRfq (RequestRFQ) returns (UpdateRFQResponse);
16
+ rpc GetByIdDetail (GetByIdWithDetailRFQ) returns (GetRFQDetailResponse);
17
+ rpc UpdateStatusRFQ (UpdateRequestForQuotationStatusReq) returns (UpdateRFQResponse);
18
+ rpc UpdateFileRFQ (UpdateRequestForQuotationFileReq) returns (UpdateRFQResponse);
19
+ rpc UpdateRFQVendor (UpdateRequestForQuotationVendorReq) returns (UpdateRequestForQuotationVendorRes);
20
+ rpc DeleteRFQ(DeleteRFQRequest) returns (DeleteRFQResponse);
21
+ }
22
+
23
+ message UpdateRequestForQuotationStatusReq {
24
+ string status = 1;
25
+ string references_id = 2;
26
+ }
27
+
28
+ message UpdateRequestForQuotationFileReq {
29
+ string references_id = 1;
30
+ repeated FileUploadReferencesReq files = 2;
31
+ repeated BaseItemTransaction item_transactions = 3;
32
+ }
33
+
34
+ message RequestForQuotation {
35
+ int64 id = 1;
36
+ string title = 2;
37
+ string request_for_quotation_number = 3;
38
+ string request_for_quotation_method = 4;
39
+ string bidding_start_date = 5;
40
+ string bidding_end_date = 6;
41
+ string max_submission_date = 7;
42
+ string contract_no = 8;
43
+ string incoterm = 9;
44
+ string shipping_address = 10;
45
+ string scope_of_work = 11;
46
+ string status = 12;
47
+ string term_of_payment = 13;
48
+ string file_ids = 14;
49
+ string references_id = 15;
50
+ repeated ItemTransaction item_transactions = 16;
51
+ repeated RequestForQuotationVendor request_for_quotation_vendor = 17;
52
+ string created_by = 18;
53
+ string updated_by = 19;
54
+ string created_at = 20;
55
+ string updated_at = 21;
56
+ optional Employee created_by_employee = 22;
57
+ optional Employee updated_by_employee = 23;
58
+ string custom_transaction = 24;
59
+ string department = 25;
60
+ string plant = 26;
61
+ repeated FileUploadReferencesReq files = 27;
62
+ string notes_for_vendor = 28;
63
+ string group_references = 29;
64
+ string companies_references_id = 30;
65
+ }
66
+
67
+ message Creator {
68
+
69
+ }
70
+
71
+ message RequestForQuotationItem {
72
+ int64 id = 1;
73
+ string request_for_quotation_references_id = 2;
74
+ string description = 3;
75
+ string references_id = 4;
76
+ int64 quantity = 5;
77
+ string description_detail = 6;
78
+ string file_ids = 7;
79
+ string unit_of_measure = 8;
80
+ float estimated_unit_price = 9;
81
+ string created_by = 10;
82
+ string updated_by = 11;
83
+ string created_at = 12;
84
+ string updated_at = 13;
85
+ optional Employee created_by_employee = 14;
86
+ optional Employee updated_by_employee = 15;
87
+ }
88
+
89
+ message RequestForQuotationVendor {
90
+ int64 id = 1;
91
+ string request_for_quotation_references_id = 2;
92
+ string vendor_references_id = 3;
93
+ string vendor_detail = 4;
94
+ string created_by = 5;
95
+ string updated_by = 6;
96
+ string created_at = 7;
97
+ string updated_at = 8;
98
+ optional Employee created_by_employee = 9;
99
+ optional Employee updated_by_employee = 10;
100
+ optional Vendor vendor = 11;
101
+ bool is_send_to_vendor = 12;
102
+ }
103
+
104
+
105
+ message RequestRFQ {
106
+ string request_for_quotation_number = 1;
107
+ string request_for_quotation_method = 2;
108
+ string bidding_start_date = 3;
109
+ string bidding_end_date = 4;
110
+ string max_submission_date = 5;
111
+ string contract_no = 6;
112
+ string incoterm = 7;
113
+ string shipping_address = 8;
114
+ string scope_of_work = 9;
115
+ string file_ids = 10;
116
+ string references_id = 11;
117
+ repeated ItemTransaction item_transactions = 12;
118
+ repeated Vendor request_for_quotation_vendor = 13;
119
+ string term_of_payment = 14;
120
+ string status = 15;
121
+ string title = 16;
122
+ string custom_transaction = 17;
123
+ string plant = 18;
124
+ repeated FileUploadReferencesReq files = 19;
125
+ string notes_for_vendor = 20;
126
+ string group_references = 21;
127
+ }
128
+
129
+ message GetByIdRFQ {
130
+ string references_id = 1;
131
+ }
132
+
133
+ message GetListRFQ {
134
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
135
+ prisca.v1.global.meta.FilterRequest query = 2;
136
+ }
137
+
138
+ message UpdateRFQ {
139
+ string references_id = 1;
140
+ RequestForQuotation request_for_quotation = 2;
141
+ }
142
+
143
+ message GetByIdWithDetailRFQ {
144
+ string references_id = 1;
145
+ }
146
+
147
+ message DeleteRFQRequest {
148
+ repeated string reference_ids = 1;
149
+ }
150
+
151
+ message ResponseRFQ {
152
+ RequestForQuotation request_for_quotation = 1;
153
+ prisca.v1.global.meta.Meta meta = 2;
154
+ }
155
+
156
+ message UpdateRFQResponse {
157
+ RequestForQuotation request_for_quotation = 1;
158
+ prisca.v1.global.meta.Meta meta = 2;
159
+ }
160
+
161
+ message GetByIdRFQResponse {
162
+ RequestForQuotation request_for_quotation = 1;
163
+ prisca.v1.global.meta.Meta meta = 2;
164
+ }
165
+
166
+ message GetListRFQResponse {
167
+ repeated RequestForQuotation request_for_quotation = 1;
168
+ prisca.v1.global.meta.Meta meta = 2;
169
+ }
170
+
171
+ message GetRFQDetailResponse {
172
+ repeated TransactionBuilderFieldsDetail transaction_builder = 1;
173
+ repeated GetRFQItemPreload transaction_builder_items = 2;
174
+ repeated GetRFQVendorPreload transaction_builder_vendors = 3;
175
+ }
176
+
177
+ message GetRFQItemPreload {
178
+ repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
179
+ repeated GetRFQItemDetailPreload transaction_builder_item_details = 2;
180
+ }
181
+
182
+ message GetRFQVendorPreload {
183
+ repeated TransactionBuilderFieldsDetail transaction_builder_vendor = 1;
184
+ }
185
+
186
+ message GetRFQItemDetailPreload {
187
+ repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
188
+ }
189
+
190
+ message UpdateRequestForQuotationVendorReq {
191
+ string request_for_quotation_references_id = 1;
192
+ string vendor_references_id = 2;
193
+ bool is_send_to_vendor = 3;
194
+ }
195
+
196
+ message UpdateRequestForQuotationVendorRes {
197
+ prisca.v1.global.meta.Meta meta = 1;
198
+ }
199
+
200
+ message DeleteRFQResponse {
201
+ repeated string reference_ids = 1;
202
+ prisca.v1.global.meta.Meta meta = 2;
203
+ }