@aldiokta/protocgen 1.0.54 → 1.0.56

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 (131) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.pb.go +893 -0
  3. package/prisca/v1/account_assignment/account_assignment_grpc.pb.go +274 -0
  4. package/prisca/v1/account_group/account_group.pb.go +955 -0
  5. package/prisca/v1/account_group/account_group_grpc.pb.go +273 -0
  6. package/prisca/v1/chart_of_account/chart_of_account.pb.go +882 -0
  7. package/prisca/v1/chart_of_account/chart_of_account_grpc.pb.go +273 -0
  8. package/prisca/v1/core/auth/auth.proto +129 -0
  9. package/prisca/v1/core/company/company.proto +86 -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 +120 -0
  13. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  14. package/prisca/v1/core/job_position/job_position.proto +113 -0
  15. package/prisca/v1/core/job_title/job_title.proto +89 -0
  16. package/prisca/v1/core/line_of_approval/line_of_approval.proto +79 -0
  17. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  18. package/prisca/v1/core/location/location.proto +289 -0
  19. package/prisca/v1/core/material/material.proto +129 -0
  20. package/prisca/v1/core/material_group/material_group.proto +79 -0
  21. package/prisca/v1/core/material_type/material_type.proto +77 -0
  22. package/prisca/v1/core/messaging/email_template.proto +75 -0
  23. package/prisca/v1/core/messaging/messaging.proto +28 -0
  24. package/prisca/v1/core/number_range/number_range.proto +83 -0
  25. package/prisca/v1/core/organization/organization.proto +94 -0
  26. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  27. package/prisca/v1/core/procurement/procurement.proto +54 -0
  28. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +131 -0
  29. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  30. package/prisca/v1/core/tax_code/tax_code.proto +79 -0
  31. package/prisca/v1/core/transaction_builder/transaction_builder.proto +262 -0
  32. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
  33. package/prisca/v1/core/users/users.proto +22 -0
  34. package/prisca/v1/core/users_role/users_role.proto +72 -0
  35. package/prisca/v1/core/work_location/work_location.proto +122 -0
  36. package/prisca/v1/core/workflow/workflow.proto +197 -0
  37. package/prisca/v1/document_type/document_type.pb.go +952 -0
  38. package/prisca/v1/document_type/document_type_grpc.pb.go +273 -0
  39. package/prisca/v1/general_ledger_account/general_ledger_account.pb.go +1146 -0
  40. package/prisca/v1/general_ledger_account/general_ledger_account_grpc.pb.go +274 -0
  41. package/prisca/v1/global/meta/meta.proto +57 -0
  42. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.pb.go +2674 -0
  43. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc.pb.go +388 -0
  44. package/prisca/v1/purchasing_group/purchasing_group.pb.go +1004 -0
  45. package/prisca/v1/purchasing_group/purchasing_group_grpc.pb.go +274 -0
  46. package/prisca/v1/purchasing_organization/purchasing_organization.pb.go +775 -0
  47. package/prisca/v1/purchasing_organization/purchasing_organization_grpc.pb.go +236 -0
  48. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.pb.go +805 -0
  49. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc.pb.go +236 -0
  50. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.pb.go +906 -0
  51. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc.pb.go +236 -0
  52. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -177
  53. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2522
  54. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -178
  55. package/prisca/v1/account_group/account_group_pb.js +0 -2755
  56. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -177
  57. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2522
  58. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -345
  59. package/prisca/v1/core/auth/auth_pb.js +0 -3593
  60. package/prisca/v1/core/company/company_grpc_pb.js +0 -177
  61. package/prisca/v1/core/company/company_pb.js +0 -2875
  62. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  63. package/prisca/v1/core/currency/currency_pb.js +0 -2522
  64. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  65. package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
  66. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -184
  67. package/prisca/v1/core/employee/employee_pb.js +0 -3877
  68. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  69. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
  70. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  71. package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
  72. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  73. package/prisca/v1/core/job_title/job_title_pb.js +0 -2928
  74. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -177
  75. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -2612
  76. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  77. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
  78. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  79. package/prisca/v1/core/location/location_pb.js +0 -10879
  80. package/prisca/v1/core/material/material_grpc_pb.js +0 -181
  81. package/prisca/v1/core/material/material_pb.js +0 -4106
  82. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -177
  83. package/prisca/v1/core/material_group/material_group_pb.js +0 -2582
  84. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -148
  85. package/prisca/v1/core/material_type/material_type_pb.js +0 -2392
  86. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  87. package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
  88. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -45
  89. package/prisca/v1/core/messaging/messaging_pb.js +0 -896
  90. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -177
  91. package/prisca/v1/core/number_range/number_range_pb.js +0 -2732
  92. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  93. package/prisca/v1/core/organization/organization_pb.js +0 -3032
  94. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  95. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
  96. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  97. package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
  98. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
  99. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
  100. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  101. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
  102. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  103. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
  104. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -421
  105. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -8965
  106. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  107. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
  108. package/prisca/v1/core/users/users_grpc_pb.js +0 -1
  109. package/prisca/v1/core/users/users_pb.js +0 -626
  110. package/prisca/v1/core/users_role/users_role_grpc_pb.js +0 -177
  111. package/prisca/v1/core/users_role/users_role_pb.js +0 -2372
  112. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  113. package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
  114. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -180
  115. package/prisca/v1/core/workflow/workflow_pb.js +0 -6589
  116. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
  117. package/prisca/v1/document_type/document_type_pb.js +0 -2746
  118. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  119. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
  120. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  121. package/prisca/v1/global/meta/meta_pb.js +0 -1179
  122. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -267
  123. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -7825
  124. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  125. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
  126. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
  127. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
  128. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
  129. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
  130. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -146
  131. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2536
