@aldiokta/protocgen 1.0.19 → 1.0.20
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.
- package/package.json +1 -1
- package/prisca/v1/core/auth/auth.pb.go +998 -0
- package/prisca/v1/core/auth/auth_grpc.pb.go +427 -0
- package/prisca/v1/core/company/company.pb.go +965 -0
- package/prisca/v1/core/company/company_grpc.pb.go +273 -0
- package/prisca/v1/core/department_material/department_material.pb.go +776 -0
- package/prisca/v1/core/department_material/department_material_grpc.pb.go +236 -0
- package/prisca/v1/core/job_grade/job_grade.pb.go +887 -0
- package/prisca/v1/core/job_grade/job_grade_grpc.pb.go +273 -0
- package/prisca/v1/core/job_position/job_position.pb.go +1196 -0
- package/prisca/v1/core/job_position/job_position_grpc.pb.go +273 -0
- package/prisca/v1/core/job_title/job_title.pb.go +986 -0
- package/prisca/v1/core/job_title/job_title_grpc.pb.go +273 -0
- package/prisca/v1/core/line_of_approval/line_of_approval.pb.go +913 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc.pb.go +273 -0
- package/prisca/v1/core/location/location.pb.go +1397 -0
- package/prisca/v1/core/location/location_grpc.pb.go +387 -0
- package/prisca/v1/core/material/material.pb.go +1366 -0
- package/prisca/v1/core/material/material_grpc.pb.go +273 -0
- package/prisca/v1/core/material_group/material_group.pb.go +911 -0
- package/prisca/v1/core/material_group/material_group_grpc.pb.go +273 -0
- package/prisca/v1/core/material_type/material_type.pb.go +827 -0
- package/prisca/v1/core/material_type/material_type_grpc.pb.go +239 -0
- package/prisca/v1/core/number_range/number_range.pb.go +916 -0
- package/prisca/v1/core/number_range/number_range_grpc.pb.go +273 -0
- package/prisca/v1/core/organization/organization.pb.go +1039 -0
- package/prisca/v1/core/organization/organization_grpc.pb.go +273 -0
- package/prisca/v1/core/organization_level/organization_level.pb.go +853 -0
- package/prisca/v1/core/organization_level/organization_level_grpc.pb.go +274 -0
- package/prisca/v1/core/procurement/procurement.pb.go +622 -0
- package/prisca/v1/core/procurement/procurement_grpc.pb.go +275 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.pb.go +1550 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc.pb.go +388 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.pb.go +141 -0
- package/prisca/v1/core/role/role.pb.go +797 -0
- package/prisca/v1/core/role/role_grpc.pb.go +273 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.pb.go +3217 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc.pb.go +656 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.pb.go +973 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc.pb.go +278 -0
- package/prisca/v1/core/users/users.pb.go +281 -0
- package/prisca/v1/core/users_role/users_role.pb.go +813 -0
- package/prisca/v1/core/users_role/users_role_grpc.pb.go +273 -0
- package/prisca/v1/core/work_location/work_location.pb.go +995 -0
- package/prisca/v1/core/work_location/work_location_grpc.pb.go +273 -0
- package/prisca/v1/core/work_locations/work_locations.pb.go +184 -0
- package/prisca/v1/core/work_locations/work_locations_grpc.pb.go +76 -0
- package/prisca/v1/core/workflow/workflow.pb.go +2057 -0
- package/prisca/v1/core/workflow/workflow_grpc.pb.go +273 -0
- package/prisca/v1/global/meta/meta.pb.go +446 -0
- package/prisca/v1/core/auth/auth.proto +0 -100
- package/prisca/v1/core/company/company.proto +0 -86
- package/prisca/v1/core/department_material/department_material.proto +0 -69
- package/prisca/v1/core/job_grade/job_grade.proto +0 -79
- package/prisca/v1/core/job_position/job_position.proto +0 -107
- package/prisca/v1/core/job_title/job_title.proto +0 -88
- package/prisca/v1/core/location/location.proto +0 -124
- package/prisca/v1/core/material/material.proto +0 -127
- package/prisca/v1/core/material_group/material_group.proto +0 -79
- package/prisca/v1/core/material_type/material_type.proto +0 -77
- package/prisca/v1/core/number_range/number_range.proto +0 -81
- package/prisca/v1/core/organization/organization.proto +0 -93
- package/prisca/v1/core/organization_level/organization_level.proto +0 -73
- package/prisca/v1/core/procurement/procurement.proto +0 -54
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -278
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
- package/prisca/v1/core/users/users.proto +0 -22
- package/prisca/v1/core/users_role/users_role.proto +0 -72
- package/prisca/v1/core/work_location/work_location.proto +0 -88
- package/prisca/v1/core/workflow/workflow.proto +0 -191
- package/prisca/v1/global/meta/meta.proto +0 -57
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/prisca-v2/backend-services/core-service/protocgen/prisca/v1/core/job_grade";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
import "prisca/v1/core/company/company.proto";
|
|
8
|
-
|
|
9
|
-
service JobGradeService {
|
|
10
|
-
rpc CreateJobGrade(CreateJobGradeRequest) returns (CreateJobGradeResponse);
|
|
11
|
-
rpc GetJobGradeById(JobGradeGetByIdRequest) returns (JobGradeGetByIdResponse);
|
|
12
|
-
rpc UpdateJobGrade(UpdateJobGradeRequest) returns (UpdateJobGradeResponse);
|
|
13
|
-
rpc DeleteJobGrade(DeleteJobGradeRequest) returns (DeleteJobGradeResponse);
|
|
14
|
-
rpc GetListJobGrade(GetListJobGradeRequest) returns (GetListJobGradeResponse);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message JobGrade {
|
|
18
|
-
string code = 1;
|
|
19
|
-
string name = 2;
|
|
20
|
-
string description = 3;
|
|
21
|
-
string companies_references_id = 4;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
message BaseJobGrade {
|
|
25
|
-
string references_id = 1;
|
|
26
|
-
string code = 2;
|
|
27
|
-
string name = 3;
|
|
28
|
-
string description = 4;
|
|
29
|
-
string companies_references_id = 5;
|
|
30
|
-
BaseCompanyParent companies = 6;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message JobGradeGetByIdRequest {
|
|
34
|
-
string references_id = 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
message CreateJobGradeRequest {
|
|
38
|
-
JobGrade job_grade = 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
message UpdateJobGradeRequest {
|
|
42
|
-
string references_id = 1;
|
|
43
|
-
JobGrade job_grade = 2;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
message DeleteJobGradeRequest {
|
|
47
|
-
int64 id = 1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message DeleteJobGradeResponse {
|
|
51
|
-
int64 id = 1;
|
|
52
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message GetListJobGradeRequest {
|
|
56
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
57
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// Response Messages
|
|
61
|
-
message CreateJobGradeResponse {
|
|
62
|
-
BaseJobGrade job_grade = 1;
|
|
63
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message GetListJobGradeResponse {
|
|
67
|
-
repeated BaseJobGrade job_grade = 1;
|
|
68
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message UpdateJobGradeResponse {
|
|
72
|
-
JobGrade job_grade = 1;
|
|
73
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message JobGradeGetByIdResponse {
|
|
77
|
-
BaseJobGrade job_grade = 1;
|
|
78
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
79
|
-
}
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/job_position";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
import "prisca/v1/core/organization/organization.proto";
|
|
8
|
-
import "prisca/v1/core/work_location/work_location.proto";
|
|
9
|
-
import "prisca/v1/core/company/company.proto";
|
|
10
|
-
import "prisca/v1/core/users_role/users_role.proto";
|
|
11
|
-
|
|
12
|
-
service JobPositionService {
|
|
13
|
-
rpc CreateJobPosition(CreateJobPositionRequest) returns (CreateJobPositionResponse);
|
|
14
|
-
rpc GetJobPositionById(JobPositionGetByIdRequest) returns (JobPositionGetByIdResponse);
|
|
15
|
-
rpc UpdateJobPosition(UpdateJobPositionRequest) returns (UpdateJobPositionResponse);
|
|
16
|
-
rpc DeleteJobPosition(DeleteJobPositionRequest) returns (DeleteJobPositionResponse);
|
|
17
|
-
rpc GetListJobPosition(GetListJobPositionRequest) returns (GetListJobPositionResponse);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
message BaseJobPosition {
|
|
21
|
-
string code = 1;
|
|
22
|
-
string name = 2;
|
|
23
|
-
string alias = 3;
|
|
24
|
-
string cost_center_code = 4;
|
|
25
|
-
BaseJobPositionParent parent = 5;
|
|
26
|
-
BaseOrganization organizations = 6;
|
|
27
|
-
WorkLocation work_locations = 7;
|
|
28
|
-
string description = 8;
|
|
29
|
-
BaseCompanyParent companies = 9;
|
|
30
|
-
BaseUsersRole role = 10;
|
|
31
|
-
string references_id = 11;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
message BaseJobPositionParent {
|
|
35
|
-
string references_id = 1;
|
|
36
|
-
string code = 2;
|
|
37
|
-
string name = 3;
|
|
38
|
-
string alias = 4;
|
|
39
|
-
string cost_center_code = 5;
|
|
40
|
-
BaseJobPosition job_positions = 6;
|
|
41
|
-
Organization organizations = 7;
|
|
42
|
-
WorkLocation work_locations = 8;
|
|
43
|
-
string description = 9;
|
|
44
|
-
BaseCompanyParent companies = 10;
|
|
45
|
-
BaseUsersRole role = 11;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message JobPosition {
|
|
49
|
-
string code = 2;
|
|
50
|
-
string name = 3;
|
|
51
|
-
string alias = 4;
|
|
52
|
-
string cost_center_code = 5;
|
|
53
|
-
string parent_references_id = 6;
|
|
54
|
-
string organization_references_id = 7;
|
|
55
|
-
string work_location_references_id = 8;
|
|
56
|
-
string description = 9;
|
|
57
|
-
string companies_references_id = 10;
|
|
58
|
-
string users_role_references_id = 11;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message JobPositionGetByIdRequest {
|
|
62
|
-
string references_id = 1;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message CreateJobPositionRequest {
|
|
66
|
-
JobPosition job_position = 1;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
message UpdateJobPositionRequest {
|
|
70
|
-
string references_id = 1;
|
|
71
|
-
JobPosition job_position = 2;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
message DeleteJobPositionRequest {
|
|
75
|
-
string references_id = 1;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
message DeleteJobPositionResponse {
|
|
79
|
-
string references_id = 1;
|
|
80
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
message GetListJobPositionRequest {
|
|
84
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
85
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
// Response Messages
|
|
89
|
-
message CreateJobPositionResponse {
|
|
90
|
-
JobPosition job_position = 1;
|
|
91
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message GetListJobPositionResponse {
|
|
95
|
-
repeated BaseJobPosition job_position = 1;
|
|
96
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
message UpdateJobPositionResponse {
|
|
100
|
-
JobPosition job_position = 1;
|
|
101
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
message JobPositionGetByIdResponse {
|
|
105
|
-
BaseJobPosition job_position = 1;
|
|
106
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
107
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/job_title";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
import "prisca/v1/core/company/company.proto";
|
|
8
|
-
|
|
9
|
-
service JobTitleService {
|
|
10
|
-
rpc CreateJobTitle(CreateJobTitleRequest) returns (CreateJobTitleResponse);
|
|
11
|
-
rpc GetJobTitleById(JobTitleGetByIdRequest) returns (JobTitleGetByIdResponse);
|
|
12
|
-
rpc UpdateJobTitle(UpdateJobTitleRequest) returns (UpdateJobTitleResponse);
|
|
13
|
-
rpc DeleteJobTitle(DeleteJobTitleRequest) returns (DeleteJobTitleResponse);
|
|
14
|
-
rpc GetListJobTitle(GetListJobTitleRequest) returns (GetListJobTitleResponse);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message JobTitle {
|
|
18
|
-
string code = 1;
|
|
19
|
-
string name = 2;
|
|
20
|
-
string description = 3;
|
|
21
|
-
string parent_references_id = 4;
|
|
22
|
-
string companies_references_id = 5;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message BaseJobTitle {
|
|
26
|
-
string references_id = 1;
|
|
27
|
-
string code = 2;
|
|
28
|
-
string name = 3;
|
|
29
|
-
string description = 4;
|
|
30
|
-
string parent_references_id = 5;
|
|
31
|
-
BaseJobTitleParent parent = 6;
|
|
32
|
-
BaseCompanyParent companies = 7;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
message BaseJobTitleParent {
|
|
36
|
-
string references_id = 1;
|
|
37
|
-
string code = 2;
|
|
38
|
-
string name = 3;
|
|
39
|
-
string description = 4;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message JobTitleGetByIdRequest {
|
|
43
|
-
string references_id = 1;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
message CreateJobTitleRequest {
|
|
47
|
-
JobTitle job_title = 1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message UpdateJobTitleRequest {
|
|
51
|
-
string references_id = 1;
|
|
52
|
-
JobTitle job_title = 2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message DeleteJobTitleRequest {
|
|
56
|
-
int64 id = 1;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
message DeleteJobTitleResponse {
|
|
60
|
-
int64 id = 1;
|
|
61
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
message GetListJobTitleRequest {
|
|
65
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
66
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
// Response Messages
|
|
70
|
-
message CreateJobTitleResponse {
|
|
71
|
-
JobTitle job_title = 1;
|
|
72
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
message GetListJobTitleResponse {
|
|
76
|
-
repeated BaseJobTitle job_title = 1;
|
|
77
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message UpdateJobTitleResponse {
|
|
81
|
-
JobTitle job_title = 1;
|
|
82
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message JobTitleGetByIdResponse {
|
|
86
|
-
BaseJobTitle job_title = 1;
|
|
87
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
88
|
-
}
|
|
@@ -1,124 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/location";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
|
|
8
|
-
service LocationService {
|
|
9
|
-
rpc GetProvince(GetProvinceRequest) returns (GetProvinceResponse);
|
|
10
|
-
rpc GetCity(GetCityRequest) returns (GetCityResponse);
|
|
11
|
-
rpc GetDistrict(GetDistrictRequest) returns (GetDistrictResponse);
|
|
12
|
-
rpc GetVillage(GetVillageRequest) returns (GetVillageResponse);
|
|
13
|
-
rpc GetCountry(GetCountryRequest) returns (GetCountryResponse);
|
|
14
|
-
rpc CreateCountry(CreateCountryRequest) returns (CreateCountryResponse);
|
|
15
|
-
rpc UpdateCountry(UpdateCountryRequest) returns (UpdateCountryResponse);
|
|
16
|
-
rpc GetCountryById(CountryGetByIdRequest) returns (CountryGetByIdResponse);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
message Country {
|
|
20
|
-
int64 id = 1;
|
|
21
|
-
string name = 2;
|
|
22
|
-
string references_id = 3;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message BaseCountry {
|
|
26
|
-
string name = 1;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
message Province {
|
|
31
|
-
int64 id = 1;
|
|
32
|
-
string name = 2;
|
|
33
|
-
string references_id = 3;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
message City {
|
|
37
|
-
int64 id = 1;
|
|
38
|
-
string name = 2;
|
|
39
|
-
string references_id = 3;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message District {
|
|
43
|
-
int64 id = 1;
|
|
44
|
-
string name = 2;
|
|
45
|
-
string references_id = 3;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message Village {
|
|
49
|
-
int64 id = 1;
|
|
50
|
-
string name = 2;
|
|
51
|
-
string references_id = 3;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message GetCountryRequest {
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message CountryGetByIdRequest {
|
|
58
|
-
string references_id =1;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message UpdateCountryRequest {
|
|
62
|
-
string references_id =1;
|
|
63
|
-
BaseCountry country = 2;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message CountryGetByIdResponse {
|
|
67
|
-
Country country = 1;
|
|
68
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message GetProvinceRequest {
|
|
72
|
-
string references_id =1;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
message GetCityRequest {
|
|
76
|
-
string references_id =1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
message GetDistrictRequest {
|
|
80
|
-
string references_id =1;
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
message GetVillageRequest {
|
|
84
|
-
string references_id =1;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
message GetCountryResponse {
|
|
88
|
-
repeated Country country = 1;
|
|
89
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
message GetProvinceResponse {
|
|
93
|
-
repeated Province province = 1;
|
|
94
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
message GetCityResponse {
|
|
98
|
-
repeated City city = 1;
|
|
99
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
message GetDistrictResponse {
|
|
103
|
-
repeated District district = 1;
|
|
104
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
message GetVillageResponse {
|
|
108
|
-
repeated Village village = 1;
|
|
109
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
message CreateCountryRequest {
|
|
113
|
-
BaseCountry country = 1;
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
message CreateCountryResponse {
|
|
117
|
-
Country country = 1;
|
|
118
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
message UpdateCountryResponse {
|
|
122
|
-
Country country = 1;
|
|
123
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
124
|
-
}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/material";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
import "prisca/v1/core/material_type/material_type.proto";
|
|
8
|
-
import "prisca/v1/core/material_group/material_group.proto";
|
|
9
|
-
import "prisca/v1/core/work_location/work_location.proto";
|
|
10
|
-
import "prisca/v1/core/unit_of_measurement/unit_of_measurement.proto";
|
|
11
|
-
//import "prisca/v1/core/department_material/department_material.proto";
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
service MaterialService {
|
|
16
|
-
rpc CreateMaterial(CreateMaterialRequest) returns (CreateMaterialResponse);
|
|
17
|
-
rpc UpdateMaterial(UpdateMaterialRequest) returns (UpdateMaterialResponse);
|
|
18
|
-
rpc DeleteMaterial(DeleteMaterialRequest) returns (DeleteMaterialResponse);
|
|
19
|
-
rpc GetMaterialById(GetMaterialByIdRequest) returns (GetMaterialByIdResponse);
|
|
20
|
-
rpc GetListMaterials(GetListMaterialRequest) returns (GetListMaterialResponse);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
message Material {
|
|
24
|
-
int64 id = 1;
|
|
25
|
-
string material_code = 2;
|
|
26
|
-
string material_description = 3;
|
|
27
|
-
string material_category = 4;
|
|
28
|
-
int64 old_product_number = 5;
|
|
29
|
-
string material_group_ref = 6;
|
|
30
|
-
string references_id = 7;
|
|
31
|
-
repeated MaterialLanguageDescription language_description = 8;
|
|
32
|
-
string created_by = 9;
|
|
33
|
-
string updated_by = 10;
|
|
34
|
-
string created_at = 11; // ISO 8601 format
|
|
35
|
-
string updated_at = 12; // Nullable, ISO 8601 format
|
|
36
|
-
string base_unit_of_measure_ref = 13;
|
|
37
|
-
optional UnitOfMeasure base_unit_of_measure = 14;
|
|
38
|
-
repeated MaterialUOM unit_of_measure = 15;
|
|
39
|
-
optional MaterialType material_type = 16;
|
|
40
|
-
optional MaterialGroup material_group = 17;
|
|
41
|
-
string material_plant_ref = 18;
|
|
42
|
-
optional WorkLocation material_plant = 19;
|
|
43
|
-
string material_type_ref = 20;
|
|
44
|
-
// int64 department_material_ref = 6;
|
|
45
|
-
// optional DepartmentMaterial department_material = 16;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message MaterialLanguageDescription {
|
|
49
|
-
string language = 1;
|
|
50
|
-
string title = 2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
message MaterialUOM {
|
|
54
|
-
int64 material_id = 1;
|
|
55
|
-
int64 uom_id = 2;
|
|
56
|
-
string unit_conversion = 3;
|
|
57
|
-
string unit =4;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message MaterialUOMRequest {
|
|
61
|
-
string uom_references_id = 1;
|
|
62
|
-
string unit_conversion = 2;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// Request Messages
|
|
66
|
-
message BaseMaterialRequest {
|
|
67
|
-
string material_code = 1;
|
|
68
|
-
string material_type_code_ref = 2;
|
|
69
|
-
string material_description = 3;
|
|
70
|
-
string material_category = 4;
|
|
71
|
-
int64 old_product_number = 5;
|
|
72
|
-
string material_group_ref = 6;
|
|
73
|
-
repeated MaterialLanguageDescription language_description = 7;
|
|
74
|
-
repeated MaterialUOMRequest unit_of_measure = 8;
|
|
75
|
-
string created_by = 9;
|
|
76
|
-
string updated_by = 10;
|
|
77
|
-
string material_plant_ref = 11;
|
|
78
|
-
string base_unit_of_measure_ref = 12;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
message CreateMaterialRequest {
|
|
82
|
-
BaseMaterialRequest base_material = 1;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message UpdateMaterialRequest {
|
|
86
|
-
string references_id =1;
|
|
87
|
-
BaseMaterialRequest base_material = 2;
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
message DeleteMaterialRequest {
|
|
91
|
-
string references_id =1;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message GetMaterialByIdRequest {
|
|
95
|
-
string references_id =1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message GetListMaterialRequest {
|
|
99
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
100
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Response Messages
|
|
104
|
-
message CreateMaterialResponse {
|
|
105
|
-
Material material = 1;
|
|
106
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
message UpdateMaterialResponse {
|
|
110
|
-
Material material = 1;
|
|
111
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
message DeleteMaterialResponse {
|
|
115
|
-
string references_id =1;
|
|
116
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message GetMaterialByIdResponse {
|
|
120
|
-
Material material = 1;
|
|
121
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
message GetListMaterialResponse {
|
|
125
|
-
repeated Material materials = 1;
|
|
126
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
127
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/material_group";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
|
|
8
|
-
service MaterialGroupService {
|
|
9
|
-
rpc CreateMaterialGroup(CreateMaterialGroupRequest) returns (CreateMaterialGroupResponse);
|
|
10
|
-
rpc UpdateMaterialGroup(UpdateMaterialGroupRequest) returns (UpdateMaterialGroupResponse);
|
|
11
|
-
rpc DeleteMaterialGroup(DeleteMaterialGroupRequest) returns (DeleteMaterialGroupResponse);
|
|
12
|
-
rpc GetMaterialGroupById(GetMaterialGroupByIdRequest) returns (GetMaterialGroupByIdResponse);
|
|
13
|
-
rpc GetListMaterialGroups(GetListMaterialGroupRequest) returns (GetListMaterialGroupResponse);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
message MaterialGroup {
|
|
17
|
-
int64 id = 1;
|
|
18
|
-
string material_group_code = 2;
|
|
19
|
-
string material_group_description = 3;
|
|
20
|
-
string material_group_description_external = 4;
|
|
21
|
-
string references_id = 5;
|
|
22
|
-
string created_at = 6; // ISO 8601
|
|
23
|
-
string updated_at = 7; // Nullable
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Request Messages
|
|
27
|
-
message BaseMaterialGroupRequest {
|
|
28
|
-
string material_group_code = 1;
|
|
29
|
-
string material_group_description = 2;
|
|
30
|
-
string material_group_description_external = 3;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message CreateMaterialGroupRequest {
|
|
34
|
-
BaseMaterialGroupRequest base_material_group = 1;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
message UpdateMaterialGroupRequest {
|
|
38
|
-
string references_id =1;
|
|
39
|
-
BaseMaterialGroupRequest base_material_group = 2;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message DeleteMaterialGroupRequest {
|
|
43
|
-
int64 id = 1;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
message GetMaterialGroupByIdRequest {
|
|
47
|
-
string references_id =1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message GetListMaterialGroupRequest {
|
|
51
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
52
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
// Response Messages
|
|
56
|
-
message CreateMaterialGroupResponse {
|
|
57
|
-
MaterialGroup material_group = 1;
|
|
58
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message UpdateMaterialGroupResponse {
|
|
62
|
-
MaterialGroup material_group = 1;
|
|
63
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message DeleteMaterialGroupResponse {
|
|
67
|
-
string references_id =1;
|
|
68
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
message GetMaterialGroupByIdResponse {
|
|
72
|
-
MaterialGroup material_group = 1;
|
|
73
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message GetListMaterialGroupResponse {
|
|
77
|
-
repeated MaterialGroup material_groups = 1;
|
|
78
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
79
|
-
}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/material_type";
|
|
4
|
-
|
|
5
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
-
|
|
7
|
-
//package prisca.v1.unit_of_measurement;
|
|
8
|
-
|
|
9
|
-
// Unit of Measurement Service
|
|
10
|
-
service MaterialTypeService {
|
|
11
|
-
rpc CreateMaterialType(MaterialTypeRequest) returns (MaterialTypeResponse);
|
|
12
|
-
rpc GetMaterialTypeList(MaterialTypeListRequest) returns (MaterialTypeListResponse);
|
|
13
|
-
rpc GetMaterialTypeById(MaterialTypeGetByIdRequest) returns (MaterialTypeGetByIdResponse);
|
|
14
|
-
rpc UpdateMaterialType(MaterialTypeUpdateRequest) returns (MaterialTypeUpdateResponse);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
// Base Model
|
|
18
|
-
message MaterialType {
|
|
19
|
-
int64 id = 1;
|
|
20
|
-
string material_type_code =2;
|
|
21
|
-
string material_type_description =3;
|
|
22
|
-
string internal_number_range = 4;
|
|
23
|
-
string external_number_range =5;
|
|
24
|
-
repeated string department_user = 6;
|
|
25
|
-
string references_id = 7;
|
|
26
|
-
string created_at = 8; // Use ISO 8601 format for date strings
|
|
27
|
-
string updated_at = 9; // Optional, nullable
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
message BaseMaterial {
|
|
31
|
-
string material_type_code= 1;
|
|
32
|
-
string material_type_description =2;
|
|
33
|
-
string internal_number_range = 3;
|
|
34
|
-
string external_number_range =4;
|
|
35
|
-
repeated string department_user = 5;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
// Request Messages
|
|
39
|
-
message MaterialTypeRequest {
|
|
40
|
-
BaseMaterial material_type = 1;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message MaterialTypeListRequest {
|
|
44
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
45
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message MaterialTypeGetByIdRequest {
|
|
49
|
-
string references_id =1;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message MaterialTypeUpdateRequest {
|
|
53
|
-
string references_id =1;
|
|
54
|
-
BaseMaterial material_type = 2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
// Response Messages
|
|
58
|
-
message MaterialTypeResponse {
|
|
59
|
-
MaterialType material_type =1;
|
|
60
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
message MaterialTypeListResponse {
|
|
64
|
-
repeated MaterialType material_type =1;
|
|
65
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
message MaterialTypeGetByIdResponse {
|
|
69
|
-
MaterialType material_type = 1;
|
|
70
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
message MaterialTypeUpdateResponse {
|
|
74
|
-
MaterialType material_type = 1;
|
|
75
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
76
|
-
}
|
|
77
|
-
|