@aldiokta/protocgen 1.1.23 → 1.1.25
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 +4330 -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 +2664 -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,88 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/unit_of_measurement";
|
|
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 UnitOfMeasurementService {
|
|
11
|
-
rpc CreateUnitOfMeasurement(CreateUnitOfMeasureRequest) returns (CreateUnitOfMeasureResponse);
|
|
12
|
-
rpc GetUnitOfMeasurementById(GetUnitOfMeasureByIdRequest) returns (GetUnitOfMeasureByIdResponse);
|
|
13
|
-
rpc GetListUnitOfMeasurements(GetListUnitOfMeasureRequest) returns (GetListUnitOfMeasureResponse);
|
|
14
|
-
rpc UpdateUnitOfMeasurement(UpdateUnitOfMeasureRequest) returns (UpdateUnitOfMeasureResponse);
|
|
15
|
-
rpc DeleteUnitOfMeasurement(DeleteUnitOfMeasureRequest) returns (DeleteUnitOfMeasureResponse);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
// Base Model
|
|
19
|
-
message UnitOfMeasure {
|
|
20
|
-
int64 id = 1;
|
|
21
|
-
string unit = 2;
|
|
22
|
-
string commercial = 3;
|
|
23
|
-
string technical = 4;
|
|
24
|
-
string commercial_description = 5;
|
|
25
|
-
string technical_description = 6;
|
|
26
|
-
bool is_active = 7;
|
|
27
|
-
string references_id = 8;
|
|
28
|
-
string created_at = 9; // Use ISO 8601 format for date strings
|
|
29
|
-
string updated_at = 10; // Optional, nullable
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// Request Messages
|
|
33
|
-
message BaseUnitOfMeasureRequest {
|
|
34
|
-
string unit = 1;
|
|
35
|
-
string commercial = 2;
|
|
36
|
-
string technical = 3;
|
|
37
|
-
optional string commercial_description= 4;
|
|
38
|
-
optional string technical_description= 5;
|
|
39
|
-
bool is_active = 6;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message CreateUnitOfMeasureRequest {
|
|
43
|
-
BaseUnitOfMeasureRequest base_unit_of_measure = 1;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
message UpdateUnitOfMeasureRequest {
|
|
47
|
-
string references_id =1;
|
|
48
|
-
BaseUnitOfMeasureRequest base_unit_of_measure = 2;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
message GetListUnitOfMeasureRequest {
|
|
52
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
53
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
message GetUnitOfMeasureByIdRequest {
|
|
57
|
-
string references_id =1;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
message DeleteUnitOfMeasureRequest {
|
|
61
|
-
repeated string reference_ids = 1;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Response Messages
|
|
65
|
-
message CreateUnitOfMeasureResponse {
|
|
66
|
-
UnitOfMeasure unit_of_measure = 1;
|
|
67
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message UpdateUnitOfMeasureResponse {
|
|
71
|
-
UnitOfMeasure unit_of_measure = 1;
|
|
72
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
message GetListUnitOfMeasureResponse {
|
|
76
|
-
repeated UnitOfMeasure unit_of_measures = 1;
|
|
77
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message GetUnitOfMeasureByIdResponse {
|
|
81
|
-
UnitOfMeasure unit_of_measure = 1;
|
|
82
|
-
prisca.v1.global.meta.Meta meta =2;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
message DeleteUnitOfMeasureResponse {
|
|
86
|
-
repeated string reference_ids = 1;
|
|
87
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
88
|
-
}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/users";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
|
|
8
|
-
message Users {
|
|
9
|
-
int32 id = 1;
|
|
10
|
-
string references_id = 2;
|
|
11
|
-
string name = 3;
|
|
12
|
-
string gender_ref_id = 4;
|
|
13
|
-
string phone_number = 5;
|
|
14
|
-
string email = 6;
|
|
15
|
-
string role_ref_id = 7;
|
|
16
|
-
string credential = 8;
|
|
17
|
-
string last_login = 9;
|
|
18
|
-
string last_credential_renewal = 10;
|
|
19
|
-
string device_mobile_id = 11;
|
|
20
|
-
string device_dekstop_id = 12;
|
|
21
|
-
string created_by = 13;
|
|
22
|
-
string updated_by = 14;
|
|
23
|
-
string created_at = 15;
|
|
24
|
-
string updated_at = 16;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
service UserService {
|
|
28
|
-
rpc UpdateUser(UpdateUserRequest) returns (UpdateUserResponse);
|
|
29
|
-
rpc DeleteUser(DeleteUserRequest) returns (DeleteUserResponse);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
message UpdateUser {
|
|
33
|
-
string name = 1;
|
|
34
|
-
string phone_number = 2;
|
|
35
|
-
string email = 3;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
message UpdateUserRequest {
|
|
39
|
-
UpdateUser user = 1;
|
|
40
|
-
string references_id = 2;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
message UpdateUserResponse {
|
|
44
|
-
string references_id = 1;
|
|
45
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
message DeleteUserRequest {
|
|
49
|
-
repeated string reference_ids = 1;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message DeleteUserResponse {
|
|
53
|
-
repeated string reference_ids = 1;
|
|
54
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
55
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/work_location";
|
|
4
|
-
|
|
5
|
-
// Importing necessary dependencies
|
|
6
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
-
import "prisca/v1/core/location/location.proto";
|
|
8
|
-
import "prisca/v1/core/company/company.proto";
|
|
9
|
-
|
|
10
|
-
service WorkLocationService {
|
|
11
|
-
rpc CreateWorkLocation(CreateWorkLocationRequest) returns (CreateWorkLocationResponse);
|
|
12
|
-
rpc UpdateWorkLocation(UpdateWorkLocationRequest) returns (UpdateWorkLocationResponse);
|
|
13
|
-
rpc DeleteWorkLocation(DeleteWorkLocationRequest) returns (DeleteWorkLocationResponse);
|
|
14
|
-
rpc GetWorkLocationById(WorkLocationGetByIdRequest) returns (WorkLocationGetByIdResponse);
|
|
15
|
-
rpc GetListWorkLocation(GetListWorkLocationRequest) returns (GetListWorkLocationResponse);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
message WorkLocation {
|
|
19
|
-
string companies_references_id = 1;
|
|
20
|
-
string code = 2;
|
|
21
|
-
string location_name = 3;
|
|
22
|
-
string alias = 4;
|
|
23
|
-
string address = 5;
|
|
24
|
-
string letter_address_line1 = 6;
|
|
25
|
-
string letter_address_line2 = 7;
|
|
26
|
-
string letter_address_line3 = 8;
|
|
27
|
-
string phone_number = 9;
|
|
28
|
-
string email = 10;
|
|
29
|
-
string npwp = 11;
|
|
30
|
-
string npwp_address = 12;
|
|
31
|
-
double latitude = 13;
|
|
32
|
-
double longitude = 14;
|
|
33
|
-
int64 radius = 15;
|
|
34
|
-
string country_references_id = 16;
|
|
35
|
-
string village_references_id = 17;
|
|
36
|
-
string city_references_id = 18;
|
|
37
|
-
string district_references_id = 19;
|
|
38
|
-
string province_references_id = 20;
|
|
39
|
-
string area_references_id = 21;
|
|
40
|
-
string tax_office_location = 22;
|
|
41
|
-
string references_id = 23;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
message BaseWorkLocation {
|
|
45
|
-
string code = 1;
|
|
46
|
-
string location_name = 2;
|
|
47
|
-
string alias = 3;
|
|
48
|
-
string address = 4;
|
|
49
|
-
string letter_address_line1 = 5;
|
|
50
|
-
string letter_address_line2 = 6;
|
|
51
|
-
string letter_address_line3 = 7;
|
|
52
|
-
string phone_number = 8;
|
|
53
|
-
string email = 9;
|
|
54
|
-
string npwp = 10;
|
|
55
|
-
string npwp_address = 11;
|
|
56
|
-
double latitude = 12;
|
|
57
|
-
double longitude = 13;
|
|
58
|
-
int64 radius = 14;
|
|
59
|
-
string country_references_id = 15;
|
|
60
|
-
Country country = 16;
|
|
61
|
-
string village_references_id = 17;
|
|
62
|
-
Village village = 18;
|
|
63
|
-
string city_references_id = 19;
|
|
64
|
-
City city = 20;
|
|
65
|
-
string district_references_id = 21;
|
|
66
|
-
District district = 22;
|
|
67
|
-
string province_references_id = 23;
|
|
68
|
-
Province province = 24;
|
|
69
|
-
string area_references_id = 25;
|
|
70
|
-
string tax_office_location = 26;
|
|
71
|
-
string references_id = 27;
|
|
72
|
-
string companies_references_id = 28;
|
|
73
|
-
BaseCompanyParent company = 29;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
message WorkLocationGetByIdRequest {
|
|
77
|
-
string references_id =1;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
message CreateWorkLocationRequest {
|
|
81
|
-
WorkLocation work_location = 1;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
message UpdateWorkLocationRequest {
|
|
85
|
-
string references_id =1;
|
|
86
|
-
WorkLocation work_location = 2;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message DeleteWorkLocationRequest {
|
|
90
|
-
repeated string reference_ids = 1;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
message DeleteWorkLocationResponse {
|
|
94
|
-
repeated string reference_ids = 1;
|
|
95
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message GetListWorkLocationRequest {
|
|
99
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
100
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Response Messages
|
|
104
|
-
message CreateWorkLocationResponse {
|
|
105
|
-
WorkLocation work_location = 1;
|
|
106
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
message GetListWorkLocationResponse {
|
|
110
|
-
repeated BaseWorkLocation work_location = 1;
|
|
111
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
message UpdateWorkLocationResponse {
|
|
115
|
-
WorkLocation work_location = 1;
|
|
116
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
message WorkLocationGetByIdResponse {
|
|
120
|
-
BaseWorkLocation work_location = 1;
|
|
121
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
122
|
-
}
|
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/workflow";
|
|
4
|
-
|
|
5
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
-
import "prisca/v1/core/employee/employee.proto";
|
|
7
|
-
import "prisca/v1/core/job_position/job_position.proto";
|
|
8
|
-
import "prisca/v1/core/recipient_roles/recipient_roles.proto";
|
|
9
|
-
import "prisca/v1/core/job_title/job_title.proto";
|
|
10
|
-
|
|
11
|
-
service WorkflowService {
|
|
12
|
-
rpc CreateWorkflow(CreateWorkflowRequest) returns (CreateWorkflowResponse);
|
|
13
|
-
rpc CreateWorkflowDefault(CreateWorkflowRequestDefault)
|
|
14
|
-
returns (CreateWorkflowResponse);
|
|
15
|
-
rpc UpdateWorkflow(UpdateWorkflowRequest) returns (UpdateWorkflowResponse);
|
|
16
|
-
rpc DeleteWorkflow(DeleteWorkflowRequest) returns (DeleteWorkflowResponse);
|
|
17
|
-
rpc GetWorkflowById(GetWorkflowByIdRequest) returns (GetWorkflowByIdResponse);
|
|
18
|
-
rpc GetListWorkflows(GetListWorkflowRequest)
|
|
19
|
-
returns (GetListWorkflowResponse);
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
message Workflow {
|
|
23
|
-
int64 id = 1;
|
|
24
|
-
string name = 2;
|
|
25
|
-
string references_id = 3;
|
|
26
|
-
string description = 4;
|
|
27
|
-
string valid_from = 5; // ISO 8601 format
|
|
28
|
-
string valid_to = 6; // ISO 8601 format
|
|
29
|
-
string created_by = 7;
|
|
30
|
-
string updated_by = 8;
|
|
31
|
-
string created_at = 9; // ISO 8601 format
|
|
32
|
-
string updated_at = 10; // Nullable, ISO 8601 format
|
|
33
|
-
repeated WorkflowCondition workflow_condition = 11;
|
|
34
|
-
bool is_active = 12;
|
|
35
|
-
repeated WorkflowSteps workflow_steps = 13;
|
|
36
|
-
string workflow_type = 14;
|
|
37
|
-
string companies_references_id = 15;
|
|
38
|
-
optional Employee created_by_employee = 16;
|
|
39
|
-
optional Employee updated_by_employee = 17;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
message WorkflowCondition {
|
|
43
|
-
int64 id = 1;
|
|
44
|
-
string references_id = 2;
|
|
45
|
-
optional string workflow_ref_id = 3;
|
|
46
|
-
optional string workflow_steps_ref_id = 4;
|
|
47
|
-
string created_at = 5; // ISO 8601 format
|
|
48
|
-
string updated_at = 6; // Nullable, ISO 8601 format
|
|
49
|
-
repeated WorkflowCriteria workflow_criteria = 7;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message WorkflowCriteria {
|
|
53
|
-
int64 id = 1;
|
|
54
|
-
string references_id = 2;
|
|
55
|
-
string value = 3;
|
|
56
|
-
string workflow_condition_ref_id = 4;
|
|
57
|
-
string properties = 5;
|
|
58
|
-
string key = 6;
|
|
59
|
-
string operator = 7;
|
|
60
|
-
string created_at = 8; // ISO 8601 format
|
|
61
|
-
string updated_at = 9; // Nullable, ISO 8601 format
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
message WorkflowSteps {
|
|
65
|
-
int32 id = 1;
|
|
66
|
-
string references_id = 2;
|
|
67
|
-
string name = 3;
|
|
68
|
-
string step_type = 4;
|
|
69
|
-
string priority = 5;
|
|
70
|
-
bool is_optional_step = 6;
|
|
71
|
-
string exclude_restricted_agents = 7;
|
|
72
|
-
string action_result = 8;
|
|
73
|
-
string required_action = 9;
|
|
74
|
-
string redefine_task_title = 10;
|
|
75
|
-
string workflow_ref_id = 11;
|
|
76
|
-
string is_completed_by = 12;
|
|
77
|
-
repeated WorkflowDeadline deadlines = 13;
|
|
78
|
-
string created_at = 14;
|
|
79
|
-
string updated_at = 15;
|
|
80
|
-
repeated WorkflowCondition workflow_condition = 16;
|
|
81
|
-
int32 roles_ref_id = 17;
|
|
82
|
-
RecipientRoles roles = 18;
|
|
83
|
-
WorkflowStepsRecipients workflow_steps_recipients = 19;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
message WorkflowDeadline {
|
|
87
|
-
string deadline_context = 13;
|
|
88
|
-
string deadline_unit = 14;
|
|
89
|
-
int64 deadline_unit_counter = 15;
|
|
90
|
-
string deadline_effect = 16;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
message WorkflowStepsRecipients {
|
|
94
|
-
int32 id = 1;
|
|
95
|
-
string references_id = 2;
|
|
96
|
-
string workflow_steps_ref_id = 3;
|
|
97
|
-
optional string job_position_ref_id = 4;
|
|
98
|
-
optional string job_title_ref_id = 5;
|
|
99
|
-
repeated string employees_ref_id = 6;
|
|
100
|
-
string created_at = 7;
|
|
101
|
-
string updated_at = 8;
|
|
102
|
-
optional JobPosition job_position = 9;
|
|
103
|
-
repeated Employee employees = 10;
|
|
104
|
-
optional JobTitle job_title = 11;
|
|
105
|
-
}
|
|
106
|
-
// Request Messages
|
|
107
|
-
message BaseWorkflowRequest {
|
|
108
|
-
string name = 1;
|
|
109
|
-
string description = 2;
|
|
110
|
-
string valid_from = 3; // ISO 8601 format
|
|
111
|
-
string valid_to = 4; // ISO 8601 format
|
|
112
|
-
string created_by = 5; // ISO 8601 format
|
|
113
|
-
string updated_by = 6; // ISO 8601 format
|
|
114
|
-
repeated BaseWorkflowConditionRequest workflow_condition = 7;
|
|
115
|
-
repeated BaseWorkflowStepsRequest workflow_steps = 8;
|
|
116
|
-
bool is_active = 9;
|
|
117
|
-
string workflow_type = 10;
|
|
118
|
-
}
|
|
119
|
-
message BaseWorkflowRequestDefault {
|
|
120
|
-
string name = 1;
|
|
121
|
-
string description = 2;
|
|
122
|
-
string valid_from = 3; // ISO 8601 format
|
|
123
|
-
string valid_to = 4; // ISO 8601 format
|
|
124
|
-
string created_by = 5; // ISO 8601 format
|
|
125
|
-
string updated_by = 6; // ISO 8601 format
|
|
126
|
-
string employee_references_id = 7;
|
|
127
|
-
string companies_references_id = 8;
|
|
128
|
-
bool is_active = 9;
|
|
129
|
-
string workflow_type = 10;
|
|
130
|
-
}
|
|
131
|
-
// WorkflowCondition
|
|
132
|
-
// Request Messages
|
|
133
|
-
message BaseWorkflowConditionRequest {
|
|
134
|
-
repeated BaseWorkflowCriteriaRequest workflow_criteria = 1;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// WorkflowCriteria
|
|
138
|
-
// Request Messages
|
|
139
|
-
message BaseWorkflowCriteriaRequest {
|
|
140
|
-
string value = 1;
|
|
141
|
-
string properties = 2;
|
|
142
|
-
string key = 3;
|
|
143
|
-
string operator = 4;
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// WorkflowSteps
|
|
147
|
-
// Request Messages
|
|
148
|
-
message BaseWorkflowStepsRequest {
|
|
149
|
-
string name = 1;
|
|
150
|
-
string step_type = 2;
|
|
151
|
-
string priority = 3;
|
|
152
|
-
bool is_optional_step = 4;
|
|
153
|
-
string exclude_restricted_agents = 5;
|
|
154
|
-
string action_result = 6;
|
|
155
|
-
string required_action = 7;
|
|
156
|
-
string redefine_task_title = 8;
|
|
157
|
-
string is_completed_by = 9;
|
|
158
|
-
repeated WorkflowDeadline deadlines = 10;
|
|
159
|
-
repeated BaseWorkflowConditionRequest workflow_condition = 14;
|
|
160
|
-
BaseWorkflowStepsRecipientRequest workflow_steps_recipients = 15;
|
|
161
|
-
int32 roles_ref_id = 16;
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
// WorkflowStepsRecipients
|
|
165
|
-
// Request Messages
|
|
166
|
-
message BaseWorkflowStepsRecipientRequest {
|
|
167
|
-
optional string job_position_ref_id = 1;
|
|
168
|
-
repeated string employees_ref_id = 2;
|
|
169
|
-
optional string job_title_ref_id = 3;
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
message CreateWorkflowRequest { BaseWorkflowRequest base_workflow = 1; }
|
|
173
|
-
|
|
174
|
-
message CreateWorkflowRequestDefault {
|
|
175
|
-
BaseWorkflowRequestDefault base_workflow = 1;
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
message UpdateWorkflowRequest {
|
|
179
|
-
string references_id = 1;
|
|
180
|
-
BaseWorkflowRequest base_workflow = 2;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
message DeleteWorkflowRequest {
|
|
184
|
-
repeated string reference_ids = 1;
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
message GetWorkflowByIdRequest { string references_id = 1; }
|
|
188
|
-
|
|
189
|
-
message GetListWorkflowRequest {
|
|
190
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
191
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
// Response Messages
|
|
195
|
-
message CreateWorkflowResponse {
|
|
196
|
-
Workflow workflow = 1;
|
|
197
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
198
|
-
}
|
|
199
|
-
|
|
200
|
-
message UpdateWorkflowResponse {
|
|
201
|
-
Workflow workflow = 1;
|
|
202
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
message DeleteWorkflowResponse {
|
|
206
|
-
repeated string reference_ids = 1;
|
|
207
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
message GetWorkflowByIdResponse {
|
|
211
|
-
Workflow workflow = 1;
|
|
212
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
message GetListWorkflowResponse {
|
|
216
|
-
repeated Workflow workflows = 1;
|
|
217
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
218
|
-
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/delivery_order";
|
|
4
|
-
|
|
5
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
-
import "prisca/v1/core/file_upload/file_upload.proto";
|
|
7
|
-
import "prisca/v1/core/transaction_builder/transaction_builder.proto";
|
|
8
|
-
import "prisca/v1/core/item_transaction/item_transaction.proto";
|
|
9
|
-
import "prisca/v1/vendor_domain/vendor_domain.proto";
|
|
10
|
-
import "prisca/v1/core/employee/employee.proto";
|
|
11
|
-
import "prisca/v1/core/company/company.proto";
|
|
12
|
-
import "prisca/v1/purchase_order/purchase_order.proto";
|
|
13
|
-
//package prisca.v1.delivery_order_domain;
|
|
14
|
-
|
|
15
|
-
// Delivery Order Service
|
|
16
|
-
service DeliveryOrderService {
|
|
17
|
-
rpc CreateDeliveryOrder(CreateDeliveryOrderRequest) returns (CreateDeliveryOrderResponse);
|
|
18
|
-
rpc GetDeliveryOrderById(GetDeliveryOrderByIdRequest) returns (GetDeliveryOrderByIdResponse);
|
|
19
|
-
rpc GetDeliveryOrderByIdDetail(GetDeliveryOrderByIdRequest) returns (GetDeliveryOrderDetailResponse);
|
|
20
|
-
rpc GetListDeliveryOrders(GetListDeliveryOrderRequest) returns (GetListDeliveryOrderResponse);
|
|
21
|
-
rpc UpdateDeliveryOrder(UpdateDeliveryOrderRequest) returns (UpdateDeliveryOrderResponse);
|
|
22
|
-
rpc UpdateDeliveryOrderStatus(UpdateDeliveryOrderStatusRequest) returns (UpdateDeliveryOrderResponse);
|
|
23
|
-
rpc DeleteDeliveryOrder(DeleteDeliveryOrderRequest) returns (DeleteDeliveryOrderResponse);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
// Domain Model for DeliveryOrder
|
|
27
|
-
message DeliveryOrder {
|
|
28
|
-
int64 id = 1;
|
|
29
|
-
string department = 2; // flattened JSON
|
|
30
|
-
string title = 3;
|
|
31
|
-
string purchase_order_references_id = 4;
|
|
32
|
-
string vendor_references_id = 5;
|
|
33
|
-
string companies_references_id = 6;
|
|
34
|
-
string shipping_address = 7; // flattened JSON
|
|
35
|
-
string shipping_date = 8; // ISO 8601 format
|
|
36
|
-
string remarks = 9;
|
|
37
|
-
string references_id = 10; // UUID
|
|
38
|
-
string status = 11;
|
|
39
|
-
string created_at = 12; // ISO 8601
|
|
40
|
-
string updated_at = 13; // nullable
|
|
41
|
-
string created_by = 14;
|
|
42
|
-
string updated_by = 15;
|
|
43
|
-
string group_references = 16;
|
|
44
|
-
bool is_expired = 17;
|
|
45
|
-
string purchase_order_number = 18;
|
|
46
|
-
string sales_order_number = 19;
|
|
47
|
-
string file_ids = 20;
|
|
48
|
-
repeated FileUploadReferencesReq files = 21;
|
|
49
|
-
optional PurchaseOrder purchase_order = 22;
|
|
50
|
-
optional BaseCompany companies = 23;
|
|
51
|
-
optional Vendor vendor = 24;
|
|
52
|
-
repeated ItemTransaction item_transactions = 25;
|
|
53
|
-
optional Employee created_by_employee = 26;
|
|
54
|
-
optional Employee updated_by_employee = 27;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
// Order Messages
|
|
59
|
-
message BaseDeliveryOrderRequest {
|
|
60
|
-
string department = 1;
|
|
61
|
-
string title = 2;
|
|
62
|
-
string shipping_address = 3;
|
|
63
|
-
string references_id = 4;
|
|
64
|
-
string status = 5;
|
|
65
|
-
repeated FileUploadReferencesReq files = 6;
|
|
66
|
-
repeated BaseItemTransaction item_transactions = 7;
|
|
67
|
-
string created_by = 8;
|
|
68
|
-
string updated_by = 9;
|
|
69
|
-
string group_references = 10;
|
|
70
|
-
string companies_references_id = 11;
|
|
71
|
-
string purchase_order_references_id = 12;
|
|
72
|
-
string vendor_references_id = 13;
|
|
73
|
-
string shipping_date = 14; // ISO 8601 format
|
|
74
|
-
string remarks = 15;
|
|
75
|
-
string purchase_order_number = 16;
|
|
76
|
-
string sales_order_number = 17;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
message CreateDeliveryOrderRequest {
|
|
81
|
-
BaseDeliveryOrderRequest base_delivery_order = 1;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
message UpdateDeliveryOrderStatusRequest {
|
|
85
|
-
string status = 1;
|
|
86
|
-
string references_id = 2;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
message UpdateDeliveryOrderRequest {
|
|
90
|
-
string references_id = 1;
|
|
91
|
-
BaseDeliveryOrderRequest base_delivery_order = 2;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
message GetDeliveryOrderByIdRequest {
|
|
95
|
-
string references_id = 1;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
message GetListDeliveryOrderRequest {
|
|
99
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
100
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
message DeleteDeliveryOrderRequest {
|
|
104
|
-
string references_id = 1;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
// Response Messages
|
|
108
|
-
message CreateDeliveryOrderResponse {
|
|
109
|
-
DeliveryOrder delivery_order = 1;
|
|
110
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
message UpdateDeliveryOrderResponse {
|
|
114
|
-
DeliveryOrder delivery_order = 1;
|
|
115
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
message GetDeliveryOrderByIdResponse {
|
|
119
|
-
DeliveryOrder delivery_order = 1;
|
|
120
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
message GetDeliveryOrderDetailResponse {
|
|
124
|
-
repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder = 1;
|
|
125
|
-
repeated GetDeliveryOrderItemPreload transaction_builder_items = 2;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
message GetDeliveryOrderItemPreload {
|
|
129
|
-
repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item = 1;
|
|
130
|
-
repeated GetDeliveryOrderItemDetailPreload transaction_builder_item_details = 2;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
message GetDeliveryOrderItemDetailPreload {
|
|
134
|
-
repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
message GetListDeliveryOrderResponse {
|
|
138
|
-
repeated DeliveryOrder delivery_orders = 1;
|
|
139
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
message DeleteDeliveryOrderResponse {
|
|
143
|
-
string references_id = 1;
|
|
144
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
syntax = "proto3";
|
|
2
|
-
|
|
3
|
-
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/document_type;document_type";
|
|
4
|
-
|
|
5
|
-
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
-
import "prisca/v1/core/number_range/number_range.proto";
|
|
7
|
-
|
|
8
|
-
service DocumentTypeService {
|
|
9
|
-
rpc CreateDocumentType(CreateDocumentTypeRequest)
|
|
10
|
-
returns (CreateDocumentTypeResponse);
|
|
11
|
-
rpc UpdateDocumentType(UpdateDocumentTypeRequest)
|
|
12
|
-
returns (UpdateDocumentTypeResponse);
|
|
13
|
-
rpc GetDocumentTypeById(GetDocumentTypeByIdRequest)
|
|
14
|
-
returns (GetDocumentTypeByIdResponse);
|
|
15
|
-
rpc GetListDocumentTypes(GetListDocumentTypeRequest)
|
|
16
|
-
returns (GetListDocumentTypeResponse);
|
|
17
|
-
rpc DeleteDocumentType(DeleteDocumentTypeRequest)
|
|
18
|
-
returns (DeleteDocumentTypeResponse);
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
message DocumentType {
|
|
22
|
-
int32 id = 1;
|
|
23
|
-
string references_id = 2;
|
|
24
|
-
string code = 3;
|
|
25
|
-
string code_description = 4;
|
|
26
|
-
int32 integer_increment = 5;
|
|
27
|
-
string number_range_ref = 6;
|
|
28
|
-
string created_at = 7;
|
|
29
|
-
string updated_at = 8;
|
|
30
|
-
optional NumberRange number_range = 9;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
message BaseDocumentType {
|
|
34
|
-
string code = 1;
|
|
35
|
-
string code_description = 2;
|
|
36
|
-
int32 integer_increment = 3;
|
|
37
|
-
string number_range_ref = 4;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
message CreateDocumentTypeRequest { BaseDocumentType base_document_type = 1; }
|
|
41
|
-
|
|
42
|
-
message CreateDocumentTypeResponse {
|
|
43
|
-
DocumentType document_type = 1;
|
|
44
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
message UpdateDocumentTypeRequest {
|
|
48
|
-
string references_id = 1;
|
|
49
|
-
BaseDocumentType base_document_type = 2;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
message UpdateDocumentTypeResponse {
|
|
53
|
-
DocumentType document_type = 1;
|
|
54
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
message GetDocumentTypeByIdRequest { string references_id = 1; }
|
|
58
|
-
|
|
59
|
-
message GetDocumentTypeByIdResponse {
|
|
60
|
-
DocumentType document_type = 1;
|
|
61
|
-
optional NumberRange number_range = 2;
|
|
62
|
-
prisca.v1.global.meta.Meta meta = 3;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
message GetListDocumentTypeRequest {
|
|
66
|
-
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
67
|
-
prisca.v1.global.meta.FilterRequest query = 2;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
message GetListDocumentTypeResponse {
|
|
71
|
-
repeated DocumentType document_types = 1;
|
|
72
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
message DeleteDocumentTypeRequest {
|
|
76
|
-
repeated string reference_ids = 1;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
message DeleteDocumentTypeResponse {
|
|
80
|
-
repeated string reference_ids = 1;
|
|
81
|
-
prisca.v1.global.meta.Meta meta = 2;
|
|
82
|
-
}
|