@aldiokta/protocgen 1.1.8 → 1.1.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (158) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +79 -0
  3. package/prisca/v1/account_group/account_group.proto +86 -0
  4. package/prisca/v1/bidding/bidding.proto +159 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +87 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +281 -0
  7. package/prisca/v1/core/auth/auth.proto +150 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +31 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +76 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +120 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +289 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +86 -0
  26. package/prisca/v1/core/messaging/email_template.proto +75 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/number_range/number_range.proto +89 -0
  29. package/prisca/v1/core/organization/organization.proto +94 -0
  30. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  31. package/prisca/v1/core/price_condition/price_condition.proto +83 -0
  32. package/prisca/v1/core/procurement/procurement.proto +54 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  34. package/prisca/v1/core/report/report.proto +90 -0
  35. package/prisca/v1/core/report/user_report.proto +74 -0
  36. package/prisca/v1/core/tax_code/tax_code.proto +77 -0
  37. package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -0
  38. package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  40. package/prisca/v1/core/users/users.proto +45 -0
  41. package/prisca/v1/core/work_location/work_location.proto +122 -0
  42. package/prisca/v1/core/workflow/workflow.proto +216 -0
  43. package/prisca/v1/document_type/document_type.proto +80 -0
  44. package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
  45. package/prisca/v1/global/meta/meta.proto +57 -0
  46. package/prisca/v1/purchase_order/purchase_order.proto +155 -0
  47. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
  48. package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
  49. package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
  50. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  52. package/prisca/v1/quotation/quotation.proto +82 -0
  53. package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
  54. package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
  55. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  56. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
  57. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  58. package/prisca/v1/account_group/account_group_pb.js +0 -2937
  59. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -119
  60. package/prisca/v1/bidding/bidding_pb.js +0 -3152
  61. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  62. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
  63. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
  64. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
  65. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
  66. package/prisca/v1/core/auth/auth_pb.js +0 -4497
  67. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  68. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
  69. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  70. package/prisca/v1/core/company/company_pb.js +0 -3048
  71. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  72. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  73. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  74. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  75. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  76. package/prisca/v1/core/employee/employee_pb.js +0 -4283
  77. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
  78. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
  79. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
  80. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
  81. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  82. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
  83. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  84. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  85. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  86. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  87. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  88. package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
  89. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
  90. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
  91. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
  92. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
  93. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  94. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  95. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  96. package/prisca/v1/core/location/location_pb.js +0 -10879
  97. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  98. package/prisca/v1/core/material/material_pb.js +0 -4180
  99. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  100. package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
  101. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
  102. package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
  103. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  104. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  105. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  106. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  107. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  108. package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
  109. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  110. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  111. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  112. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  113. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
  114. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
  115. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  116. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  117. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  118. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  119. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  120. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  121. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  122. package/prisca/v1/core/report/report_pb.js +0 -2822
  123. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  124. package/prisca/v1/core/report/user_report_pb.js +0 -2452
  125. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  126. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  127. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
  128. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
  129. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
  130. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
  131. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  132. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  133. package/prisca/v1/core/users/users_grpc_pb.js +0 -45
  134. package/prisca/v1/core/users/users_pb.js +0 -1246
  135. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  136. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  137. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  138. package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
  139. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  140. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  141. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  142. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  143. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  144. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  145. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
  146. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
  147. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  148. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  149. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  150. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  151. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  152. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  153. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  154. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
  155. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
  156. package/prisca/v1/quotation/quotation_pb.js +0 -3941
  157. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
  158. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aldiokta/protocgen",
3
- "version": "1.1.8",
3
+ "version": "1.1.19",
4
4
  "description": "protocgen js generated for products v2",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,79 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/account_assignment;account_assignment";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+