@@ -0,0 +1,83 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/number_range";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+
7
+ service NumberRangeService {
8
+ rpc CreateNumberRange(CreateNumberRangeRequest) returns (CreateNumberRangeResponse);
9
+ rpc UpdateNumberRange(UpdateNumberRangeRequest) returns (UpdateNumberRangeResponse);
10
+ rpc DeleteNumberRange(DeleteNumberRangeRequest) returns (DeleteNumberRangeResponse);
11
+ rpc GetNumberRangeById(GetNumberRangeByIdRequest) returns (GetNumberRangeByIdResponse);
12
+ rpc GetListNumberRanges(GetListNumberRangeRequest) returns (GetListNumberRangeResponse);
13
+ }
14
+
15
+ message NumberRange {
16
+ int64 id = 1;
17
+ string no = 2;
18
+ string from_number = 3;
19
+ string to_number = 4;
20
+ string range_status = 5;
21
+ bool external = 6;
22
+ string references_id = 7;
23
+ string number_range_type = 8;
24
+ string created_at = 9; // ISO 8601
25
+ string updated_at = 10; // Nullable
26
+ }
27
+
28
+ // Request Messages
29
+ message BaseNumberRangeRequest {
30
+ string no = 1;
31
+ string from_number = 2;
32
+ string to_number = 3;
33
+ bool external = 4;
34
+ string number_range_type = 5;
35
+ }
36
+
37
+ message CreateNumberRangeRequest {
38
+ BaseNumberRangeRequest base_number_range = 1;
39
+ }
40
+
41
+ message UpdateNumberRangeRequest {
42
+ string references_id =1;
43
+ BaseNumberRangeRequest base_number_range = 2;
44
+ }
45
+
46
+ message DeleteNumberRangeRequest {
47
+ string references_id =1;
48
+ }
49
+
50
+ message GetNumberRangeByIdRequest {
51
+ string references_id =1;
52
+ }
53
+
54
+ message GetListNumberRangeRequest {
55
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
56
+ prisca.v1.global.meta.FilterRequest query = 2;
57
+ }
58
+
59
+ // Response Messages
60
+ message CreateNumberRangeResponse {
61
+ NumberRange number_range = 1;
62
+ prisca.v1.global.meta.Meta meta =2;
63
+ }
64
+
65
+ message UpdateNumberRangeResponse {
66
+ NumberRange number_range = 1;
67
+ prisca.v1.global.meta.Meta meta =2;
68
+ }
69
+
70
+ message DeleteNumberRangeResponse {
71
+ string references_id =1;
72
+ prisca.v1.global.meta.Meta meta =2;
73
+ }
74
+
75
+ message GetNumberRangeByIdResponse {
76
+ NumberRange number_range = 1;
77
+ prisca.v1.global.meta.Meta meta =2;
78
+ }
79
+
80
+ message GetListNumberRangeResponse {
81
+ repeated NumberRange number_ranges = 1;
82
+ prisca.v1.global.meta.Meta meta =2;
83
+ }
@@ -0,0 +1,94 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/organization";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/company/company.proto";
8
+ import "prisca/v1/core/work_location/work_location.proto";
9
+ import "prisca/v1/core/organization_level/organization_level.proto";
10
+
11
+ service OrganizationsService {
12
+ rpc CreateOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse);
13
+ rpc GetOrganizationById(OrganizationGetByIdRequest) returns (OrganizationGetByIdResponse);
14
+ rpc UpdateOrganization(UpdateOrganizationRequest) returns (UpdateOrganizationResponse);
15
+ rpc DeleteOrganization(DeleteOrganizationRequest) returns (DeleteOrganizationResponse);
16
+ rpc GetListOrganization(GetListOrganizationRequest) returns (GetListOrganizationResponse);
17
+ }
18
+
19
+ message Organization {
20
+ string references_id = 1;
21
+ string code = 2;
22
+ string name = 3;
23
+ string cost_center_code = 4;
24
+ string parent_references_id = 5;
25
+ BaseOrganization parent = 6;
26
+ string organization_level_references_id = 7;
27
+ BaseOrganizationLevel organization_level = 8;
28
+ string work_location_references_id = 9;
29
+ WorkLocation work_locations = 10;
30
+ string description = 11;
31
+ string companies_references_id = 12;
32
+ BaseCompanyParent company = 13;
33
+ }
34
+
35
+ message BaseOrganization {
36
+ string code = 1;
37
+ string name = 2;
38
+ string cost_center_code = 3;
39
+ string parent_references_id = 4;
40
+ string organization_level_references_id = 5;
41
+ string work_location_references_id = 6;
42
+ string companies_references_id = 7;
43
+ string description = 8;
44
+ string references_id = 9;
45
+ }
46
+
47
+
48
+ message OrganizationGetByIdRequest {
49
+ string references_id = 1;
50
+ }
51
+
52
+ message CreateOrganizationRequest {
53
+ BaseOrganization organization = 1;
54
+ }
55
+
56
+ message UpdateOrganizationRequest {
57
+ string references_id = 1;
58
+ BaseOrganization organization = 2;
59
+ }
60
+
61
+ message DeleteOrganizationRequest {
62
+ int64 id = 1;
63
+ }
64
+
65
+ message DeleteOrganizationResponse {
66
+ int64 id = 1;
67
+ prisca.v1.global.meta.Meta meta = 2;
68
+ }
69
+
70
+ message GetListOrganizationRequest {
71
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
72
+ prisca.v1.global.meta.FilterRequest query = 2;
73
+ }
74
+
75
+ // Response Messages
76
+ message CreateOrganizationResponse {
77
+ Organization organization = 1;
78
+ prisca.v1.global.meta.Meta meta = 2;
79
+ }
80
+
81
+ message GetListOrganizationResponse {
82
+ repeated Organization organization = 1;
83
+ prisca.v1.global.meta.Meta meta = 2;
84
+ }
85
+
86
+ message UpdateOrganizationResponse {
87
+ Organization organization = 1;
88
+ prisca.v1.global.meta.Meta meta = 2;
89
+ }
90
+
91
+ message OrganizationGetByIdResponse {
92
+ Organization organization = 1;
93
+ prisca.v1.global.meta.Meta meta = 2;
94
+ }
@@ -0,0 +1,77 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/organization_level";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/company/company.proto";
8
+
9
+ service OrganizationLevelService {
10
+ rpc CreateOrganizationLevel(CreateOrganizationLevelRequest) returns (CreateOrganizationLevelResponse);
11
+ rpc GetOrganizationLevelById(OrganizationLevelGetByIdRequest) returns (OrganizationLevelGetByIdResponse);
12
+ rpc UpdateOrganizationLevel(UpdateOrganizationLevelRequest) returns (UpdateOrganizationLevelResponse);
13
+ rpc DeleteOrganizationLevel(DeleteOrganizationLevelRequest) returns (DeleteOrganizationLevelResponse);
14
+ rpc GetListOrganizationLevel(GetListOrganizationLevelRequest) returns (GetListOrganizationLevelResponse);
15
+ }
16
+
17
+ message OrganizationLevel {
18
+ string name = 1;
19
+ int64 level = 2;
20
+ string companies_references_id = 3;
21
+ }
22
+
23
+ message BaseOrganizationLevel {
24
+ string references_id = 1;
25
+ string name = 2;
26
+ int64 level = 3;
27
+ string companies_references_id = 4;
28
+ BaseCompanyParent company = 5;
29
+ }
30
+
31
+ message OrganizationLevelGetByIdRequest {
32
+ string references_id = 1;
33
+ }
34
+
35
+ message OrganizationLevelGetByIdResponse {
36
+ BaseOrganizationLevel organization_level = 1;
37
+ prisca.v1.global.meta.Meta meta = 2;
38
+ }
39
+
40
+ message UpdateOrganizationLevelRequest {
41
+ string references_id = 1;
42
+ OrganizationLevel organization_level = 2;
43
+ }
44
+
45
+ message UpdateOrganizationLevelResponse {
46
+ OrganizationLevel organization_level = 1;
47
+ prisca.v1.global.meta.Meta meta = 2;
48
+ }
49
+
50
+ message CreateOrganizationLevelRequest {
51
+ OrganizationLevel organization_level = 1;
52
+ }
53
+
54
+ message CreateOrganizationLevelResponse {
55
+ OrganizationLevel organization_level = 1;
56
+ prisca.v1.global.meta.Meta meta = 2;
57
+ }
58
+
59
+ message DeleteOrganizationLevelRequest {
60
+ int64 id = 1;
61
+ }
62
+
63
+
64
+ message DeleteOrganizationLevelResponse {
65
+ int64 id = 1;
66
+ prisca.v1.global.meta.Meta meta = 2;
67
+ }
68
+
69
+ message GetListOrganizationLevelRequest {
70
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
71
+ prisca.v1.global.meta.FilterRequest query = 2;
72
+ }
73
+
74
+ message GetListOrganizationLevelResponse {
75
+ repeated BaseOrganizationLevel organization_level = 1;
76
+ prisca.v1.global.meta.Meta meta = 2;
77
+ }
@@ -0,0 +1,54 @@
1
+ // protoc --go_out=. --go-grpc_out=. proto/prisca/procurement/v1/private/*.proto
2
+
3
+ syntax = "proto3";
4
+
5
+ option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/procurement";
6
+
7
+ service ProcurementService {
8
+ rpc Create(CreatePRRequest) returns (PRDetailResponse);
9
+ rpc Update(UpdatePRRequest) returns (PRDetailResponse);
10
+ rpc Get(GetPRRequest) returns (PRListResponse);
11
+ rpc GetSingle(GetSinglePRRequest) returns (PRDetailResponse);
12
+ rpc Delete(GetSinglePRRequest) returns (SuccessResponse);
13
+ }
14
+
15
+ message ResponseMeta {
16
+ int64 limit = 1;
17
+ int64 offset = 2;
18
+ int64 Total = 3;
19
+ }
20
+
21
+ message GetPRRequest {
22
+ int64 limit = 1;
23
+ int64 offset = 2;
24
+ string PrNumber = 3;
25
+ }
26
+
27
+ message CreatePRRequest {
28
+ string PrNumber = 1;
29
+ string Title = 2;
30
+ }
31
+
32
+ message UpdatePRRequest {
33
+ int64 Id = 1;
34
+ string PrNumber = 2;
35
+ string Title = 3;
36
+ }
37
+
38
+ message GetSinglePRRequest { int64 Id = 1; }
39
+
40
+ message PRDetailResponse {
41
+ int64 Id = 1;
42
+ string PrNumber = 2;
43
+ string Title = 3;
44
+ string ReferencesId = 4;
45
+ string CreatedAt = 5;
46
+ string UpdatedAt = 6;
47
+ }
48
+
49
+ message PRListResponse {
50
+ repeated PRDetailResponse PurchaseRequests = 1;
51
+ ResponseMeta Meta = 2;
52
+ }
53
+
54
+ message SuccessResponse { string Response = 1; }
@@ -0,0 +1,131 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/prisca-v2-purchase-requisition-domain/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
+
8
+ service PurchaseRequisitionTrxService {
9
+ rpc CreatePurchaseRequisitionTrx (CreatePurchaseRequisitionTrxRequest) returns (CreatePurchaseRequisitionTrxResponse);
10
+ rpc UpdatePurchaseRequisitionTrx (UpdatePurchaseRequisitionTrxRequest) returns (UpdatePurchaseRequisitionTrxResponse);
11
+ rpc GetPurchaseRequisitionTrxById (GetPurchaseRequisitionTrxByIdRequest) returns (GetPurchaseRequisitionTrxByIdResponse);
12
+ rpc GetPurchaseRequisitionTrxList (GetPurchaseRequisitionTrxListRequest) returns (GetPurchaseRequisitionTrxListResponse);
13
+ rpc GetPurchaseRequisitionWithTrxId (GetPurchaseRequisitionTrxDetailByIdRequest) returns (GetPurchaseRequisitionTrxDetailByIdResponse);
14
+ rpc GetPurchaseRequisitionWithTrxList (GetPurchaseRequisitionTrxDetailListRequest) returns (GetPurchaseRequisitionTrxDetailListResponse);
15
+ rpc GetPurchaseRequisitionWithTrxListTable (GetPurchaseRequisitionTrxDetailListDetailRequest) returns (GetPurchaseRequisitionTrxDetailListTableResponse);
16
+ rpc GetPurchaseRequisitionWithTrxListDetail (GetPurchaseRequisitionTrxDetailListDetailRequest) returns (GetPurchaseRequisitionTrxDetailListDetailResponse);
17
+ }
18
+
19
+ message Value {
20
+ string key = 1;
21
+ string value = 2;
22
+ }
23
+
24
+ message PurchaseRequisitionTrx {
25
+ int64 id = 1;
26
+ string title =2;
27
+ string purchase_requisition_transaction_number = 3;
28
+ string item_category_ref = 4;
29
+ string account_assigment_ref = 5;
30
+ string currency_ref = 6;
31
+ string purchase_requisition_type = 7;
32
+ string department = 8;
33
+ string purchasing_organization = 9;
34
+ string email_cc = 10;
35
+ string plant_ref = 11;
36
+ string purchasing_group = 12;
37
+ repeated prisca.v1.core.transaction_builder.Value custom_transaction = 13;
38
+ string references_id =14;
39
+ string created_at = 15; // ISO 8601
40
+ string updated_at = 16; // Nullable
41
+ }
42
+
43
+ // req
44
+
45
+ message BasePurchaseRequisitionTrx {
46
+ string title =1;
47
+ string purchase_requisition_transaction_number = 2;
48
+ string item_category_ref = 3;
49
+ string account_assigment_ref = 4;
50
+ string currency_ref = 5;
51
+ string purchase_requisition_type = 6;
52
+ string department = 7;
53
+ string purchasing_organization = 8;
54
+ string email_cc = 9;
55
+ string plant_ref = 10;
56
+ string purchasing_group = 11;
57
+ repeated prisca.v1.core.transaction_builder.Value custom_transaction = 12;
58
+ }
59
+
60
+ message CreatePurchaseRequisitionTrxRequest {
61
+ BasePurchaseRequisitionTrx purchase_requisition_transaction = 1;
62
+ }
63
+
64
+ message UpdatePurchaseRequisitionTrxRequest {
65
+ int64 id = 1;
66
+ BasePurchaseRequisitionTrx purchase_requisition_transaction = 2;
67
+ }
68
+
69
+ message GetPurchaseRequisitionTrxByIdRequest {
70
+ int64 id = 1;
71
+ }
72
+
73
+ message GetPurchaseRequisitionTrxListRequest {
74
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
75
+ }
76
+
77
+ message GetPurchaseRequisitionTrxDetailByIdRequest {
78
+ int64 id = 1;
79
+ int64 trx_builder_id = 2;
80
+ }
81
+
82
+ message GetPurchaseRequisitionTrxDetailListRequest {
83
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
84
+ int64 trx_builder_id = 2;
85
+ }
86
+
87
+ message GetPurchaseRequisitionTrxDetailListDetailRequest {
88
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
89
+ int64 trx_builder_id = 2;
90
+ }
91
+
92
+ // res
93
+
94
+ message CreatePurchaseRequisitionTrxResponse {
95
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
96
+ prisca.v1.global.meta.Meta meta = 2;
97
+ }
98
+
99
+ message UpdatePurchaseRequisitionTrxResponse {
100
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
101
+ prisca.v1.global.meta.Meta meta = 2;
102
+ }
103
+
104
+ message GetPurchaseRequisitionTrxByIdResponse {
105
+ PurchaseRequisitionTrx purchase_requisition_transaction = 1;
106
+ prisca.v1.global.meta.Meta meta = 2;
107
+ }
108
+
109
+ message GetPurchaseRequisitionTrxListResponse {
110
+ repeated PurchaseRequisitionTrx purchase_requisition_transaction = 1;
111
+ prisca.v1.global.meta.Meta meta = 2;
112
+ }
113
+
114
+ message GetPurchaseRequisitionTrxDetailByIdResponse {
115
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail data = 3;
116
+ }
117
+
118
+ message GetPurchaseRequisitionTrxDetailListResponse {
119
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetails data = 1;
120
+ prisca.v1.global.meta.Meta meta = 2;
121
+ }
122
+
123
+ message GetPurchaseRequisitionTrxDetailListTableResponse {
124
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes data = 1;
125
+ prisca.v1.global.meta.Meta meta = 2;
126
+ }
127
+
128
+ message GetPurchaseRequisitionTrxDetailListDetailResponse {
129
+ repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetailRes data = 1;
130
+ prisca.v1.global.meta.Meta meta = 2;
131
+ }
@@ -0,0 +1,10 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/recipient_roles";
4
+
5
+ //import "prisca/v1/global/meta/meta.proto";
6
+
7
+ message RecipientRoles {
8
+ int64 id = 1;
9
+ string description = 2;
10
+ }
@@ -0,0 +1,79 @@
1
+ syntax = "proto3";
2
+
3
+ package prisca.v1.core.tax_code;
4
+
5
+ option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/tax_code;tax_code";
6
+
7
+ import "prisca/v1/global/meta/meta.proto";
8
+
9
+ service TaxCodeService {
10
+ rpc CreateTaxCode(CreateTaxCodeRequest) returns (CreateTaxCodeResponse);
11
+ rpc UpdateTaxCode(UpdateTaxCodeRequest) returns (UpdateTaxCodeResponse);
12
+ rpc GetTaxCodeById(GetTaxCodeByIdRequest) returns (GetTaxCodeByIdResponse);
13
+ rpc GetListTaxCode(GetListTaxCodeRequest) returns (GetListTaxCodeResponse);
14
+ rpc DeleteTaxCode(DeleteTaxCodeRequest) returns (DeleteTaxCodeResponse);
15
+ }
16
+
17
+ message TaxCode {
18
+ int64 id = 1;
19
+ string code = 2;
20
+ string code_name = 3;
21
+ string procedure = 4;
22
+ string references_id = 5;
23
+ string created_at = 6; // Use ISO 8601 format for date strings
24
+ string updated_at = 7; // Optional, nullable
25
+ }
26
+
27
+ message BaseTaxCode {
28
+ string code = 1;
29
+ string code_name = 2;
30
+ string procedure = 3;
31
+ }
32
+ message CreateTaxCodeRequest {
33
+ BaseTaxCode base_tax_code = 1;
34
+ }
35
+
36
+ message CreateTaxCodeResponse {
37
+ TaxCode tax_code = 1;
38
+ prisca.v1.global.meta.Meta meta = 2;
39
+ }
40
+
41
+ message UpdateTaxCodeRequest {
42
+ string references_id = 1;
43
+ BaseTaxCode base_tax_code = 2;
44
+ }
45
+
46
+ message UpdateTaxCodeResponse {
47
+ TaxCode tax_code = 1;
48
+ prisca.v1.global.meta.Meta meta = 2;
49
+ }
50
+
51
+ message GetTaxCodeByIdRequest {
52
+ string references_id = 1;
53
+ }
54
+
55
+ message GetTaxCodeByIdResponse {
56
+ TaxCode tax_code = 1;
57
+ prisca.v1.global.meta.Meta meta = 2;
58
+ }
59
+
60
+ message GetListTaxCodeRequest {
61
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
62
+ prisca.v1.global.meta.FilterRequest query = 2;
63
+ }
64
+
65
+ message GetListTaxCodeResponse {
66
+ repeated TaxCode tax_codes = 1;
67
+ prisca.v1.global.meta.Meta meta = 2;
68
+ }
69
+
70
+ message DeleteTaxCodeRequest {
71
+ string references_id = 1;
72
+ }
73
+
74
+ message DeleteTaxCodeResponse {
75
+ string references_id = 1;
76
+ prisca.v1.global.meta.Meta meta = 2;
77
+ }
78
+
79
+