@aldiokta/protocgen 1.1.9 → 1.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/prisca/v1/account_assignment/account_assignment.proto +79 -0
- package/prisca/v1/account_group/account_group.proto +86 -0
- package/prisca/v1/bidding/bidding.proto +159 -0
- package/prisca/v1/chart_of_account/chart_of_account.proto +87 -0
- package/prisca/v1/core/access_manager/access_manager.proto +281 -0
- package/prisca/v1/core/auth/auth.proto +150 -0
- package/prisca/v1/core/chat_messaging/chat_messaging.proto +55 -0
- package/prisca/v1/core/company/company.proto +92 -0
- package/prisca/v1/core/currency/currency.proto +76 -0
- package/prisca/v1/core/department_material/department_material.proto +69 -0
- package/prisca/v1/core/employee/employee.proto +129 -0
- package/prisca/v1/core/file_upload/file_upload.proto +31 -0
- package/prisca/v1/core/incoterm/incoterm.proto +76 -0
- package/prisca/v1/core/item_transaction/item_transaction.proto +120 -0
- package/prisca/v1/core/job_grade/job_grade.proto +79 -0
- package/prisca/v1/core/job_position/job_position.proto +113 -0
- package/prisca/v1/core/job_title/job_title.proto +89 -0
- package/prisca/v1/core/line_of_activity/line_of_activity.proto +42 -0
- package/prisca/v1/core/line_of_approval/line_of_approval.proto +94 -0
- package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
- package/prisca/v1/core/location/location.proto +289 -0
- package/prisca/v1/core/material/material.proto +131 -0
- package/prisca/v1/core/material_group/material_group.proto +85 -0
- package/prisca/v1/core/material_type/material_type.proto +86 -0
- package/prisca/v1/core/messaging/email_template.proto +75 -0
- package/prisca/v1/core/messaging/messaging.proto +29 -0
- package/prisca/v1/core/number_range/number_range.proto +89 -0
- package/prisca/v1/core/organization/organization.proto +94 -0
- package/prisca/v1/core/organization_level/organization_level.proto +77 -0
- package/prisca/v1/core/price_condition/price_condition.proto +83 -0
- package/prisca/v1/core/procurement/procurement.proto +54 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
- package/prisca/v1/core/report/report.proto +90 -0
- package/prisca/v1/core/report/user_report.proto +74 -0
- package/prisca/v1/core/tax_code/tax_code.proto +77 -0
- package/prisca/v1/core/term_of_payment/term_of_payment.proto +64 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +325 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
- package/prisca/v1/core/users/users.proto +45 -0
- package/prisca/v1/core/work_location/work_location.proto +122 -0
- package/prisca/v1/core/workflow/workflow.proto +216 -0
- package/prisca/v1/document_type/document_type.proto +80 -0
- package/prisca/v1/general_ledger_account/general_ledger_account.proto +98 -0
- package/prisca/v1/global/meta/meta.proto +57 -0
- package/prisca/v1/purchase_order/purchase_order.proto +155 -0
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +304 -0
- package/prisca/v1/purchasing_group/purchasing_group.proto +87 -0
- package/prisca/v1/purchasing_organization/purchasing_organization.proto +68 -0
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +70 -0
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
- package/prisca/v1/quotation/quotation.proto +82 -0
- package/prisca/v1/request_for_quotation/request_for_quotation.proto +166 -0
- package/prisca/v1/vendor_domain/vendor_domain.proto +225 -0
- package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
- package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2674
- package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
- package/prisca/v1/account_group/account_group_pb.js +0 -2937
- package/prisca/v1/bidding/bidding_grpc_pb.js +0 -174
- package/prisca/v1/bidding/bidding_pb.js +0 -3793
- package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
- package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2907
- package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -544
- package/prisca/v1/core/access_manager/access_manager_pb.js +0 -9383
- package/prisca/v1/core/auth/auth_grpc_pb.js +0 -423
- package/prisca/v1/core/auth/auth_pb.js +0 -4497
- package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
- package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1531
- package/prisca/v1/core/company/company_grpc_pb.js +0 -178
- package/prisca/v1/core/company/company_pb.js +0 -3048
- package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
- package/prisca/v1/core/currency/currency_pb.js +0 -2522
- package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
- package/prisca/v1/core/department_material/department_material_pb.js +0 -2167
- package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
- package/prisca/v1/core/employee/employee_pb.js +0 -4283
- package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -44
- package/prisca/v1/core/file_upload/file_upload_pb.js +0 -872
- package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -144
- package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2497
- package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
- package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -3880
- package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
- package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2605
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
- package/prisca/v1/core/job_position/job_position_pb.js +0 -3762
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
- package/prisca/v1/core/job_title/job_title_pb.js +0 -2958
- package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -45
- package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -1188
- package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -200
- package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3191
- package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
- package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2612
- package/prisca/v1/core/location/location_grpc_pb.js +0 -837
- package/prisca/v1/core/location/location_pb.js +0 -10879
- package/prisca/v1/core/material/material_grpc_pb.js +0 -182
- package/prisca/v1/core/material/material_pb.js +0 -4180
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
- package/prisca/v1/core/material_group/material_group_pb.js +0 -2776
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -149
- package/prisca/v1/core/material_type/material_type_pb.js +0 -2697
- package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
- package/prisca/v1/core/messaging/email_template_pb.js +0 -2552
- package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
- package/prisca/v1/core/messaging/messaging_pb.js +0 -896
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
- package/prisca/v1/core/number_range/number_range_pb.js +0 -2926
- package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
- package/prisca/v1/core/organization/organization_pb.js +0 -3032
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
- package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2545
- package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -146
- package/prisca/v1/core/price_condition/price_condition_pb.js +0 -2654
- package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
- package/prisca/v1/core/procurement/procurement_pb.js +0 -1681
- package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
- package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -206
- package/prisca/v1/core/report/report_grpc_pb.js +0 -200
- package/prisca/v1/core/report/report_pb.js +0 -2822
- package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
- package/prisca/v1/core/report/user_report_pb.js +0 -2452
- package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
- package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2582
- package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -144
- package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2105
- package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -498
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -10976
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2798
- package/prisca/v1/core/users/users_grpc_pb.js +0 -45
- package/prisca/v1/core/users/users_pb.js +0 -1246
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
- package/prisca/v1/core/work_location/work_location_pb.js +0 -3972
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
- package/prisca/v1/core/workflow/workflow_pb.js +0 -7525
- package/prisca/v1/document_type/document_type_grpc_pb.js +0 -178
- package/prisca/v1/document_type/document_type_pb.js +0 -2746
- package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
- package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3276
- package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
- package/prisca/v1/global/meta/meta_pb.js +0 -1179
- package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -228
- package/prisca/v1/purchase_order/purchase_order_pb.js +0 -4989
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -512
- package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -9917
- package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
- package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2875
- package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -145
- package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2139
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -146
- package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2183
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
- package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2543
- package/prisca/v1/quotation/quotation_grpc_pb.js +0 -151
- package/prisca/v1/quotation/quotation_pb.js +0 -3971
- package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -192
- package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -5703
- package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -224
- package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -6333
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/term_of_payment";
|
|
4
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
5
|
+
|
|
6
|
+
service TermOfPaymentService {
|
|
7
|
+
rpc CreateTermOfPayment (CreateTermOfPaymentReq) returns (CreateTermOfPaymentRes);
|
|
8
|
+
rpc UpdateTermOfPayment (UpdateTermOfPaymentReq) returns (UpdateTermOfPaymentRes);
|
|
9
|
+
rpc GetSingleTermOfPayment (GetSingleTermOfPaymentReq) returns (GetSingleTermOfPaymentRes);
|
|
10
|
+
rpc GetListTermOfPayment (GetListTermOfPaymentReq) returns (GetListTermOfPaymentRes);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
message TermOfPayment {
|
|
16
|
+
int64 id = 1;
|
|
17
|
+
string code = 2;
|
|
18
|
+
string days = 3;
|
|
19
|
+
string description = 4;
|
|
20
|
+
string references_id = 5;
|
|
21
|
+
string created_at = 6;
|
|
22
|
+
string updated_at = 7;
|
|
23
|
+
string created_by = 9;
|
|
24
|
+
string updated_by = 10;
|
|
25
|
+
string companies_references_id = 11;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
message CreateTermOfPaymentReq {
|
|
29
|
+
TermOfPayment term_of_payment = 1;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
message UpdateTermOfPaymentReq {
|
|
33
|
+
TermOfPayment term_of_payment = 1;
|
|
34
|
+
string references_id = 2;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message GetListTermOfPaymentReq {
|
|
38
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
39
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message GetSingleTermOfPaymentReq {
|
|
43
|
+
string references_id = 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message CreateTermOfPaymentRes {
|
|
47
|
+
TermOfPayment term_of_payment = 1;
|
|
48
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message GetSingleTermOfPaymentRes {
|
|
52
|
+
TermOfPayment term_of_payment = 1;
|
|
53
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
message UpdateTermOfPaymentRes {
|
|
57
|
+
TermOfPayment term_of_payment = 1;
|
|
58
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message GetListTermOfPaymentRes {
|
|
62
|
+
repeated TermOfPayment term_of_payment = 1;
|
|
63
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
64
|
+
}
|
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/transaction_builder";
|
|
4
|
+
package prisca.v1.core.transaction_builder;
|
|
5
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
+
import "google/protobuf/any.proto";
|
|
7
|
+
|
|
8
|
+
service TransactionBuilderService {
|
|
9
|
+
// builder
|
|
10
|
+
rpc CreateTransactionBuilder(TransactionBuilderRequest)
|
|
11
|
+
returns (ResponseTransactionBuilder);
|
|
12
|
+
rpc CreateTransactionFields(TransactionFieldsRequest)
|
|
13
|
+
returns (ResponseTransactionFieldsList);
|
|
14
|
+
rpc CreateTransactionConfig(TransactionConfigRequest)
|
|
15
|
+
returns (ResponseTransactionConfig);
|
|
16
|
+
|
|
17
|
+
rpc GetTransactionBuilder(GetTransactionBuilderById)
|
|
18
|
+
returns (ResponseTransactionBuilder);
|
|
19
|
+
rpc GetTransactionBuilderWithDetail(GetTransactionBuilderByIdWithDetail)
|
|
20
|
+
returns (ResponseTransactionBuilderWithDetails);
|
|
21
|
+
rpc GetTransactionFields(GetTransactionFieldsById)
|
|
22
|
+
returns (ResponseTransactionFields);
|
|
23
|
+
rpc GetTransactionConfig(GetTransactionConfigById)
|
|
24
|
+
returns (ResponseTransactionConfig);
|
|
25
|
+
|
|
26
|
+
rpc GetListTransactionBuilder(GetTransactionBuilderList)
|
|
27
|
+
returns (ResponseTransactionBuilderList);
|
|
28
|
+
rpc GetListTransactionBuilderTable(GetTransactionFieldsById)
|
|
29
|
+
returns (ResponseTransactionBuilderWithDetailTable);
|
|
30
|
+
rpc GetListTransactionBuilderFilter(GetTransactionFieldsById)
|
|
31
|
+
returns (ResponseTransactionBuilderWithDetailFilter);
|
|
32
|
+
rpc GetListTransactionBuilderWorkflowCriteria(GetTransactionFieldsById)
|
|
33
|
+
returns (ResponseTransactionBuilderWithDetailWorkflowCriteria);
|
|
34
|
+
rpc GetListTransactionBuilderForm(GetTransactionFieldsById)
|
|
35
|
+
returns (ResponseTransactionBuilderWithDetailForm);
|
|
36
|
+
rpc GetListTransactionBuilderDetail(GetTransactionFieldsById)
|
|
37
|
+
returns (ResponseTransactionBuilderWithDetail);
|
|
38
|
+
rpc GetListTransactionConfig(GetTransactionConfigList)
|
|
39
|
+
returns (ResponseTransactionConfigList);
|
|
40
|
+
|
|
41
|
+
rpc UpdateTransactionBuilder(EditTransactionBuilderById)
|
|
42
|
+
returns (ResponseTransactionBuilder);
|
|
43
|
+
rpc UpdateTransactionFields(EditTransactionFieldsById)
|
|
44
|
+
returns (ResponseTransactionFields);
|
|
45
|
+
rpc UpdateTransactionConfig(EditTransactionConfigById)
|
|
46
|
+
returns (ResponseTransactionConfig);
|
|
47
|
+
|
|
48
|
+
rpc CreateTransactionBuilderDefault(CreateTransactionBuilderDefaultReq)
|
|
49
|
+
returns (CreateTransactionBuilderDefaultRes);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
message Value {
|
|
53
|
+
string key = 1;
|
|
54
|
+
string value = 2;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
message PropertiesRules {
|
|
58
|
+
string type = 1;
|
|
59
|
+
string value = 2;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
message TransactionBuilderFieldsForm {
|
|
63
|
+
int64 transaction_builder_id = 1;
|
|
64
|
+
int64 orders = 2;
|
|
65
|
+
string key = 3;
|
|
66
|
+
string label = 4;
|
|
67
|
+
string references_id = 5;
|
|
68
|
+
repeated Value option = 6;
|
|
69
|
+
string properties = 7;
|
|
70
|
+
repeated FieldRulesWithProp field_rules = 8;
|
|
71
|
+
bool is_master = 9;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message TransactionBuilderFieldsDetail {
|
|
75
|
+
int64 transaction_builder_id = 1;
|
|
76
|
+
int64 orders = 2;
|
|
77
|
+
string key = 3;
|
|
78
|
+
string label = 4;
|
|
79
|
+
string references_id = 5;
|
|
80
|
+
string properties = 6;
|
|
81
|
+
string value = 7;
|
|
82
|
+
bool is_master = 8;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message TransactionBuilderFieldsTable {
|
|
86
|
+
int64 transaction_builder_id = 1;
|
|
87
|
+
int64 orders = 2;
|
|
88
|
+
string key = 3;
|
|
89
|
+
string label = 4;
|
|
90
|
+
string references_id = 5;
|
|
91
|
+
string properties = 6;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
message TransactionBuilderFieldsFilter {
|
|
96
|
+
int64 transaction_builder_id = 1;
|
|
97
|
+
int64 orders = 2;
|
|
98
|
+
string key = 3;
|
|
99
|
+
string label = 4;
|
|
100
|
+
string references_id = 5;
|
|
101
|
+
string properties = 6;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
message TransactionBuilderFieldsWorkflowCriteria {
|
|
106
|
+
int64 transaction_builder_id = 1;
|
|
107
|
+
string key = 3;
|
|
108
|
+
string label = 4;
|
|
109
|
+
string references_id = 5;
|
|
110
|
+
string properties = 6;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// model
|
|
114
|
+
message TransactionBuilderFields {
|
|
115
|
+
int64 id = 1;
|
|
116
|
+
int64 transaction_builder_id = 2;
|
|
117
|
+
string key = 3;
|
|
118
|
+
string label = 4;
|
|
119
|
+
repeated FieldRules field_rules = 5;
|
|
120
|
+
repeated FieldViews field_views = 6;
|
|
121
|
+
string value = 7;
|
|
122
|
+
string references_id = 8;
|
|
123
|
+
bool is_master = 9;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
message TransactionBuilderFieldsBase {
|
|
127
|
+
string key = 1;
|
|
128
|
+
string label = 2;
|
|
129
|
+
repeated FieldRules field_rules = 3;
|
|
130
|
+
repeated FieldViews field_views = 4;
|
|
131
|
+
bool is_master = 5;
|
|
132
|
+
string references_id = 6;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
message FieldRulesWithProp {
|
|
136
|
+
optional int64 id = 1;
|
|
137
|
+
string name = 2;
|
|
138
|
+
string properties = 3;
|
|
139
|
+
optional string transaction_builder_field_ref = 4;
|
|
140
|
+
string references_id = 5;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message FieldRules {
|
|
144
|
+
optional int64 id = 1;
|
|
145
|
+
string name = 2;
|
|
146
|
+
string properties = 3;
|
|
147
|
+
optional string transaction_builder_field_ref = 4;
|
|
148
|
+
string references_id = 5;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
message FieldViews {
|
|
152
|
+
optional int64 id = 1;
|
|
153
|
+
string name = 2;
|
|
154
|
+
string orders = 3;
|
|
155
|
+
string properties = 4;
|
|
156
|
+
optional string transaction_builder_field_ref = 5;
|
|
157
|
+
string references_id = 6;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
message TransactionBuilder {
|
|
161
|
+
int64 id = 1;
|
|
162
|
+
string name = 2;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
message TransactionBuilderWithDetails {
|
|
166
|
+
int64 id = 1;
|
|
167
|
+
string name = 2;
|
|
168
|
+
repeated TransactionBuilderFields transaction_builder_fields = 3;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
message TransactionBuilderWithDetailTableRes {
|
|
172
|
+
int64 id = 1;
|
|
173
|
+
string name = 2;
|
|
174
|
+
repeated TransactionBuilderFieldsTable transaction_builder_fields = 3;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
message TransactionBuilderWithDetailFilterRes {
|
|
179
|
+
int64 id = 1;
|
|
180
|
+
string name = 2;
|
|
181
|
+
repeated TransactionBuilderFieldsFilter transaction_builder_fields = 3;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
message TransactionBuilderWithDetailWorkflowCriteriaRes {
|
|
186
|
+
int64 id = 1;
|
|
187
|
+
string name = 2;
|
|
188
|
+
repeated TransactionBuilderFieldsWorkflowCriteria transaction_builder_fields = 3;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
message TransactionBuilderWithDetailFormRes {
|
|
192
|
+
int64 id = 1;
|
|
193
|
+
string name = 2;
|
|
194
|
+
repeated TransactionBuilderFieldsForm transaction_builder_fields = 3;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
message TransactionBuilderWithDetailRes {
|
|
198
|
+
int64 id = 1;
|
|
199
|
+
string name = 2;
|
|
200
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_fields = 3;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
message TransactionBuilderConfig {
|
|
204
|
+
string name = 1;
|
|
205
|
+
int64 transaction_builder_id = 2;
|
|
206
|
+
string type = 3;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// request builder
|
|
210
|
+
message TransactionBuilderRequest { string name = 1; }
|
|
211
|
+
|
|
212
|
+
message GetTransactionBuilderById { int64 id = 1; }
|
|
213
|
+
|
|
214
|
+
message GetTransactionBuilderByIdWithDetail { int64 id = 1; }
|
|
215
|
+
|
|
216
|
+
message EditTransactionBuilderById {
|
|
217
|
+
int64 id = 1;
|
|
218
|
+
string name = 2;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
message GetTransactionBuilderList {
|
|
222
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
223
|
+
}
|
|
224
|
+
// request transaction field
|
|
225
|
+
message TransactionFieldsRequest {
|
|
226
|
+
int64 id = 1;
|
|
227
|
+
repeated TransactionBuilderFieldsBase transaction_builder_fields = 2;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
message GetTransactionFieldsById { int64 id = 1; }
|
|
231
|
+
|
|
232
|
+
message EditTransactionFieldsById {
|
|
233
|
+
TransactionBuilderFields transaction_field = 1;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
// request transaction config
|
|
237
|
+
message TransactionConfigRequest {
|
|
238
|
+
TransactionBuilderConfig transaction_builder_config = 1;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
message GetTransactionConfigById { int64 id = 1; }
|
|
242
|
+
|
|
243
|
+
message GetTransactionConfigList {
|
|
244
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
message EditTransactionConfigById {
|
|
248
|
+
TransactionBuilderConfig transaction_congfig = 1;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// response builder
|
|
252
|
+
message ResponseTransactionBuilder {
|
|
253
|
+
TransactionBuilder transaction_builder = 1;
|
|
254
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
message ResponseTransactionBuilderWithDetailList {
|
|
258
|
+
repeated TransactionBuilderWithDetails transaction_builder = 1;
|
|
259
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
message ResponseTransactionBuilderWithDetails {
|
|
263
|
+
TransactionBuilderWithDetails transaction_builder = 1;
|
|
264
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
message ResponseTransactionBuilderWithDetailTable {
|
|
268
|
+
TransactionBuilderWithDetailTableRes transaction_builder = 1;
|
|
269
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
message ResponseTransactionBuilderWithDetailFilter{
|
|
273
|
+
TransactionBuilderWithDetailFilterRes transaction_builder = 1;
|
|
274
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
|
|
278
|
+
message ResponseTransactionBuilderWithDetailWorkflowCriteria{
|
|
279
|
+
TransactionBuilderWithDetailWorkflowCriteriaRes transaction_builder = 1;
|
|
280
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
message ResponseTransactionBuilderWithDetailForm {
|
|
284
|
+
TransactionBuilderWithDetailFormRes transaction_builder = 1;
|
|
285
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
message ResponseTransactionBuilderWithDetail {
|
|
289
|
+
TransactionBuilderWithDetailRes transaction_builder = 1;
|
|
290
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
message ResponseTransactionBuilderList {
|
|
294
|
+
repeated TransactionBuilder transaction_builders = 1;
|
|
295
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
// response fields
|
|
299
|
+
message ResponseTransactionFieldsList {
|
|
300
|
+
repeated TransactionBuilderFields transaction_fields = 1;
|
|
301
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
message ResponseTransactionFields {
|
|
305
|
+
TransactionBuilderFieldsBase transaction_field = 1;
|
|
306
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
// response config
|
|
310
|
+
message ResponseTransactionConfig {
|
|
311
|
+
TransactionBuilderConfig transaction_builder_config = 1;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
message ResponseTransactionConfigList {
|
|
315
|
+
repeated TransactionBuilderConfig transaction_builder_config = 1;
|
|
316
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
message CreateTransactionBuilderDefaultReq {
|
|
320
|
+
string companies_references_id = 1;
|
|
321
|
+
}
|
|
322
|
+
message CreateTransactionBuilderDefaultRes {
|
|
323
|
+
repeated TransactionBuilderWithDetailRes transaction_builder = 1;
|
|
324
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
325
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
string references_id =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
|
+
string references_id =1;
|
|
87
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
88
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
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
|
+
}
|
|
30
|
+
|
|
31
|
+
message UpdateUser {
|
|
32
|
+
string name = 1;
|
|
33
|
+
string phone_number = 2;
|
|
34
|
+
string email = 3;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
message UpdateUserRequest {
|
|
38
|
+
UpdateUser user = 1;
|
|
39
|
+
string references_id = 2;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message UpdateUserResponse {
|
|
43
|
+
string references_id = 1;
|
|
44
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
45
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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
|
+
string references_id =1;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
message DeleteWorkLocationResponse {
|
|
94
|
+
string references_id =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
|
+
}
|