7
+ service AccountAssignmentService {
8
+ rpc CreateAccountAssignment(CreateAccountAssignmentRequest)
9
+ returns (CreateAccountAssignmentResponse);
10
+ rpc CreateAccountAssignmentDefault(CreateAccountAssignmentDefaultReq)
11
+ returns (CreateAccountAssignmentDefaultReq);
12
+ rpc UpdateAccountAssignment(UpdateAccountAssignmentRequest)
13
+ returns (UpdateAccountAssignmentResponse);
14
+ rpc GetAccountAssignmentById(GetAccountAssignmentByIdRequest)
15
+ returns (GetAccountAssignmentByIdResponse);
16
+ rpc GetListAccountAssignment(GetListAccountAssignmentRequest)
17
+ returns (GetListAccountAssignmentResponse);
18
+ rpc DeleteAccountAssignment(DeleteAccountAssignmentRequest)
19
+ returns (DeleteAccountAssignmentResponse);
20
+ }
21
+
22
+ message AccountAssignment {
23
+ int64 id = 1;
24
+ string category = 2;
25
+ string category_description = 3;
26
+ string references_id = 4;
27
+ string created_at = 5; // Use ISO 8601 format for date strings
28
+ string updated_at = 6; // Optional, nullable
29
+ }
30
+
31
+ message BaseAccountAssignment {
32
+ string category = 1;
33
+ string category_description = 2;
34
+ }
35
+
36
+ message CreateAccountAssignmentRequest {
37
+ BaseAccountAssignment base_account_assignment = 1;
38
+ }
39
+ message CreateAccountAssignmentDefaultReq {
40
+ string companies_references_id = 1;
41
+ }
42
+ message CreateAccountAssignmentResponse {
43
+ AccountAssignment account_assignment = 1;
44
+ prisca.v1.global.meta.Meta meta = 2;
45
+ }
46
+
47
+ message UpdateAccountAssignmentRequest {
48
+ string references_id = 1;
49
+ BaseAccountAssignment base_account_assignment = 2;
50
+ }
51
+
52
+ message UpdateAccountAssignmentResponse {
53
+ AccountAssignment account_assignment = 1;
54
+ prisca.v1.global.meta.Meta meta = 2;
55
+ }
56
+
57
+ message GetAccountAssignmentByIdRequest { string references_id = 1; }
58
+
59
+ message GetAccountAssignmentByIdResponse {
60
+ AccountAssignment account_assignment = 1;
61
+ prisca.v1.global.meta.Meta meta = 2;
62
+ }
63
+
64
+ message GetListAccountAssignmentRequest {
65
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
66
+ prisca.v1.global.meta.FilterRequest query = 2;
67
+ }
68
+
69
+ message GetListAccountAssignmentResponse {
70
+ repeated AccountAssignment account_assignments = 1;
71
+ prisca.v1.global.meta.Meta meta = 2;
72
+ }
73
+
74
+ message DeleteAccountAssignmentRequest { string references_id = 1; }
75
+
76
+ message DeleteAccountAssignmentResponse {
77
+ string references_id = 1;
78
+ prisca.v1.global.meta.Meta meta = 2;
79
+ }
@@ -0,0 +1,86 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/account_group;account_group";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/chart_of_account/chart_of_account.proto";
7
+
8
+ service AccountGroupService {
9
+ rpc CreateAccountGroup(CreateAccountGroupRequest)
10
+ returns (CreateAccountGroupResponse);
11
+ rpc CreateAccountGroupDefault(CreateAccountGroupDefaultReq)
12
+ returns (CreateAccountGroupDefaultReq);
13
+ rpc UpdateAccountGroup(UpdateAccountGroupRequest)
14
+ returns (UpdateAccountGroupResponse);
15
+ rpc GetAccountGroupById(GetAccountGroupByIdRequest)
16
+ returns (GetAccountGroupByIdResponse);
17
+ rpc GetListAccountGroup(GetListAccountGroupRequest)
18
+ returns (GetListAccountGroupResponse);
19
+ rpc DeleteAccountGroup(DeleteAccountGroupRequest)
20
+ returns (DeleteAccountGroupResponse);
21
+ }
22
+
23
+ message AccountGroup {
24
+ int64 id = 1;
25
+ string code = 2;
26
+ string name = 3;
27
+ string from_account = 4;
28
+ string to_account = 5;
29
+ string chart_of_account_ref = 6;
30
+ string references_id = 7;
31
+ string created_at = 8; // Use ISO 8601 format for date strings
32
+ string updated_at = 9; // Optional, nullable
33
+ optional ChartOfAccount chart_of_account = 10;
34
+ }
35
+
36
+ message BaseAccountGroup {
37
+ string code = 1;
38
+ string name = 2;
39
+ string from_account = 3;
40
+ string to_account = 4;
41
+ string chart_of_account_ref = 5;
42
+ }
43
+
44
+ message CreateAccountGroupRequest { BaseAccountGroup base_account_group = 1; }
45
+ message CreateAccountGroupDefaultReq {
46
+ string chart_of_account_ref = 1;
47
+ string companies_references_id = 2;
48
+ }
49
+ message CreateAccountGroupResponse {
50
+ AccountGroup account_group = 1;
51
+ prisca.v1.global.meta.Meta meta = 2;
52
+ }
53
+
54
+ message UpdateAccountGroupRequest {
55
+ string references_id = 1;
56
+ BaseAccountGroup base_account_group = 2;
57
+ }
58
+
59
+ message UpdateAccountGroupResponse {
60
+ AccountGroup account_group = 1;
61
+ prisca.v1.global.meta.Meta meta = 2;
62
+ }
63
+
64
+ message GetAccountGroupByIdRequest { string references_id = 1; }
65
+
66
+ message GetAccountGroupByIdResponse {
67
+ AccountGroup account_group = 1;
68
+ prisca.v1.global.meta.Meta meta = 2;
69
+ }
70
+
71
+ message GetListAccountGroupRequest {
72
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
73
+ prisca.v1.global.meta.FilterRequest query = 2;
74
+ }
75
+
76
+ message GetListAccountGroupResponse {
77
+ repeated AccountGroup account_groups = 1;
78
+ prisca.v1.global.meta.Meta meta = 2;
79
+ }
80
+
81
+ message DeleteAccountGroupRequest { string references_id = 1; }
82
+
83
+ message DeleteAccountGroupResponse {
84
+ string references_id = 1;
85
+ prisca.v1.global.meta.Meta meta = 2;
86
+ }
@@ -0,0 +1,159 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/bidding";
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
+
13
+ service BiddingService {
14
+ rpc CreateBidding (RequestForQuotation) returns (ResponseBidding);
15
+ rpc GetDetailBidding (GetDetailBiddingByReferences) returns (GetBiddingDetailResponse);
16
+ rpc GetListBidding (RequestGetListBidding) returns (ResponseGetListBidding);
17
+ rpc UpdateBidding (UpdateBiddingReq) returns (ResponseBidding);
18
+ rpc GetBiddingById (GetBiddingByIdRequest) returns (GetBiddingByIdResponse);
19
+ }
20
+ message Quotation {
21
+ int64 id = 1;
22
+ string title = 2;
23
+ string description = 3;
24
+ string detail = 4; // Represents json.RawMessage
25
+ float pr_quantity = 5;
26
+ float remaining_quantity_po = 6;
27
+ string replacement = 7;
28
+ float quantity = 8;
29
+ float price = 9;
30
+ string vendor_references_id = 10;
31
+ string bidding_references_id = 11; // Unique
32
+ string quotation_number = 12;
33
+ string request_for_quotation_number = 13;
34
+ string bidding_number = 14;
35
+ string term_of_payment = 15; // Represents json.RawMessage
36
+ string delivery_date = 16; // Nullable (ISO 8601 format)
37
+ string delivery_point = 17;
38
+ string vendor_source = 18;
39
+ bool set_winner = 19; // Default: false
40
+ string notes_for_vendor = 20;
41
+ string term_of_condition = 21; // Represents json.RawMessage
42
+ string custom_transaction = 22; // Represents json.RawMessage
43
+ string references_id = 23; // UUID
44
+ string created_by = 24;
45
+ string updated_by = 25;
46
+ string created_at = 26; // ISO 8601 format
47
+ string updated_at = 27; // Nullable (ISO 8601 format)
48
+ repeated ItemTransaction item_transactions = 28;
49
+ optional Vendor vendor = 29;
50
+ Employee created_by_employee = 30;
51
+ Employee updated_by_employee = 31;
52
+ bool visible = 32;
53
+ optional Bidding bidding = 33;
54
+ }
55
+ message Bidding {
56
+ int64 id = 1;
57
+ string bidding_number = 2;
58
+ string request_for_quotation_references_id = 3;
59
+ string request_for_quotation_number = 4;
60
+ string department = 5;
61
+ string bidding_start_date = 6;
62
+ string bidding_end_date = 7;
63
+ string title = 8;
64
+ string remarks = 9;
65
+ string max_submission_date = 10;
66
+ string references_id = 11;
67
+ repeated Quotation quotation= 12;
68
+ string fileIds = 13;
69
+ string created_by = 14;
70
+ string updated_by =15;
71
+ string created_at = 16;
72
+ string updated_at = 17;
73
+ string custom_transaction = 18;
74
+ Employee created_by_employee = 19;
75
+ Employee updated_by_employee = 20;
76
+ string status = 21;
77
+ string companies_references_id = 22;
78
+ string group_references = 23;
79
+ }
80
+ message RequestBiddingBase {
81
+ string bidding_number = 1;
82
+ string request_for_quotation_references_id = 2;
83
+ string request_for_quotation_number = 3;
84
+ string bidding_start_date = 5;
85
+ string bidding_end_date = 6;
86
+ string title = 7;
87
+ string term_of_payment = 8;
88
+ string max_submission_date = 9;
89
+ string remarks = 10;
90
+ repeated FileUploadReferencesReq files = 11;
91
+ repeated ItemTransaction item_transactions = 13;
92
+ string status = 14;
93
+
94
+ }
95
+
96
+
97
+ message RequestBidding {
98
+ RequestBiddingBase request_bidding = 1;
99
+ }
100
+ message GetBiddingByIdRequest {
101
+ string references_id =1;
102
+ }
103
+ message GetDetailBiddingByReferences {
104
+ string references_id = 1;
105
+ }
106
+
107
+ message UpdateBiddingReq {
108
+ string references_id = 1;
109
+ RequestBiddingBase request_bidding = 2;
110
+ }
111
+
112
+ message RequestGetListBidding {
113
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
114
+ prisca.v1.global.meta.FilterRequest query = 2;
115
+ }
116
+
117
+ message ResponseBidding {
118
+ Bidding bidding = 1;
119
+ prisca.v1.global.meta.Meta meta = 2;
120
+ }
121
+ message GetBiddingByIdResponse {
122
+ Bidding bidding = 1;
123
+ prisca.v1.global.meta.Meta meta =2;
124
+ }
125
+ message ResponseDetailBiddingByReferences {
126
+ Bidding bidding = 1;
127
+ prisca.v1.global.meta.Meta meta = 2;
128
+ }
129
+
130
+
131
+ message ResponseGetListBidding {
132
+ repeated Bidding bidding = 1;
133
+ prisca.v1.global.meta.Meta meta = 2;
134
+ }
135
+
136
+ message GetBiddingDetailResponse {
137
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
138
+ repeated GetQuotationDetailPreload transaction_builder_quotation = 2;
139
+ }
140
+
141
+ message GetQuotationDetailPreload {
142
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
143
+ repeated GetQuotationItemPreload transaction_builder_items = 2;
144
+ repeated GetQuotationVendorPreload transaction_builder_vendors = 3;
145
+ }
146
+
147
+
148
+ message GetQuotationItemPreload {
149
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item = 1;
150
+ repeated GetQuotationItemDetailPreload transaction_builder_item_details = 2;
151
+ }
152
+
153
+ message GetQuotationItemDetailPreload {
154
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
155
+ }
156
+
157
+ message GetQuotationVendorPreload {
158
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_vendor = 1;
159
+ }
@@ -0,0 +1,87 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/chart_of_account;chart_of_account";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+
7
+ service ChartOfAccountService {
8
+ rpc CreateChartOfAccount(CreateChartOfAccountRequest)
9
+ returns (CreateChartOfAccountResponse);
10
+ rpc CreateChartOfAccountDefault(CreateChartOfAccountRequestDefault)
11
+ returns (CreateChartOfAccountResponse);
12
+ rpc UpdateChartOfAccount(UpdateChartOfAccountRequest)
13
+ returns (UpdateChartOfAccountResponse);
14
+ rpc GetChartOfAccountById(GetChartOfAccountByIdRequest)
15
+ returns (GetChartOfAccountByIdResponse);
16
+ rpc GetListChartOfAccount(GetListChartOfAccountRequest)
17
+ returns (GetListChartOfAccountResponse);
18
+ rpc DeleteChartOfAccount(DeleteChartOfAccountRequest)
19
+ returns (DeleteChartOfAccountResponse);
20
+ }
21
+
22
+ message ChartOfAccount {
23
+ int64 id = 1;
24
+ string code = 2;
25
+ string code_description = 3;
26
+ string references_id = 4;
27
+ string created_at = 5; // Use ISO 8601 format for date strings
28
+ string updated_at = 6; // Optional, nullable
29
+ }
30
+
31
+ message BaseChartOfAccount {
32
+ string code = 1;
33
+ string code_description = 2;
34
+ }
35
+
36
+ message BaseChartOfAccountDefault {
37
+ string code = 1;
38
+ string code_description = 2;
39
+ string companies_references_id = 3;
40
+ }
41
+
42
+ message CreateChartOfAccountRequest {
43
+ BaseChartOfAccount base_chart_of_account = 1;
44
+ }
45
+
46
+ message CreateChartOfAccountRequestDefault {
47
+ BaseChartOfAccountDefault base_chart_of_account = 1;
48
+ }
49
+
50
+ message CreateChartOfAccountResponse {
51
+ ChartOfAccount chart_of_account = 1;
52
+ prisca.v1.global.meta.Meta meta = 2;
53
+ }
54
+
55
+ message UpdateChartOfAccountRequest {
56
+ string references_id = 1;
57
+ BaseChartOfAccount base_chart_of_account = 2;
58
+ }
59
+
60
+ message UpdateChartOfAccountResponse {
61
+ ChartOfAccount chart_of_account = 1;
62
+ prisca.v1.global.meta.Meta meta = 2;
63
+ }
64
+
65
+ message GetChartOfAccountByIdRequest { string references_id = 1; }
66
+
67
+ message GetChartOfAccountByIdResponse {
68
+ ChartOfAccount chart_of_account = 1;
69
+ prisca.v1.global.meta.Meta meta = 2;
70
+ }
71
+
72
+ message GetListChartOfAccountRequest {
73
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
74
+ prisca.v1.global.meta.FilterRequest query = 2;
75
+ }
76
+
77
+ message GetListChartOfAccountResponse {
78
+ repeated ChartOfAccount chart_of_accounts = 1;
79
+ prisca.v1.global.meta.Meta meta = 2;
80
+ }
81
+
82
+ message DeleteChartOfAccountRequest { string references_id = 1; }
83
+
84
+ message DeleteChartOfAccountResponse {
85
+ string references_id = 1;
86
+ prisca.v1.global.meta.Meta meta = 2;
87
+ }
@@ -0,0 +1,281 @@
1
+ // protoc --go_out=. --go-grpc_out=. proto/prisca/auth/v1/private/*.proto
2
+
3
+ syntax = "proto3";
4
+
5
+
6
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/access_manager";
7
+
8
+ // Importing necessary dependencies
9
+ import "prisca/v1/global/meta/meta.proto";
10
+ import "prisca/v1/core/users/users.proto";
11
+
12
+
13
+ service AccessManagerService {
14
+ rpc CreatePolicy(CreatePolicyRequest) returns (CreatePolicyResponse);
15
+ rpc GetPolicyList(GetPolicyListRequest) returns (GetPolicyListResponse);
16
+ rpc GetPolicyById(GetPolicyByIdRequest) returns (GetPolicyByIdResponse);
17
+ rpc UpdatePolicy(UpdatePolicyRequest) returns (UpdatePolicyResponse);
18
+ rpc DeletePolicy(DeletePolicyRequest) returns (DeletePolicyResponse);
19
+ rpc GetPolicyByRole(GetPolicyByRoleRequest) returns (GetPolicyByRoleResponse);
20
+ rpc AssignPolicyToRole(AssignPolicyToRoleRequest) returns (AssignPolicyToRoleResponse);
21
+
22
+ rpc AssignRoleToUser(AssignRoleToUserRequest) returns (AssignRoleToUserResponse);
23
+ rpc CreateRole(CreateRoleRequest) returns (CreateRoleResponse);
24
+ rpc GetRoleById(GetRoleByIdRequest) returns (GetRoleByIdResponse);
25
+ rpc GetRoleList(GetRoleListRequest) returns (GetRoleListResponse);
26
+ rpc UpdateRole(UpdateRoleRequest) returns (UpdateRoleResponse);
27
+ rpc DeleteRole(DeleteRoleRequest) returns (DeleteRoleResponse);
28
+
29
+ rpc GetActionCatalog(GetActionCatalogRequest) returns (GetActionCatalogResponse);
30
+
31
+ rpc GetActionByService(GetActionByServiceRequest) returns (GetActionByServiceResponse);
32
+
33
+ rpc GetResourceByAction(GetResourceByActionRequest) returns (GetResourceByActionResponse);
34
+ }
35
+
36
+ enum Effect {
37
+ ALLOW = 0;
38
+ DENY = 1;
39
+ }
40
+
41
+ message PolicyStatement {
42
+ Effect effect = 1;
43
+ repeated string action = 2;
44
+ repeated string resource = 3;
45
+ }
46
+
47
+ message Policy {
48
+ string name = 1;
49
+ string description = 2;
50
+ repeated PolicyStatement statement = 3;
51
+ string references_id = 4;
52
+ string created_at = 5;
53
+ string updated_at = 6;
54
+ }
55
+
56
+ message BasePolicy {
57
+ string name = 1;
58
+ string description = 2;
59
+ string references_id = 3;
60
+ }
61
+
62
+ message UsersRole {
63
+ string role_references_id = 1;
64
+ string user_references_id = 2;
65
+ string references_id = 3;
66
+ optional Role roles = 4;
67
+ }
68
+
69
+ message Role {
70
+ string name = 1;
71
+ string description = 2;
72
+ string references_id = 3;
73
+ repeated RolePolicy role_policies = 4;
74
+ }
75
+
76
+ message BaseRole {
77
+ string name = 1;
78
+ string description = 2;
79
+ string references_id = 3;
80
+ }
81
+
82
+ message Resource {
83
+ string name = 1;
84
+ string parameter = 2;
85
+ string description = 3;
86
+ string references_id = 4;
87
+ }
88
+
89
+ message Action {
90
+ string name = 1;
91
+ string references_id = 2;
92
+ string catalog_references_id = 3;
93
+ ActionCatalog action_catalog = 4;
94
+ repeated string resources = 5;
95
+ }
96
+
97
+ message ActionCatalog {
98
+ string name = 1;
99
+ string alias = 2;
100
+ string references_id = 3;
101
+ }
102
+
103
+ message RolePolicy {
104
+ string role_references_id = 1;
105
+ Role role = 2;
106
+ string policy_references_id = 3;
107
+ Policy policies = 4;
108
+ }
109
+
110
+ // request policy
111
+ message CreatePolicyRequest {
112
+ Policy policy = 1;
113
+ }
114
+
115
+ message GetPolicyListRequest {
116
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
117
+ prisca.v1.global.meta.FilterRequest query = 2;
118
+ }
119
+
120
+ message GetPolicyByIdRequest {
121
+ string references_id = 1;
122
+ }
123
+
124
+ message UpdatePolicyRequest {
125
+ Policy policy = 1;
126
+ string references_id = 2;
127
+ }
128
+
129
+ message DeletePolicyRequest {
130
+ string references_id = 1;
131
+ }
132
+
133
+
134
+ message GetPolicyByRoleRequest {
135
+ string references_id = 1;
136
+ }
137
+
138
+ message AssignPolicyToRoleRequest {
139
+ repeated string policy_references_id = 1;
140
+ string role_references_id = 2;
141
+ }
142
+
143
+
144
+
145
+ // response policy
146
+ message CreatePolicyResponse {
147
+ Policy policy = 1;
148
+ prisca.v1.global.meta.Meta meta = 2;
149
+ }
150
+
151
+ message GetPolicyListResponse {
152
+ repeated BasePolicy policy = 1;
153
+ prisca.v1.global.meta.Meta meta = 2;
154
+ }
155
+
156
+ message GetPolicyByIdResponse {
157
+ Policy policy = 1;
158
+ prisca.v1.global.meta.Meta meta = 2;
159
+ }
160
+
161
+ message UpdatePolicyResponse {
162
+ Policy policy = 1;
163
+ prisca.v1.global.meta.Meta meta = 2;
164
+ }
165
+
166
+ message DeletePolicyResponse {
167
+ string references_id = 1;
168
+ prisca.v1.global.meta.Meta meta = 2;
169
+ }
170
+
171
+ message GetPolicyByRoleResponse {
172
+ repeated Policy policy = 1;
173
+ prisca.v1.global.meta.Meta meta = 2;
174
+
175
+ }
176
+
177
+ message AssignPolicyToRoleResponse {
178
+ prisca.v1.global.meta.Meta meta = 1;
179
+ }
180
+
181
+
182
+
183
+ // request action
184
+ message GetActionByServiceRequest {
185
+ string references_id = 1;
186
+ }
187
+
188
+ // response action
189
+ message GetActionByServiceResponse {
190
+ repeated Action list = 1;
191
+ repeated Action read = 2;
192
+ repeated Action write = 3;
193
+ prisca.v1.global.meta.Meta meta = 4;
194
+ }
195
+
196
+ // request action catalog
197
+ message GetActionCatalogRequest {
198
+ prisca.v1.global.meta.FilterRequest query = 1;
199
+ }
200
+
201
+ // response action catalog
202
+ message GetActionCatalogResponse {
203
+ repeated ActionCatalog service = 1;
204
+ prisca.v1.global.meta.Meta meta = 2;
205
+ }
206
+
207
+ // request resource
208
+ message GetResourceByActionRequest {
209
+ string references_id = 1;
210
+ }
211
+
212
+ // response resource
213
+ message GetResourceByActionResponse {
214
+ repeated string resource = 1;
215
+ prisca.v1.global.meta.Meta meta = 2;
216
+ }
217
+
218
+ // request role
219
+ message CreateRoleRequest {
220
+ BaseRole role = 1;
221
+ repeated string policy_references_id = 2;
222
+ }
223
+
224
+ message GetRoleListRequest {
225
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
226
+ prisca.v1.global.meta.FilterRequest query = 2;
227
+ }
228
+
229
+ message UpdateRoleRequest {
230
+ Role role = 1;
231
+ repeated string policy_references_id = 2;
232
+ string references_id = 3;
233
+ }
234
+
235
+ message DeleteRoleRequest {
236
+ string references_id = 1;
237
+ }
238
+
239
+ message GetRoleByIdRequest {
240
+ string references_id = 1;
241
+ }
242
+
243
+ message AssignRoleToUserRequest {
244
+ repeated string role_references_id = 1;
245
+ string user_references_id = 2;
246
+ }
247
+
248
+ // response role
249
+ message CreateRoleResponse {
250
+ Role role = 1;
251
+ repeated Policy policy = 2;
252
+ prisca.v1.global.meta.Meta meta = 3;
253
+ }
254
+
255
+ message GetRoleListResponse {
256
+ repeated Role role = 1;
257
+ prisca.v1.global.meta.Meta meta = 2;
258
+ }
259
+
260
+ message UpdateRoleResponse {
261
+ Role role = 1;
262
+ repeated Policy policy = 2;
263
+ prisca.v1.global.meta.Meta meta = 3;
264
+ }
265
+
266
+ message DeleteRoleResponse {
267
+ string references_id = 1;
268
+ prisca.v1.global.meta.Meta meta = 2;
269
+ }
270
+
271
+ message GetRoleByIdResponse {
272
+ Role role = 1;
273
+ repeated RolePolicy role_policies = 2;
274
+ prisca.v1.global.meta.Meta meta = 3;
275
+ }
276
+
277
+ message AssignRoleToUserResponse {
278
+ prisca.v1.global.meta.Meta meta = 3;
279
+ }
280
+
281
+