@aldiokta/protocgen 1.1.23 → 1.1.24
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/account_assignment/account_assignment_grpc_pb.js +199 -0
- package/prisca/v1/account_assignment/account_assignment_pb.js +2726 -0
- package/prisca/v1/account_group/account_group_grpc_pb.js +200 -0
- package/prisca/v1/account_group/account_group_pb.js +2989 -0
- package/prisca/v1/bidding/bidding_grpc_pb.js +294 -0
- package/prisca/v1/bidding/bidding_pb.js +7488 -0
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +199 -0
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +2959 -0
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +544 -0
- package/prisca/v1/core/access_manager/access_manager_pb.js +9383 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +423 -0
- package/prisca/v1/core/auth/auth_pb.js +4497 -0
- package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +111 -0
- package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +1531 -0
- package/prisca/v1/core/company/company_grpc_pb.js +178 -0
- package/prisca/v1/core/company/company_pb.js +3100 -0
- package/prisca/v1/core/currency/currency_grpc_pb.js +177 -0
- package/prisca/v1/core/currency/currency_pb.js +2522 -0
- package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
- package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
- package/prisca/v1/core/employee/employee_grpc_pb.js +206 -0
- package/prisca/v1/core/employee/employee_pb.js +4335 -0
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +44 -0
- package/prisca/v1/core/file_upload/file_upload_pb.js +1052 -0
- package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +177 -0
- package/prisca/v1/core/incoterm/incoterm_pb.js +2904 -0
- package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +1 -0
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +4270 -0
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
- package/prisca/v1/core/job_grade/job_grade_pb.js +2657 -0
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
- package/prisca/v1/core/job_position/job_position_pb.js +3814 -0
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
- package/prisca/v1/core/job_title/job_title_pb.js +3010 -0
- package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +78 -0
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +2087 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +200 -0
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +3251 -0
- package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +177 -0
- package/prisca/v1/core/link_data_source/link_data_source_pb.js +2612 -0
- package/prisca/v1/core/location/location_grpc_pb.js +837 -0
- package/prisca/v1/core/location/location_pb.js +10879 -0
- package/prisca/v1/core/material/material_grpc_pb.js +182 -0
- package/prisca/v1/core/material/material_pb.js +4232 -0
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +178 -0
- package/prisca/v1/core/material_group/material_group_pb.js +2828 -0
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +182 -0
- package/prisca/v1/core/material_type/material_type_pb.js +3104 -0
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +177 -0
- package/prisca/v1/core/messaging/email_template_pb.js +2552 -0
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +56 -0
- package/prisca/v1/core/messaging/messaging_pb.js +896 -0
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +178 -0
- package/prisca/v1/core/number_range/number_range_pb.js +2978 -0
- package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
- package/prisca/v1/core/organization/organization_pb.js +3084 -0
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +178 -0
- package/prisca/v1/core/organization_level/organization_level_pb.js +2597 -0
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +179 -0
- package/prisca/v1/core/price_condition/price_condition_pb.js +3061 -0
- package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
- package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
- package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
- package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
- package/prisca/v1/core/report/report_grpc_pb.js +200 -0
- package/prisca/v1/core/report/report_pb.js +2822 -0
- package/prisca/v1/core/report/user_report_grpc_pb.js +179 -0
- package/prisca/v1/core/report/user_report_pb.js +2452 -0
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
- package/prisca/v1/core/tax_code/tax_code_pb.js +2784 -0
- package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +177 -0
- package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +2512 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +498 -0
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +10976 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2850 -0
- package/prisca/v1/core/users/users_grpc_pb.js +78 -0
- package/prisca/v1/core/users/users_pb.js +1653 -0
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
- package/prisca/v1/core/work_location/work_location_pb.js +4024 -0
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +203 -0
- package/prisca/v1/core/workflow/workflow_pb.js +7577 -0
- package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +229 -0
- package/prisca/v1/delivery_order/delivery_order_pb.js +4661 -0
- package/prisca/v1/document_type/document_type_grpc_pb.js +178 -0
- package/prisca/v1/document_type/document_type_pb.js +2798 -0
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +181 -0
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +3328 -0
- package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
- package/prisca/v1/global/meta/meta_pb.js +1179 -0
- package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +1 -0
- package/prisca/v1/good_receipt/good_receipt_pb.js +35 -0
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +228 -0
- package/prisca/v1/purchase_order/purchase_order_pb.js +5049 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +523 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +9917 -0
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +178 -0
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +2927 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +178 -0
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +2546 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +179 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +2590 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +145 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +2543 -0
- package/prisca/v1/quotation/quotation_grpc_pb.js +207 -0
- package/prisca/v1/quotation/quotation_pb.js +3582 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +193 -0
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +5961 -0
- package/prisca/v1/valuation/valuation_grpc_pb.js +366 -0
- package/prisca/v1/valuation/valuation_pb.js +7812 -0
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +224 -0
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +6363 -0
- package/prisca/v1/account_assignment/account_assignment.proto +0 -81
- package/prisca/v1/account_group/account_group.proto +0 -88
- package/prisca/v1/bidding/bidding.proto +0 -221
- package/prisca/v1/chart_of_account/chart_of_account.proto +0 -89
- package/prisca/v1/core/access_manager/access_manager.proto +0 -281
- package/prisca/v1/core/auth/auth.proto +0 -150
- package/prisca/v1/core/chat_messaging/chat_messaging.proto +0 -55
- package/prisca/v1/core/company/company.proto +0 -92
- package/prisca/v1/core/currency/currency.proto +0 -76
- package/prisca/v1/core/department_material/department_material.proto +0 -69
- package/prisca/v1/core/employee/employee.proto +0 -129
- package/prisca/v1/core/file_upload/file_upload.proto +0 -37
- package/prisca/v1/core/incoterm/incoterm.proto +0 -85
- package/prisca/v1/core/item_transaction/item_transaction.proto +0 -134
- package/prisca/v1/core/job_grade/job_grade.proto +0 -79
- package/prisca/v1/core/job_position/job_position.proto +0 -113
- package/prisca/v1/core/job_title/job_title.proto +0 -89
- package/prisca/v1/core/line_of_activity/line_of_activity.proto +0 -66
- package/prisca/v1/core/line_of_approval/line_of_approval.proto +0 -96
- package/prisca/v1/core/link_data_source/link_data_source.proto +0 -78
- package/prisca/v1/core/location/location.proto +0 -289
- package/prisca/v1/core/material/material.proto +0 -131
- package/prisca/v1/core/material_group/material_group.proto +0 -85
- package/prisca/v1/core/material_type/material_type.proto +0 -95
- package/prisca/v1/core/messaging/email_template.proto +0 -75
- package/prisca/v1/core/messaging/messaging.proto +0 -29
- package/prisca/v1/core/number_range/number_range.proto +0 -89
- package/prisca/v1/core/organization/organization.proto +0 -94
- package/prisca/v1/core/organization_level/organization_level.proto +0 -77
- package/prisca/v1/core/price_condition/price_condition.proto +0 -93
- package/prisca/v1/core/procurement/procurement.proto +0 -54
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
- package/prisca/v1/core/report/report.proto +0 -90
- package/prisca/v1/core/report/user_report.proto +0 -74
- package/prisca/v1/core/tax_code/tax_code.proto +0 -82
- package/prisca/v1/core/term_of_payment/term_of_payment.proto +0 -74
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -325
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
- package/prisca/v1/core/users/users.proto +0 -55
- package/prisca/v1/core/work_location/work_location.proto +0 -122
- package/prisca/v1/core/workflow/workflow.proto +0 -218
- package/prisca/v1/delivery_order/delivery_order.proto +0 -147
- package/prisca/v1/document_type/document_type.proto +0 -82
- package/prisca/v1/general_ledger_account/general_ledger_account.proto +0 -100
- package/prisca/v1/global/meta/meta.proto +0 -57
- package/prisca/v1/good_receipt/good_receipt.proto +0 -11
- package/prisca/v1/purchase_order/purchase_order.proto +0 -157
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +0 -306
- package/prisca/v1/purchasing_group/purchasing_group.proto +0 -89
- package/prisca/v1/purchasing_organization/purchasing_organization.proto +0 -79
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +0 -81
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +0 -80
- package/prisca/v1/quotation/quotation.proto +0 -118
- package/prisca/v1/request_for_quotation/request_for_quotation.proto +0 -174
- package/prisca/v1/valuation/valuation.proto +0 -223
- package/prisca/v1/vendor_domain/vendor_domain.proto +0 -226
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
syntax = "proto3";
|
|
3
|
-
|
|
4
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/line_of_activity";
|
|
5
|
-
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
|
|
8
|
-
service ActivityService {
|
|
9
|
-
rpc GetActivityLineOfApproval (ActivityRequest) returns (ActivityResponse);
|
|
10
|
-
rpc GetLineOfProcessFlow (ProcessFlowRequest) returns (ProcessFlowResponse);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
message LineOfActivity {
|
|
15
|
-
repeated Activity activity = 1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
message Activity {
|
|
19
|
-
string action = 1;
|
|
20
|
-
string actor = 2;
|
|
21
|
-
string document = 3;
|
|
22
|
-
string timestamp = 4;
|
|
23
|
-
string note = 5;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
message ActivityRequest {
|
|
27
|
-
string document_type = 1;
|
|
28
|
-
string doc_references_id = 2;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message DocumentRequest {
|
|
32
|
-
string documents_refereneces = 1;
|
|
33
|
-
string status = 2;
|
|
34
|
-
string created_at = 3;
|
|
35
|
-
string created_by = 4;
|
|
36
|
-
string updated_at = 5;
|
|
37
|
-
string updated_by = 6;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message ActivityResponse {
|
|
41
|
-
LineOfActivity line_of_activity = 1;
|
|
42
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
message ProcessFlowRequest {
|
|
46
|
-
string reference_id = 1;
|
|
47
|
-
string transaction_type = 2;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message ProcessFlowResponse {
|
|
51
|
-
repeated ProcessFlow process_flow = 1;
|
|
52
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message ProcessFlow {
|
|
56
|
-
string name = 1;
|
|
57
|
-
repeated ProcessFlowDetail details = 2;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message ProcessFlowDetail {
|
|
61
|
-
string transaction_number = 1;
|
|
62
|
-
string transaction_type = 2;
|
|
63
|
-
string transaction_status = 3;
|
|
64
|
-
string transaction_reference_id = 4;
|
|
65
|
-
string previous_transaction_reference_id = 5;
|
|
66
|
-
}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/line_of_approval";
|
|
4
|
-
|
|
5
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
-
import "prisca/v1/core/employee/employee.proto";
|
|
7
|
-
|
|
8
|
-
service LineOfApprovalService {
|
|
9
|
-
rpc CreateLineOfApproval(CreateLineOfApprovalRequest) returns (CreateLineOfApprovalResponse);
|
|
10
|
-
rpc UpdateLineOfApproval(UpdateLineOfApprovalRequest) returns (UpdateLineOfApprovalResponse);
|
|
11
|
-
rpc DeleteLineOfApproval(DeleteLineOfApprovalRequest) returns (DeleteLineOfApprovalResponse);
|
|
12
|
-
rpc GetLineOfApprovalById(GetLineOfApprovalByIdRequest) returns (GetLineOfApprovalByIdResponse);
|
|
13
|
-
rpc GetListLineOfApprovals(GetListLineOfApprovalRequest) returns (GetListLineOfApprovalResponse);
|
|
14
|
-
rpc GetListAllLineOfApprovals(GetListLineOfApprovalRequest) returns (GetListAllLineOfApprovalResponse);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
message LineOfApproval {
|
|
18
|
-
int32 id = 1;
|
|
19
|
-
string workflow_ref = 2;
|
|
20
|
-
string document_ref = 3;
|
|
21
|
-
string employees_ref_id = 4;
|
|
22
|
-
string status = 5;
|
|
23
|
-
string references_id = 6;
|
|
24
|
-
string created_at = 7; // ISO 8601 format
|
|
25
|
-
string updated_at = 8; // Nullable, ISO 8601 format
|
|
26
|
-
string document_type = 9;
|
|
27
|
-
optional Employee employees = 10;
|
|
28
|
-
string approval_note = 11;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
// Request Messages
|
|
32
|
-
message BaseLineOfApprovalRequest {
|
|
33
|
-
string status = 1; // Enum values: rejected, pending, approved
|
|
34
|
-
string approval_note = 2;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
message CreateLineOfApprovalRequest {
|
|
38
|
-
BaseLineOfApprovalRequest base_line_of_approval = 1;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
message UpdateLineOfApprovalRequest {
|
|
42
|
-
string references_id = 1;
|
|
43
|
-
BaseLineOfApprovalRequest base_line_of_approval = 2;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
message DeleteLineOfApprovalRequest {
|
|
47
|
-
string references_id = 1;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
message GetLineOfApprovalByIdRequest {
|
|
51
|
-
string references_id = 1;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
message GetListLineOfApprovalRequest {
|
|
55
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
56
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
// Response Messages
|
|
60
|
-
message CreateLineOfApprovalResponse {
|
|
61
|
-
LineOfApproval line_of_approval = 1;
|
|
62
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message UpdateLineOfApprovalResponse {
|
|
66
|
-
LineOfApproval line_of_approval = 1;
|
|
67
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message DeleteLineOfApprovalResponse {
|
|
71
|
-
string references_id = 1;
|
|
72
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
message GetLineOfApprovalByIdResponse {
|
|
76
|
-
LineOfApproval line_of_approval = 1;
|
|
77
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message GetListLineOfApprovalResponse {
|
|
81
|
-
repeated LineOfApproval line_of_approvals = 1;
|
|
82
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
83
|
-
}
|
|
84
|
-
message BaseListAllLineOfApproval {
|
|
85
|
-
optional LineOfApproval line_of_approval = 1;
|
|
86
|
-
string document_number = 2;
|
|
87
|
-
string title = 3;
|
|
88
|
-
string department = 4;
|
|
89
|
-
string status = 5;
|
|
90
|
-
string remarks = 6;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
message GetListAllLineOfApprovalResponse {
|
|
94
|
-
repeated BaseListAllLineOfApproval line_of_approvals = 1;
|
|
95
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
96
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/cherry/v1/core/link_data_source";
|
|
4
|
-
|
|
5
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
-
service LinkDataSourceService {
|
|
7
|
-
rpc CreateLinkDataSource (CreateLinkDataSourceReq) returns (CreateLinkDataSourceRes);
|
|
8
|
-
rpc UpdateLinkDataSource (UpdateLinkDataSourceReq) returns (UpdateLinkDataSourceRes);
|
|
9
|
-
rpc GetIdLinkDataSource (GetIdLinkDataSourceReq) returns (GetIdLinkDataSourceRes);
|
|
10
|
-
rpc GetListLinkDataSource (GetListLinkDataSourceReq) returns (GetListLinkDataSourceRes);
|
|
11
|
-
rpc DeleteLinkDatasource (DeleteLinkDataSourceReq) returns (DeleteLinkDataSourceRes);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
message LinkDataSource {
|
|
15
|
-
int64 id = 1;
|
|
16
|
-
string url = 2;
|
|
17
|
-
string name = 3;
|
|
18
|
-
string key = 4;
|
|
19
|
-
string auth_type = 5;
|
|
20
|
-
string references_id = 6;
|
|
21
|
-
string created_at = 7; // Use ISO 8601 format for date strings
|
|
22
|
-
string updated_at = 8; // Optional, nullable
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
message BaseLinkDataSourceReq {
|
|
26
|
-
string url = 1;
|
|
27
|
-
string key = 2;
|
|
28
|
-
string auth_key = 3;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
message CreateLinkDataSourceReq {
|
|
32
|
-
BaseLinkDataSourceReq base_link_data_source = 1;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
message UpdateLinkDataSourceReq {
|
|
36
|
-
int64 id = 1;
|
|
37
|
-
BaseLinkDataSourceReq base_link_data_source = 2;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message GetIdLinkDataSourceReq {
|
|
41
|
-
int64 id = 1;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message DeleteLinkDataSourceReq {
|
|
45
|
-
int64 id = 1;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message GetListLinkDataSourceReq {
|
|
49
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
50
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// response
|
|
54
|
-
|
|
55
|
-
message CreateLinkDataSourceRes {
|
|
56
|
-
LinkDataSource link_data_source = 1;
|
|
57
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message UpdateLinkDataSourceRes {
|
|
61
|
-
LinkDataSource link_data_source = 1;
|
|
62
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message GetIdLinkDataSourceRes {
|
|
66
|
-
LinkDataSource link_data_source = 1;
|
|
67
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message DeleteLinkDataSourceRes {
|
|
71
|
-
int64 id = 1;
|
|
72
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
message GetListLinkDataSourceRes {
|
|
76
|
-
repeated LinkDataSource link_data_source = 1;
|
|
77
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
78
|
-
}
|
|
@@ -1,289 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/location";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
|
|
8
|
-
service LocationService {
|
|
9
|
-
rpc CreateCountry(CreateCountryRequest) returns (CreateCountryResponse);
|
|
10
|
-
rpc GetCountry(GetCountryRequest) returns (GetCountryResponse);
|
|
11
|
-
rpc GetCountryById(CountryGetByIdRequest) returns (CountryGetByIdResponse);
|
|
12
|
-
rpc UpdateCountry(UpdateCountryRequest) returns (UpdateCountryResponse);
|
|
13
|
-
rpc DeleteCountry(DeleteCountryRequest) returns (DeleteCountryResponse);
|
|
14
|
-
|
|
15
|
-
rpc CreateProvince(CreateProvinceRequest) returns (CreateProvinceResponse);
|
|
16
|
-
rpc GetProvince(GetProvinceRequest) returns (GetProvinceResponse);
|
|
17
|
-
rpc GetProvinceById(ProvinceGetByIdRequest) returns (ProvinceGetByIdResponse);
|
|
18
|
-
rpc UpdateProvince(UpdateProvinceRequest) returns (UpdateProvinceResponse);
|
|
19
|
-
rpc DeleteProvince(DeleteProvinceRequest) returns (DeleteProvinceResponse);
|
|
20
|
-
|
|
21
|
-
rpc CreateCity(CreateCityRequest) returns (CreateCityResponse);
|
|
22
|
-
rpc GetCity(GetCityRequest) returns (GetCityResponse);
|
|
23
|
-
rpc GetCityById(CityGetByIdRequest) returns (CityGetByIdResponse);
|
|
24
|
-
rpc UpdateCity(UpdateCityRequest) returns (UpdateCityResponse);
|
|
25
|
-
rpc DeleteCity(DeleteCityRequest) returns (DeleteCityResponse);
|
|
26
|
-
|
|
27
|
-
rpc CreateDistrict(CreateDistrictRequest) returns (CreateDistrictResponse);
|
|
28
|
-
rpc GetDistrict(GetDistrictRequest) returns (GetDistrictResponse);
|
|
29
|
-
rpc GetDistrictById(DistrictGetByIdRequest) returns (DistrictGetByIdResponse);
|
|
30
|
-
rpc UpdateDistrict(UpdateDistrictRequest) returns (UpdateDistrictResponse);
|
|
31
|
-
rpc DeleteDistrict(DeleteDistrictRequest) returns (DeleteDistrictResponse);
|
|
32
|
-
|
|
33
|
-
rpc CreateVillage(CreateVillageRequest) returns (CreateVillageResponse);
|
|
34
|
-
rpc GetVillage(GetVillageRequest) returns (GetVillageResponse);
|
|
35
|
-
rpc GetVillageById(VillageGetByIdRequest) returns (VillageGetByIdResponse);
|
|
36
|
-
rpc UpdateVillage(UpdateVillageRequest) returns (UpdateVillageResponse);
|
|
37
|
-
rpc DeleteVillage(DeleteVillageRequest) returns (DeleteVillageResponse);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message Country {
|
|
41
|
-
string name = 1;
|
|
42
|
-
string references_id = 2;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
message BaseCountry {
|
|
46
|
-
string name = 1;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
message Province {
|
|
50
|
-
string name = 1;
|
|
51
|
-
string country_references_id = 2;
|
|
52
|
-
string references_id = 3;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
message City {
|
|
56
|
-
string name = 1;
|
|
57
|
-
string province_references_id = 2;
|
|
58
|
-
string references_id = 3;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
message District {
|
|
62
|
-
string name = 1;
|
|
63
|
-
string city_references_id = 2;
|
|
64
|
-
string references_id = 3;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
message Village {
|
|
68
|
-
string name = 1;
|
|
69
|
-
string district_references_id = 2;
|
|
70
|
-
string references_id = 3;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
message GetCountryRequest {
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message CountryGetByIdRequest {
|
|
77
|
-
string references_id =1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message UpdateCountryRequest {
|
|
81
|
-
string references_id =1;
|
|
82
|
-
BaseCountry country = 2;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message GetProvinceRequest {
|
|
86
|
-
string country_references_id =1;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message GetCityRequest {
|
|
90
|
-
string province_references_id =1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
message GetDistrictRequest {
|
|
94
|
-
string city_references_id =1;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
message GetVillageRequest {
|
|
98
|
-
string district_references_id =1;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
message CreateCountryRequest {
|
|
102
|
-
BaseCountry country = 1;
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
message ProvinceGetByIdRequest {
|
|
106
|
-
string references_id =1;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
message UpdateProvinceRequest {
|
|
110
|
-
string references_id =1;
|
|
111
|
-
Province province = 2;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
message DeleteCountryRequest {
|
|
115
|
-
string references_id =1;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
message DeleteProvinceRequest {
|
|
119
|
-
string references_id =1;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
message CreateProvinceRequest {
|
|
123
|
-
Province province = 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
message CreateCityRequest {
|
|
127
|
-
City city = 1;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
message CityGetByIdRequest {
|
|
131
|
-
string references_id =1;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
message UpdateCityRequest {
|
|
135
|
-
string references_id =1;
|
|
136
|
-
City city = 2;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
message DeleteCityRequest {
|
|
140
|
-
string references_id =1;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
message CreateDistrictRequest {
|
|
144
|
-
District district = 1;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
message DistrictGetByIdRequest {
|
|
148
|
-
string references_id =1;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
message UpdateDistrictRequest {
|
|
152
|
-
string references_id =1;
|
|
153
|
-
District district = 2;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
message DeleteDistrictRequest {
|
|
157
|
-
string references_id =1;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
message CreateVillageRequest {
|
|
161
|
-
Village village = 1;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
message VillageGetByIdRequest {
|
|
165
|
-
string references_id =1;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
message UpdateVillageRequest {
|
|
169
|
-
string references_id =1;
|
|
170
|
-
Village village = 2;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
message DeleteVillageRequest {
|
|
174
|
-
string references_id =1;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
// response
|
|
178
|
-
message DeleteVillageResponse {
|
|
179
|
-
string references_id =1;
|
|
180
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
181
|
-
}
|
|
182
|
-
message UpdateVillageResponse {
|
|
183
|
-
Village village = 1;
|
|
184
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
185
|
-
}
|
|
186
|
-
message VillageGetByIdResponse {
|
|
187
|
-
Village village = 1;
|
|
188
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
189
|
-
}
|
|
190
|
-
message CreateVillageResponse {
|
|
191
|
-
Village village = 1;
|
|
192
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
193
|
-
}
|
|
194
|
-
message DeleteDistrictResponse {
|
|
195
|
-
string references_id =1;
|
|
196
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
197
|
-
}
|
|
198
|
-
message UpdateDistrictResponse {
|
|
199
|
-
District district = 1;
|
|
200
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
201
|
-
}
|
|
202
|
-
message DistrictGetByIdResponse {
|
|
203
|
-
District district = 1;
|
|
204
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
205
|
-
}
|
|
206
|
-
message CreateDistrictResponse {
|
|
207
|
-
District district = 1;
|
|
208
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
209
|
-
}
|
|
210
|
-
message DeleteCityResponse {
|
|
211
|
-
string references_id =1;
|
|
212
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
213
|
-
}
|
|
214
|
-
message UpdateCityResponse {
|
|
215
|
-
City city = 1;
|
|
216
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
217
|
-
}
|
|
218
|
-
message CityGetByIdResponse {
|
|
219
|
-
City city = 1;
|
|
220
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
221
|
-
}
|
|
222
|
-
message CreateCityResponse {
|
|
223
|
-
City city = 1;
|
|
224
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
225
|
-
}
|
|
226
|
-
message CreateProvinceResponse {
|
|
227
|
-
Province province = 1;
|
|
228
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
message DeleteProvinceResponse {
|
|
232
|
-
string references_id =1;
|
|
233
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
message DeleteCountryResponse {
|
|
237
|
-
string references_id =1;
|
|
238
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
239
|
-
}
|
|
240
|
-
|
|
241
|
-
message UpdateProvinceResponse {
|
|
242
|
-
Province province = 1;
|
|
243
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
message ProvinceGetByIdResponse {
|
|
247
|
-
Province province = 1;
|
|
248
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
message GetCountryResponse {
|
|
252
|
-
repeated Country country = 1;
|
|
253
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
message GetProvinceResponse {
|
|
257
|
-
repeated Province province = 1;
|
|
258
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
message GetCityResponse {
|
|
262
|
-
repeated City city = 1;
|
|
263
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
message GetDistrictResponse {
|
|
267
|
-
repeated District district = 1;
|
|
268
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
message GetVillageResponse {
|
|
272
|
-
repeated Village village = 1;
|
|
273
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
message CreateCountryResponse {
|
|
277
|
-
Country country = 1;
|
|
278
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
message UpdateCountryResponse {
|
|
282
|
-
Country country = 1;
|
|
283
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
message CountryGetByIdResponse {
|
|
287
|
-
Country country = 1;
|
|
288
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
289
|
-
}
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/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/employee/employee.proto";
|
|
12
|
-
//import "prisca/v1/core/department_material/department_material.proto";
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
service MaterialService {
|
|
17
|
-
rpc CreateMaterial(CreateMaterialRequest) returns (CreateMaterialResponse);
|
|
18
|
-
rpc UpdateMaterial(UpdateMaterialRequest) returns (UpdateMaterialResponse);
|
|
19
|
-
rpc DeleteMaterial(DeleteMaterialRequest) returns (DeleteMaterialResponse);
|
|
20
|
-
rpc GetMaterialById(GetMaterialByIdRequest) returns (GetMaterialByIdResponse);
|
|
21
|
-
rpc GetListMaterials(GetListMaterialRequest) returns (GetListMaterialResponse);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
message Material {
|
|
25
|
-
int64 id = 1;
|
|
26
|
-
string material_code = 2;
|
|
27
|
-
string material_description = 3;
|
|
28
|
-
string material_category = 4;
|
|
29
|
-
string old_product_number = 5;
|
|
30
|
-
string material_group_ref = 6;
|
|
31
|
-
string references_id = 7;
|
|
32
|
-
repeated MaterialLanguageDescription language_description = 8;
|
|
33
|
-
string created_by = 9;
|
|
34
|
-
string updated_by = 10;
|
|
35
|
-
string created_at = 11; // ISO 8601 format
|
|
36
|
-
string updated_at = 12; // Nullable, ISO 8601 format
|
|
37
|
-
string base_unit_of_measure_ref = 13;
|
|
38
|
-
optional UnitOfMeasure base_unit_of_measure = 14;
|
|
39
|
-
repeated MaterialUOM unit_of_measure = 15;
|
|
40
|
-
optional MaterialType material_type = 16;
|
|
41
|
-
optional MaterialGroup material_group = 17;
|
|
42
|
-
string material_plant_ref = 18;
|
|
43
|
-
optional WorkLocation material_plant = 19;
|
|
44
|
-
string material_type_code_ref = 20;
|
|
45
|
-
string number_range_sequence = 21;
|
|
46
|
-
string companies_references_id = 22;
|
|
47
|
-
optional Employee created_by_employee = 23;
|
|
48
|
-
optional Employee updated_by_employee = 24;
|
|
49
|
-
// int64 department_material_ref = 6;
|
|
50
|
-
// optional DepartmentMaterial department_material = 16;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
message MaterialLanguageDescription {
|
|
54
|
-
string language = 1;
|
|
55
|
-
string title = 2;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
message MaterialUOM {
|
|
59
|
-
int64 material_id = 1;
|
|
60
|
-
int64 uom_id = 2;
|
|
61
|
-
string unit_conversion = 3;
|
|
62
|
-
string unit =4;
|
|
63
|
-
string uom_references_id = 5;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
message MaterialUOMRequest {
|
|
67
|
-
string uom_references_id = 1;
|
|
68
|
-
string unit_conversion = 2;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
// Request Messages
|
|
72
|
-
message BaseMaterialRequest {
|
|
73
|
-
string material_code = 1;
|
|
74
|
-
string material_type_code_ref = 2;
|
|
75
|
-
string material_description = 3;
|
|
76
|
-
string material_category = 4;
|
|
77
|
-
string old_product_number = 5;
|
|
78
|
-
string material_group_ref = 6;
|
|
79
|
-
repeated MaterialLanguageDescription language_description = 7;
|
|
80
|
-
repeated MaterialUOMRequest unit_of_measure = 8;
|
|
81
|
-
string material_plant_ref = 9;
|
|
82
|
-
string base_unit_of_measure_ref = 10;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message CreateMaterialRequest {
|
|
86
|
-
BaseMaterialRequest base_material = 1;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message UpdateMaterialRequest {
|
|
90
|
-
string references_id =1;
|
|
91
|
-
BaseMaterialRequest base_material = 2;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message DeleteMaterialRequest {
|
|
95
|
-
repeated string reference_ids = 1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message GetMaterialByIdRequest {
|
|
99
|
-
string references_id =1;
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
message GetListMaterialRequest {
|
|
103
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
104
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Response Messages
|
|
108
|
-
message CreateMaterialResponse {
|
|
109
|
-
Material material = 1;
|
|
110
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
message UpdateMaterialResponse {
|
|
114
|
-
Material material = 1;
|
|
115
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
message DeleteMaterialResponse {
|
|
119
|
-
repeated string reference_ids = 1;
|
|
120
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
message GetMaterialByIdResponse {
|
|
124
|
-
Material material = 1;
|
|
125
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
message GetListMaterialResponse {
|
|
129
|
-
repeated Material materials = 1;
|
|
130
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
131
|
-
}
|