@aldiokta/protocgen 1.0.17 → 1.0.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/core/auth/auth.proto +100 -0
- package/prisca/v1/core/company/company.proto +86 -0
- package/prisca/v1/core/department_material/department_material.proto +69 -0
- package/prisca/v1/core/job_grade/job_grade.proto +79 -0
- package/prisca/v1/core/job_position/job_position.proto +107 -0
- package/prisca/v1/core/job_title/job_title.proto +88 -0
- package/prisca/v1/core/location/location.proto +124 -0
- package/prisca/v1/core/material/material.proto +127 -0
- package/prisca/v1/core/material_group/material_group.proto +79 -0
- package/prisca/v1/core/material_type/material_type.proto +77 -0
- package/prisca/v1/core/number_range/number_range.proto +81 -0
- package/prisca/v1/core/organization/organization.proto +93 -0
- package/prisca/v1/core/organization_level/organization_level.proto +73 -0
- package/prisca/v1/core/procurement/procurement.proto +54 -0
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +131 -0
- package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
- package/prisca/v1/core/transaction_builder/transaction_builder.proto +278 -0
- package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +88 -0
- package/prisca/v1/core/users/users.proto +22 -0
- package/prisca/v1/core/users_role/users_role.proto +72 -0
- package/prisca/v1/core/work_location/work_location.proto +88 -0
- package/prisca/v1/core/workflow/workflow.proto +191 -0
- package/prisca/v1/global/meta/meta.proto +57 -0
- package/prisca/v1/core/auth/auth_grpc_pb.js +0 -256
- package/prisca/v1/core/auth/auth_pb.js +0 -2801
- package/prisca/v1/core/company/company_grpc_pb.js +0 -177
- package/prisca/v1/core/company/company_pb.js +0 -2582
- 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/job_grade/job_grade_grpc_pb.js +0 -177
- package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2552
- package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -177
- package/prisca/v1/core/job_position/job_position_pb.js +0 -2912
- package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -177
- package/prisca/v1/core/job_title/job_title_pb.js +0 -2612
- package/prisca/v1/core/location/location_grpc_pb.js +0 -276
- package/prisca/v1/core/location/location_pb.js +0 -4334
- package/prisca/v1/core/material/material_grpc_pb.js +0 -181
- package/prisca/v1/core/material/material_pb.js +0 -4016
- package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -177
- package/prisca/v1/core/material_group/material_group_pb.js +0 -2582
- package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -147
- package/prisca/v1/core/material_type/material_type_pb.js +0 -2369
- package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -177
- package/prisca/v1/core/number_range/number_range_pb.js +0 -2672
- package/prisca/v1/core/organization/organization_grpc_pb.js +0 -177
- package/prisca/v1/core/organization/organization_pb.js +0 -2430
- package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -177
- package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2462
- 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/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -266
- package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -4429
- 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/transaction_builder/transaction_builder_grpc_pb.js +0 -421
- package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -9597
- 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 -1
- package/prisca/v1/core/users/users_pb.js +0 -626
- package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -177
- package/prisca/v1/core/work_location/work_location_pb.js +0 -2850
- package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -179
- package/prisca/v1/core/workflow/workflow_pb.js +0 -6318
- package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
- package/prisca/v1/global/meta/meta_pb.js +0 -1179
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/prisca-v2-purchase-requisition-domain/protocgen/prisca/v1/purchase_requisition_trx";
|
|
4
|
+
|
|
5
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
6
|
+
import "prisca/v1/core/transaction_builder/transaction_builder.proto";
|
|
7
|
+
|
|
8
|
+
service PurchaseRequisitionTrxService {
|
|
9
|
+
rpc CreatePurchaseRequisitionTrx (CreatePurchaseRequisitionTrxRequest) returns (CreatePurchaseRequisitionTrxResponse);
|
|
10
|
+
rpc UpdatePurchaseRequisitionTrx (UpdatePurchaseRequisitionTrxRequest) returns (UpdatePurchaseRequisitionTrxResponse);
|
|
11
|
+
rpc GetPurchaseRequisitionTrxById (GetPurchaseRequisitionTrxByIdRequest) returns (GetPurchaseRequisitionTrxByIdResponse);
|
|
12
|
+
rpc GetPurchaseRequisitionTrxList (GetPurchaseRequisitionTrxListRequest) returns (GetPurchaseRequisitionTrxListResponse);
|
|
13
|
+
rpc GetPurchaseRequisitionWithTrxId (GetPurchaseRequisitionTrxDetailByIdRequest) returns (GetPurchaseRequisitionTrxDetailByIdResponse);
|
|
14
|
+
rpc GetPurchaseRequisitionWithTrxList (GetPurchaseRequisitionTrxDetailListRequest) returns (GetPurchaseRequisitionTrxDetailListResponse);
|
|
15
|
+
rpc GetPurchaseRequisitionWithTrxListTable (GetPurchaseRequisitionTrxDetailListDetailRequest) returns (GetPurchaseRequisitionTrxDetailListTableResponse);
|
|
16
|
+
rpc GetPurchaseRequisitionWithTrxListDetail (GetPurchaseRequisitionTrxDetailListDetailRequest) returns (GetPurchaseRequisitionTrxDetailListDetailResponse);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
message Value {
|
|
20
|
+
string key = 1;
|
|
21
|
+
string value = 2;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
message PurchaseRequisitionTrx {
|
|
25
|
+
int64 id = 1;
|
|
26
|
+
string title =2;
|
|
27
|
+
string purchase_requisition_transaction_number = 3;
|
|
28
|
+
string item_category_ref = 4;
|
|
29
|
+
string account_assigment_ref = 5;
|
|
30
|
+
string currency_ref = 6;
|
|
31
|
+
string purchase_requisition_type = 7;
|
|
32
|
+
string department = 8;
|
|
33
|
+
string purchasing_organization = 9;
|
|
34
|
+
string email_cc = 10;
|
|
35
|
+
string plant_ref = 11;
|
|
36
|
+
string purchasing_group = 12;
|
|
37
|
+
repeated prisca.v1.core.transaction_builder.Value custom_transaction = 13;
|
|
38
|
+
string references_id =14;
|
|
39
|
+
string created_at = 15; // ISO 8601
|
|
40
|
+
string updated_at = 16; // Nullable
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// req
|
|
44
|
+
|
|
45
|
+
message BasePurchaseRequisitionTrx {
|
|
46
|
+
string title =1;
|
|
47
|
+
string purchase_requisition_transaction_number = 2;
|
|
48
|
+
string item_category_ref = 3;
|
|
49
|
+
string account_assigment_ref = 4;
|
|
50
|
+
string currency_ref = 5;
|
|
51
|
+
string purchase_requisition_type = 6;
|
|
52
|
+
string department = 7;
|
|
53
|
+
string purchasing_organization = 8;
|
|
54
|
+
string email_cc = 9;
|
|
55
|
+
string plant_ref = 10;
|
|
56
|
+
string purchasing_group = 11;
|
|
57
|
+
repeated prisca.v1.core.transaction_builder.Value custom_transaction = 12;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
message CreatePurchaseRequisitionTrxRequest {
|
|
61
|
+
BasePurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message UpdatePurchaseRequisitionTrxRequest {
|
|
65
|
+
int64 id = 1;
|
|
66
|
+
BasePurchaseRequisitionTrx purchase_requisition_transaction = 2;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message GetPurchaseRequisitionTrxByIdRequest {
|
|
70
|
+
int64 id = 1;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
message GetPurchaseRequisitionTrxListRequest {
|
|
74
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
message GetPurchaseRequisitionTrxDetailByIdRequest {
|
|
78
|
+
int64 id = 1;
|
|
79
|
+
int64 trx_builder_id = 2;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
message GetPurchaseRequisitionTrxDetailListRequest {
|
|
83
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
84
|
+
int64 trx_builder_id = 2;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
message GetPurchaseRequisitionTrxDetailListDetailRequest {
|
|
88
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
89
|
+
int64 trx_builder_id = 2;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// res
|
|
93
|
+
|
|
94
|
+
message CreatePurchaseRequisitionTrxResponse {
|
|
95
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
96
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
message UpdatePurchaseRequisitionTrxResponse {
|
|
100
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
101
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
message GetPurchaseRequisitionTrxByIdResponse {
|
|
105
|
+
PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
106
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message GetPurchaseRequisitionTrxListResponse {
|
|
110
|
+
repeated PurchaseRequisitionTrx purchase_requisition_transaction = 1;
|
|
111
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
message GetPurchaseRequisitionTrxDetailByIdResponse {
|
|
115
|
+
repeated prisca.v1.core.transaction_builder.TransactionBuilderFieldsDetail data = 3;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
message GetPurchaseRequisitionTrxDetailListResponse {
|
|
119
|
+
repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetails data = 1;
|
|
120
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
message GetPurchaseRequisitionTrxDetailListTableResponse {
|
|
124
|
+
repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetailTableRes data = 1;
|
|
125
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
message GetPurchaseRequisitionTrxDetailListDetailResponse {
|
|
129
|
+
repeated prisca.v1.core.transaction_builder.TransactionBuilderWithDetailRes data = 1;
|
|
130
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
131
|
+
}
|
|
@@ -0,0 +1,278 @@
|
|
|
1
|
+
syntax="proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/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) returns (ResponseTransactionBuilder);
|
|
11
|
+
rpc CreateTransactionFields(TransactionFieldsRequest) returns (ResponseTransactionFieldsList);
|
|
12
|
+
rpc CreateTransactionConfig(TransactionConfigRequest) returns (ResponseTransactionConfig);
|
|
13
|
+
|
|
14
|
+
rpc GetTransactionBuilder(GetTransactionBuilderById) returns (ResponseTransactionBuilder);
|
|
15
|
+
rpc GetTransactionBuilderWithDetail(GetTransactionBuilderByIdWithDetail) returns (ResponseTransactionBuilderWithDetails);
|
|
16
|
+
rpc GetTransactionFields(GetTransactionFieldsById) returns (ResponseTransactionFields);
|
|
17
|
+
rpc GetTransactionConfig(GetTransactionConfigById) returns (ResponseTransactionConfig);
|
|
18
|
+
|
|
19
|
+
rpc GetListTransactionBuilder(GetTransactionBuilderList) returns (ResponseTransactionBuilderList);
|
|
20
|
+
rpc GetListTransactionBuilderTable(GetTransactionFieldsById) returns (ResponseTransactionBuilderWithDetailTable);
|
|
21
|
+
rpc GetListTransactionBuilderForm(GetTransactionFieldsById) returns (ResponseTransactionBuilderWithDetailForm);
|
|
22
|
+
rpc GetListTransactionBuilderDetail(GetTransactionFieldsById) returns (ResponseTransactionBuilderWithDetail);
|
|
23
|
+
rpc GetListTransactionConfig(GetTransactionConfigList) returns (ResponseTransactionConfigList);
|
|
24
|
+
|
|
25
|
+
rpc UpdateTransactionBuilder(EditTransactionBuilderById) returns (ResponseTransactionBuilder);
|
|
26
|
+
rpc UpdateTransactionFields(EditTransactionFieldsById) returns (ResponseTransactionFields);
|
|
27
|
+
rpc UpdateTransactionConfig(EditTransactionConfigById) returns (ResponseTransactionConfig);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message Value {
|
|
31
|
+
string key = 1;
|
|
32
|
+
string value = 2;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
message PropertiesRules {
|
|
36
|
+
string type = 1;
|
|
37
|
+
string value = 2;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
message TransactionBuilderFieldsForm {
|
|
41
|
+
int64 transaction_builder_id = 1;
|
|
42
|
+
int64 orders = 2;
|
|
43
|
+
string key = 3;
|
|
44
|
+
string label = 4;
|
|
45
|
+
string references_id = 5;
|
|
46
|
+
repeated Value option = 6;
|
|
47
|
+
string properties = 7;
|
|
48
|
+
repeated FieldRulesWithProp field_rules = 8;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
message TransactionBuilderFieldsDetail {
|
|
52
|
+
int64 transaction_builder_id = 1;
|
|
53
|
+
int64 orders = 2;
|
|
54
|
+
string key = 3;
|
|
55
|
+
string label = 4;
|
|
56
|
+
string references_id = 5;
|
|
57
|
+
string properties = 6;
|
|
58
|
+
string value = 7;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
message PropertiesForm {
|
|
62
|
+
bool auto_fill = 1;
|
|
63
|
+
string key_of_fill = 2;
|
|
64
|
+
string parent_key = 3;
|
|
65
|
+
string hint_text = 4;
|
|
66
|
+
string place_holder = 5;
|
|
67
|
+
string data_source = 6;
|
|
68
|
+
string type = 7;
|
|
69
|
+
string default_value = 8;
|
|
70
|
+
string selected_value = 9;
|
|
71
|
+
bool is_master = 10;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
message TransactionBuilderFieldsTable {
|
|
75
|
+
int64 transaction_builder_id = 1;
|
|
76
|
+
int64 orders = 2;
|
|
77
|
+
string key = 3;
|
|
78
|
+
string label = 4;
|
|
79
|
+
string references_id = 5;
|
|
80
|
+
PropertiesTable properties = 6;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
message PropertiesTable {
|
|
84
|
+
bool is_main = 1;
|
|
85
|
+
string data_type = 2;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// model
|
|
89
|
+
message TransactionBuilderFields {
|
|
90
|
+
int64 id = 1;
|
|
91
|
+
int64 transaction_builder_id = 2;
|
|
92
|
+
string key = 3;
|
|
93
|
+
string label = 4;
|
|
94
|
+
repeated Value option = 5;
|
|
95
|
+
repeated FieldRules field_rules = 6;
|
|
96
|
+
repeated FieldViews field_views = 7;
|
|
97
|
+
string value = 8;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
message TransactionBuilderFieldsBase {
|
|
101
|
+
string key = 1;
|
|
102
|
+
string label = 2;
|
|
103
|
+
repeated Value option = 3;
|
|
104
|
+
repeated FieldRules field_rules = 4;
|
|
105
|
+
repeated FieldViews field_views = 5;
|
|
106
|
+
bool is_master = 6;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
message FieldRulesWithProp {
|
|
110
|
+
optional int64 id = 1;
|
|
111
|
+
string name = 2;
|
|
112
|
+
PropertiesRules properties = 3;
|
|
113
|
+
optional string transaction_builder_field_ref = 4;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
message FieldRules {
|
|
118
|
+
optional int64 id = 1;
|
|
119
|
+
string name = 2;
|
|
120
|
+
string properties = 3;
|
|
121
|
+
optional string transaction_builder_field_ref = 4;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
message FieldViews {
|
|
125
|
+
optional int64 id = 1;
|
|
126
|
+
string name = 2;
|
|
127
|
+
string orders = 3;
|
|
128
|
+
string properties = 4;
|
|
129
|
+
optional string transaction_builder_field_ref = 5;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
message TransactionBuilder {
|
|
133
|
+
int64 id = 1;
|
|
134
|
+
string name = 2;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
message TransactionBuilderWithDetails {
|
|
138
|
+
int64 id = 1;
|
|
139
|
+
string name = 2;
|
|
140
|
+
repeated TransactionBuilderFields transaction_builder_fields = 3;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
message TransactionBuilderWithDetailTableRes {
|
|
144
|
+
int64 id = 1;
|
|
145
|
+
string name = 2;
|
|
146
|
+
repeated TransactionBuilderFieldsTable transaction_builder_fields = 3;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
message TransactionBuilderWithDetailFormRes {
|
|
150
|
+
int64 id = 1;
|
|
151
|
+
string name = 2;
|
|
152
|
+
repeated TransactionBuilderFieldsForm transaction_builder_fields = 3;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
message TransactionBuilderWithDetailRes {
|
|
156
|
+
int64 id = 1;
|
|
157
|
+
string name = 2;
|
|
158
|
+
repeated TransactionBuilderFieldsDetail transaction_builder_fields = 3;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
message TransactionBuilderConfig {
|
|
162
|
+
string name = 1;
|
|
163
|
+
int64 transaction_builder_id = 2;
|
|
164
|
+
string type = 3;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
// request builder
|
|
169
|
+
message TransactionBuilderRequest {
|
|
170
|
+
string name = 1;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
message GetTransactionBuilderById {
|
|
174
|
+
int64 id = 1;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
message GetTransactionBuilderByIdWithDetail {
|
|
178
|
+
int64 id = 1;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
message EditTransactionBuilderById {
|
|
182
|
+
int64 id = 1;
|
|
183
|
+
string name = 2;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
message GetTransactionBuilderList {
|
|
187
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
188
|
+
}
|
|
189
|
+
// request transaction field
|
|
190
|
+
message TransactionFieldsRequest {
|
|
191
|
+
int64 id = 1;
|
|
192
|
+
repeated TransactionBuilderFieldsBase transaction_builder_fields= 2;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
message GetTransactionFieldsById {
|
|
196
|
+
int64 id =1;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
message EditTransactionFieldsById {
|
|
200
|
+
TransactionBuilderFields transaction_field =1 ;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
// request transaction config
|
|
204
|
+
message TransactionConfigRequest {
|
|
205
|
+
TransactionBuilderConfig transaction_builder_config = 1;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
message GetTransactionConfigById {
|
|
209
|
+
int64 id =1;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
message GetTransactionConfigList {
|
|
213
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
message EditTransactionConfigById {
|
|
217
|
+
TransactionBuilderConfig transaction_congfig =1 ;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// response builder
|
|
221
|
+
message ResponseTransactionBuilder {
|
|
222
|
+
TransactionBuilder transaction_builder =1;
|
|
223
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
message ResponseTransactionBuilderWithDetailList {
|
|
227
|
+
repeated TransactionBuilderWithDetails transaction_builder = 1;
|
|
228
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
message ResponseTransactionBuilderWithDetails {
|
|
232
|
+
TransactionBuilderWithDetails transaction_builder = 1;
|
|
233
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
message ResponseTransactionBuilderWithDetailTable {
|
|
237
|
+
TransactionBuilderWithDetailTableRes transaction_builder = 1;
|
|
238
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
message ResponseTransactionBuilderWithDetailForm {
|
|
242
|
+
TransactionBuilderWithDetailFormRes transaction_builder = 1;
|
|
243
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
message ResponseTransactionBuilderWithDetail {
|
|
247
|
+
TransactionBuilderWithDetailRes transaction_builder = 1;
|
|
248
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
message ResponseTransactionBuilderList {
|
|
253
|
+
repeated TransactionBuilder transaction_builders = 1;
|
|
254
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
|
|
258
|
+
// response fields
|
|
259
|
+
message ResponseTransactionFieldsList {
|
|
260
|
+
repeated TransactionBuilderFields transaction_fields = 1;
|
|
261
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
message ResponseTransactionFields {
|
|
265
|
+
TransactionBuilderFields transaction_fields = 1;
|
|
266
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
// response config
|
|
271
|
+
message ResponseTransactionConfig {
|
|
272
|
+
TransactionBuilderConfig transaction_builder_config = 1;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
message ResponseTransactionConfigList {
|
|
276
|
+
repeated TransactionBuilderConfig transaction_builder_config = 1;
|
|
277
|
+
prisca.v1.global.meta.Meta meta =2;
|
|
278
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/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,22 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/users";
|
|
4
|
+
|
|
5
|
+
message Users {
|
|
6
|
+
int32 id = 1;
|
|
7
|
+
string references_id = 2;
|
|
8
|
+
string name = 3;
|
|
9
|
+
string gender_ref_id = 4;
|
|
10
|
+
string phone_number = 5;
|
|
11
|
+
string email = 6;
|
|
12
|
+
string role_ref_id = 7;
|
|
13
|
+
string credential = 8;
|
|
14
|
+
string last_login = 9;
|
|
15
|
+
string last_credential_renewal = 10;
|
|
16
|
+
string device_mobile_id = 11;
|
|
17
|
+
string device_dekstop_id = 12;
|
|
18
|
+
string created_by = 13;
|
|
19
|
+
string updated_by = 14;
|
|
20
|
+
string created_at = 15;
|
|
21
|
+
string updated_at = 16;
|
|
22
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/users_role";
|
|
4
|
+
|
|
5
|
+
// Importing necessary dependencies
|
|
6
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
+
|
|
8
|
+
service RoleService {
|
|
9
|
+
rpc CreateUsersRole(CreateUsersRoleRequest) returns (CreateUsersRoleResponse);
|
|
10
|
+
rpc GetUsersRoleById(UsersRoleGetByIdRequest) returns (UsersRoleGetByIdResponse);
|
|
11
|
+
rpc UpdateUsersRole(UpdateUsersRoleRequest) returns (UpdateUsersRoleResponse);
|
|
12
|
+
rpc DeleteUsersRole(DeleteUsersRoleRequest) returns (DeleteUsersRoleResponse);
|
|
13
|
+
rpc GetListUsersRole(GetListUsersRoleRequest) returns (GetListUsersRoleResponse);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message UsersRole {
|
|
17
|
+
string name = 1;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
message BaseUsersRole {
|
|
21
|
+
string references_id = 1;
|
|
22
|
+
string name = 2;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
message UsersRoleGetByIdRequest {
|
|
27
|
+
string references_id = 1;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
message CreateUsersRoleRequest {
|
|
31
|
+
UsersRole users_role = 1;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
message UpdateUsersRoleRequest {
|
|
35
|
+
string references_id = 1;
|
|
36
|
+
UsersRole users_role = 2;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
message DeleteUsersRoleRequest {
|
|
40
|
+
string references_id = 1;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
message DeleteUsersRoleResponse {
|
|
44
|
+
string references_id = 1;
|
|
45
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
message GetListUsersRoleRequest {
|
|
49
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
50
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
// Response Messages
|
|
54
|
+
message CreateUsersRoleResponse {
|
|
55
|
+
UsersRole users_role = 1;
|
|
56
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message GetListUsersRoleResponse {
|
|
60
|
+
repeated UsersRole users_role = 1;
|
|
61
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message UpdateUsersRoleResponse {
|
|
65
|
+
UsersRole users_role = 1;
|
|
66
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
message UsersRoleGetByIdResponse {
|
|
70
|
+
UsersRole users_role = 1;
|
|
71
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
72
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
syntax = "proto3";
|
|
2
|
+
|
|
3
|
+
option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/work_location";
|
|
4
|
+
|
|
5
|
+
// Importing necessary dependencies
|
|
6
|
+
import "prisca/v1/global/meta/meta.proto";
|
|
7
|
+
|
|
8
|
+
service WorkLocationService {
|
|
9
|
+
rpc CreateWorkLocation(CreateWorkLocationRequest) returns (CreateWorkLocationResponse);
|
|
10
|
+
rpc UpdateWorkLocation(UpdateWorkLocationRequest) returns (UpdateWorkLocationResponse);
|
|
11
|
+
rpc DeleteWorkLocation(DeleteWorkLocationRequest) returns (DeleteWorkLocationResponse);
|
|
12
|
+
rpc GetWorkLocationById(WorkLocationGetByIdRequest) returns (WorkLocationGetByIdResponse);
|
|
13
|
+
rpc GetListWorkLocation(GetListWorkLocationRequest) returns (GetListWorkLocationResponse);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
message WorkLocation {
|
|
17
|
+
string companies_references_id = 1;
|
|
18
|
+
string code = 2;
|
|
19
|
+
string location_name = 3;
|
|
20
|
+
string alias = 4;
|
|
21
|
+
string address = 5;
|
|
22
|
+
string letter_address_line1 = 6;
|
|
23
|
+
string letter_address_line2 = 7;
|
|
24
|
+
string letter_address_line3 = 8;
|
|
25
|
+
string phone_number = 9;
|
|
26
|
+
string email = 10;
|
|
27
|
+
string npwp = 11;
|
|
28
|
+
string npwp_address = 12;
|
|
29
|
+
double latitude = 13;
|
|
30
|
+
double longitude = 14;
|
|
31
|
+
int64 radius = 15;
|
|
32
|
+
int64 country_references_id = 16;
|
|
33
|
+
int64 region_references_id = 17;
|
|
34
|
+
int64 city_references_id = 18;
|
|
35
|
+
int64 district_references_id = 19;
|
|
36
|
+
int64 province_references_id = 20;
|
|
37
|
+
int64 area_references_id = 21;
|
|
38
|
+
string tax_office_location = 22;
|
|
39
|
+
string references_id = 23;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
message WorkLocationGetByIdRequest {
|
|
43
|
+
string references_id =1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
message CreateWorkLocationRequest {
|
|
47
|
+
WorkLocation work_location = 1;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
message UpdateWorkLocationRequest {
|
|
51
|
+
string references_id =1;
|
|
52
|
+
WorkLocation work_location = 2;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
message DeleteWorkLocationRequest {
|
|
56
|
+
string references_id =1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
message DeleteWorkLocationResponse {
|
|
60
|
+
string references_id =1;
|
|
61
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
message GetListWorkLocationRequest {
|
|
65
|
+
prisca.v1.global.meta.PaginationRequest pagination = 1;
|
|
66
|
+
prisca.v1.global.meta.FilterRequest query = 2;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Response Messages
|
|
70
|
+
message CreateWorkLocationResponse {
|
|
71
|
+
WorkLocation work_location = 1;
|
|
72
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
message GetListWorkLocationResponse {
|
|
76
|
+
repeated WorkLocation work_location = 1;
|
|
77
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
message UpdateWorkLocationResponse {
|
|
81
|
+
WorkLocation work_location = 1;
|
|
82
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
message WorkLocationGetByIdResponse {
|
|
86
|
+
WorkLocation work_location = 1;
|
|
87
|
+
prisca.v1.global.meta.Meta meta = 2;
|
|
88
|
+
}
|