@aldiokta/protocgen 1.1.43 → 1.1.45

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.
Files changed (178) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/account_assignment/account_assignment.proto +81 -0
  3. package/prisca/v1/account_group/account_group.proto +88 -0
  4. package/prisca/v1/bidding/bidding.proto +251 -0
  5. package/prisca/v1/chart_of_account/chart_of_account.proto +89 -0
  6. package/prisca/v1/core/access_manager/access_manager.proto +328 -0
  7. package/prisca/v1/core/auth/auth.proto +185 -0
  8. package/prisca/v1/core/chat_messaging/chat_messaging.proto +62 -0
  9. package/prisca/v1/core/company/company.proto +92 -0
  10. package/prisca/v1/core/currency/currency.proto +76 -0
  11. package/prisca/v1/core/department_material/department_material.proto +69 -0
  12. package/prisca/v1/core/employee/employee.proto +129 -0
  13. package/prisca/v1/core/file_upload/file_upload.proto +41 -0
  14. package/prisca/v1/core/incoterm/incoterm.proto +85 -0
  15. package/prisca/v1/core/item_transaction/item_transaction.proto +188 -0
  16. package/prisca/v1/core/job_grade/job_grade.proto +79 -0
  17. package/prisca/v1/core/job_position/job_position.proto +113 -0
  18. package/prisca/v1/core/job_title/job_title.proto +89 -0
  19. package/prisca/v1/core/line_of_activity/line_of_activity.proto +94 -0
  20. package/prisca/v1/core/line_of_approval/line_of_approval.proto +113 -0
  21. package/prisca/v1/core/link_data_source/link_data_source.proto +78 -0
  22. package/prisca/v1/core/location/location.proto +295 -0
  23. package/prisca/v1/core/material/material.proto +131 -0
  24. package/prisca/v1/core/material_group/material_group.proto +85 -0
  25. package/prisca/v1/core/material_type/material_type.proto +95 -0
  26. package/prisca/v1/core/messaging/email_template.proto +77 -0
  27. package/prisca/v1/core/messaging/messaging.proto +29 -0
  28. package/prisca/v1/core/messaging/notification.proto +144 -0
  29. package/prisca/v1/core/number_range/number_range.proto +89 -0
  30. package/prisca/v1/core/organization/organization.proto +94 -0
  31. package/prisca/v1/core/organization_level/organization_level.proto +77 -0
  32. package/prisca/v1/core/price_condition/price_condition.proto +97 -0
  33. package/prisca/v1/core/procurement/procurement.proto +54 -0
  34. package/prisca/v1/core/recipient_roles/recipient_roles.proto +10 -0
  35. package/prisca/v1/core/report/report.proto +90 -0
  36. package/prisca/v1/core/report/user_report.proto +74 -0
  37. package/prisca/v1/core/tax_code/tax_code.proto +82 -0
  38. package/prisca/v1/core/term_of_payment/term_of_payment.proto +74 -0
  39. package/prisca/v1/core/transaction_builder/transaction_builder.proto +366 -0
  40. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +89 -0
  41. package/prisca/v1/core/users/users.proto +55 -0
  42. package/prisca/v1/core/work_location/work_location.proto +122 -0
  43. package/prisca/v1/core/workflow/workflow.proto +220 -0
  44. package/prisca/v1/core/workspace/workspace.proto +48 -0
  45. package/prisca/v1/delivery_order/delivery_order.proto +116 -0
  46. package/prisca/v1/document_type/document_type.proto +89 -0
  47. package/prisca/v1/general_ledger_account/general_ledger_account.proto +100 -0
  48. package/prisca/v1/global/meta/meta.proto +57 -0
  49. package/prisca/v1/good_receipt/good_receipt.proto +118 -0
  50. package/prisca/v1/invoice/invoice.proto +170 -0
  51. package/prisca/v1/purchase_order/purchase_order.proto +292 -0
  52. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx.proto +327 -0
  53. package/prisca/v1/purchasing_group/purchasing_group.proto +89 -0
  54. package/prisca/v1/purchasing_organization/purchasing_organization.proto +77 -0
  55. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment.proto +81 -0
  56. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant.proto +80 -0
  57. package/prisca/v1/quotation/quotation.proto +135 -0
  58. package/prisca/v1/request_for_quotation/request_for_quotation.proto +203 -0
  59. package/prisca/v1/valuation/valuation.proto +223 -0
  60. package/prisca/v1/vendor_domain/vendor_domain.proto +485 -0
  61. package/prisca/v1/account_assignment/account_assignment_grpc_pb.js +0 -199
  62. package/prisca/v1/account_assignment/account_assignment_pb.js +0 -2720
  63. package/prisca/v1/account_group/account_group_grpc_pb.js +0 -200
  64. package/prisca/v1/account_group/account_group_pb.js +0 -2983
  65. package/prisca/v1/bidding/bidding_grpc_pb.js +0 -350
  66. package/prisca/v1/bidding/bidding_pb.js +0 -8694
  67. package/prisca/v1/chart_of_account/chart_of_account_grpc_pb.js +0 -199
  68. package/prisca/v1/chart_of_account/chart_of_account_pb.js +0 -2953
  69. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +0 -577
  70. package/prisca/v1/core/access_manager/access_manager_pb.js +0 -10625
  71. package/prisca/v1/core/auth/auth_grpc_pb.js +0 -523
  72. package/prisca/v1/core/auth/auth_pb.js +0 -5833
  73. package/prisca/v1/core/chat_messaging/chat_messaging_grpc_pb.js +0 -111
  74. package/prisca/v1/core/chat_messaging/chat_messaging_pb.js +0 -1726
  75. package/prisca/v1/core/company/company_grpc_pb.js +0 -178
  76. package/prisca/v1/core/company/company_pb.js +0 -3094
  77. package/prisca/v1/core/currency/currency_grpc_pb.js +0 -177
  78. package/prisca/v1/core/currency/currency_pb.js +0 -2516
  79. package/prisca/v1/core/department_material/department_material_grpc_pb.js +0 -144
  80. package/prisca/v1/core/department_material/department_material_pb.js +0 -2161
  81. package/prisca/v1/core/employee/employee_grpc_pb.js +0 -206
  82. package/prisca/v1/core/employee/employee_pb.js +0 -4329
  83. package/prisca/v1/core/file_upload/file_upload_grpc_pb.js +0 -66
  84. package/prisca/v1/core/file_upload/file_upload_pb.js +0 -1136
  85. package/prisca/v1/core/incoterm/incoterm_grpc_pb.js +0 -177
  86. package/prisca/v1/core/incoterm/incoterm_pb.js +0 -2898
  87. package/prisca/v1/core/item_transaction/item_transaction_grpc_pb.js +0 -1
  88. package/prisca/v1/core/item_transaction/item_transaction_pb.js +0 -6038
  89. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +0 -178
  90. package/prisca/v1/core/job_grade/job_grade_pb.js +0 -2651
  91. package/prisca/v1/core/job_position/job_position_grpc_pb.js +0 -181
  92. package/prisca/v1/core/job_position/job_position_pb.js +0 -3808
  93. package/prisca/v1/core/job_title/job_title_grpc_pb.js +0 -178
  94. package/prisca/v1/core/job_title/job_title_pb.js +0 -3004
  95. package/prisca/v1/core/line_of_activity/line_of_activity_grpc_pb.js +0 -78
  96. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +0 -2503
  97. package/prisca/v1/core/line_of_approval/line_of_approval_grpc_pb.js +0 -222
  98. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +0 -3801
  99. package/prisca/v1/core/link_data_source/link_data_source_grpc_pb.js +0 -177
  100. package/prisca/v1/core/link_data_source/link_data_source_pb.js +0 -2606
  101. package/prisca/v1/core/location/location_grpc_pb.js +0 -837
  102. package/prisca/v1/core/location/location_pb.js +0 -11262
  103. package/prisca/v1/core/material/material_grpc_pb.js +0 -182
  104. package/prisca/v1/core/material/material_pb.js +0 -4226
  105. package/prisca/v1/core/material_group/material_group_grpc_pb.js +0 -178
  106. package/prisca/v1/core/material_group/material_group_pb.js +0 -2822
  107. package/prisca/v1/core/material_type/material_type_grpc_pb.js +0 -182
  108. package/prisca/v1/core/material_type/material_type_pb.js +0 -3098
  109. package/prisca/v1/core/messaging/email_template_grpc_pb.js +0 -177
  110. package/prisca/v1/core/messaging/email_template_pb.js +0 -2658
  111. package/prisca/v1/core/messaging/messaging_grpc_pb.js +0 -56
  112. package/prisca/v1/core/messaging/messaging_pb.js +0 -890
  113. package/prisca/v1/core/messaging/notification_grpc_pb.js +0 -331
  114. package/prisca/v1/core/messaging/notification_pb.js +0 -4775
  115. package/prisca/v1/core/number_range/number_range_grpc_pb.js +0 -178
  116. package/prisca/v1/core/number_range/number_range_pb.js +0 -2972
  117. package/prisca/v1/core/organization/organization_grpc_pb.js +0 -180
  118. package/prisca/v1/core/organization/organization_pb.js +0 -3078
  119. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +0 -178
  120. package/prisca/v1/core/organization_level/organization_level_pb.js +0 -2591
  121. package/prisca/v1/core/price_condition/price_condition_grpc_pb.js +0 -179
  122. package/prisca/v1/core/price_condition/price_condition_pb.js +0 -3175
  123. package/prisca/v1/core/procurement/procurement_grpc_pb.js +0 -146
  124. package/prisca/v1/core/procurement/procurement_pb.js +0 -1675
  125. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +0 -1
  126. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +0 -200
  127. package/prisca/v1/core/report/report_grpc_pb.js +0 -200
  128. package/prisca/v1/core/report/report_pb.js +0 -2816
  129. package/prisca/v1/core/report/user_report_grpc_pb.js +0 -179
  130. package/prisca/v1/core/report/user_report_pb.js +0 -2446
  131. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +0 -177
  132. package/prisca/v1/core/tax_code/tax_code_pb.js +0 -2778
  133. package/prisca/v1/core/term_of_payment/term_of_payment_grpc_pb.js +0 -177
  134. package/prisca/v1/core/term_of_payment/term_of_payment_pb.js +0 -2506
  135. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +0 -652
  136. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +0 -11953
  137. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +0 -180
  138. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +0 -2874
  139. package/prisca/v1/core/users/users_grpc_pb.js +0 -78
  140. package/prisca/v1/core/users/users_pb.js +0 -1647
  141. package/prisca/v1/core/work_location/work_location_grpc_pb.js +0 -179
  142. package/prisca/v1/core/work_location/work_location_pb.js +0 -4018
  143. package/prisca/v1/core/workflow/workflow_grpc_pb.js +0 -203
  144. package/prisca/v1/core/workflow/workflow_pb.js +0 -7631
  145. package/prisca/v1/core/workspace/workspace_grpc_pb.js +0 -101
  146. package/prisca/v1/core/workspace/workspace_pb.js +0 -1381
  147. package/prisca/v1/delivery_order/delivery_order_grpc_pb.js +0 -229
  148. package/prisca/v1/delivery_order/delivery_order_pb.js +0 -3647
  149. package/prisca/v1/document_type/document_type_grpc_pb.js +0 -200
  150. package/prisca/v1/document_type/document_type_pb.js +0 -3004
  151. package/prisca/v1/general_ledger_account/general_ledger_account_grpc_pb.js +0 -181
  152. package/prisca/v1/general_ledger_account/general_ledger_account_pb.js +0 -3322
  153. package/prisca/v1/global/meta/meta_grpc_pb.js +0 -1
  154. package/prisca/v1/global/meta/meta_pb.js +0 -1173
  155. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +0 -250
  156. package/prisca/v1/good_receipt/good_receipt_pb.js +0 -3945
  157. package/prisca/v1/invoice/invoice_grpc_pb.js +0 -273
  158. package/prisca/v1/invoice/invoice_pb.js +0 -5664
  159. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +0 -263
  160. package/prisca/v1/purchase_order/purchase_order_pb.js +0 -9839
  161. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +0 -600
  162. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +0 -10795
  163. package/prisca/v1/purchasing_group/purchasing_group_grpc_pb.js +0 -178
  164. package/prisca/v1/purchasing_group/purchasing_group_pb.js +0 -2921
  165. package/prisca/v1/purchasing_organization/purchasing_organization_grpc_pb.js +0 -178
  166. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +0 -2418
  167. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_grpc_pb.js +0 -179
  168. package/prisca/v1/purchasing_organization_assignment/purchasing_organization_assignment_pb.js +0 -2584
  169. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_grpc_pb.js +0 -145
  170. package/prisca/v1/purchasing_organization_plant/purchasing_organization_plant_pb.js +0 -2537
  171. package/prisca/v1/quotation/quotation_grpc_pb.js +0 -240
  172. package/prisca/v1/quotation/quotation_pb.js +0 -4167
  173. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +0 -281
  174. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +0 -7042
  175. package/prisca/v1/valuation/valuation_grpc_pb.js +0 -366
  176. package/prisca/v1/valuation/valuation_pb.js +0 -7806
  177. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +0 -279
  178. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
@@ -0,0 +1,223 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/valuation";
4
+ import "prisca/v1/core/employee/employee.proto";
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/vendor_domain/vendor_domain.proto";
7
+
8
+ service ValuationService {
9
+ rpc CreateValuationIndicator(CreateValuationIndicatorRequest) returns (CreateValuationIndicatorResponse);
10
+ rpc UpdateValuationIndicator(UpdateValuationIndicatorRequest) returns (UpdateValuationIndicatorResponse);
11
+ rpc DeleteValuationIndicator(DeleteValuationIndicatorRequest) returns (DeleteValuationIndicatorResponse);
12
+ rpc GetListValuationIndicators(GetListValuationIndicatorRequest)
13
+ returns (GetListValuationIndicatorResponse);
14
+ rpc CreateValuationScale(CreateValuationScaleRequest) returns (CreateValuationScaleResponse);
15
+ rpc UpdateValuationScale(UpdateValuationScaleRequest) returns (UpdateValuationScaleResponse);
16
+ rpc DeleteValuationScale(DeleteValuationScaleRequest) returns (DeleteValuationScaleResponse);
17
+ rpc GetListValuationScales(GetListValuationScaleRequest)
18
+ returns (GetListValuationScaleResponse);
19
+ rpc CreateValuationDefault(CreateValuationDefaultRequest) returns (ValuationUpdateResponse);
20
+ rpc FindValuationBuilder(GetListValuationRequest) returns (ValuationBuilderResponse);
21
+ rpc SetValuation(ValuationUpdateRequest) returns (ValuationUpdateResponse);
22
+ }
23
+
24
+ //valuation
25
+
26
+ message Valuation {
27
+ int64 id = 1;
28
+ string references_id = 2;
29
+ string created_by = 3;
30
+ string updated_by = 4;
31
+ string updated_at = 5;
32
+ string created_at = 6;
33
+ optional Employee created_by_employee = 7;
34
+ optional Employee updated_by_employee = 8;
35
+ string companies_references_id = 9;
36
+ string bidding_references_id = 10;
37
+ string vendor_references_id = 11;
38
+ string quotation_references_id = 12;
39
+ string valuation_indicator_references_id = 13;
40
+ string valuation_scale_references_id = 14;
41
+ optional ValuationIndicator valuation_indicator = 15;
42
+ optional ValuationScale valuation_scale = 16;
43
+ }
44
+
45
+ message BaseValuationReq {
46
+ string valuation_indicator_references_id = 1;
47
+ string valuation_scale_references_id = 2;
48
+ }
49
+
50
+ message ValuationUpdateRequest {
51
+ string quotation_references_id = 1;
52
+ repeated BaseValuationReq base_valuation = 2;
53
+ }
54
+
55
+ message ValuationUpdateResponse {
56
+ repeated Valuation valuation = 1;
57
+ prisca.v1.global.meta.Meta meta =2;
58
+ }
59
+
60
+ message BaseValuationBuilder {
61
+ string name = 1;
62
+ string indicator_references_id = 2;
63
+ float point = 3;
64
+ }
65
+
66
+ message ValuationBuilderResponse {
67
+ repeated BaseValuationBuilder valuation_builders = 1;
68
+ repeated ValuationScale valuation_scales = 2;
69
+ string bidding_references_id = 3;
70
+ string vendor_references_id = 4;
71
+ optional Vendor vendor = 5;
72
+ prisca.v1.global.meta.Meta meta =6;
73
+ }
74
+
75
+ message GetListValuationRequest {
76
+ string quotation_references_id = 1;
77
+ }
78
+
79
+ message CreateValuationDefaultRequest {
80
+ string quotation_references_id = 1;
81
+ }
82
+
83
+ //valuation indicator
84
+ message ValuationIndicator {
85
+ int64 id = 1;
86
+ string name = 2;
87
+ string description = 3;
88
+ string references_id = 4;
89
+ string created_by = 5;
90
+ string updated_by = 6;
91
+ string updated_at = 7;
92
+ string created_at = 8;
93
+ optional Employee created_by_employee = 9;
94
+ optional Employee updated_by_employee = 10;
95
+ string companies_references_id = 11;
96
+ }
97
+
98
+ message BaseValuationIndicatorRequest {
99
+ string name = 1;
100
+ string description = 2;
101
+ }
102
+
103
+ message CreateValuationIndicatorRequest {
104
+ BaseValuationIndicatorRequest base_valuation_indicator = 1;
105
+ }
106
+
107
+ message UpdateValuationIndicatorRequest {
108
+ string references_id =1;
109
+ BaseValuationIndicatorRequest base_valuation_indicator = 2;
110
+ }
111
+
112
+ message DeleteValuationIndicatorRequest {
113
+ string references_id =1;
114
+ }
115
+
116
+ message GetValuationIndicatorByIdRequest {
117
+ string references_id =1;
118
+ }
119
+
120
+ message GetListValuationIndicatorRequest {
121
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
122
+ prisca.v1.global.meta.FilterRequest query = 2;
123
+ }
124
+
125
+ // Response Messages
126
+ message CreateValuationIndicatorResponse {
127
+ ValuationIndicator valuation_indicator = 1;
128
+ prisca.v1.global.meta.Meta meta =2;
129
+ }
130
+
131
+ message UpdateValuationIndicatorResponse {
132
+ ValuationIndicator valuation_indicator = 1;
133
+ prisca.v1.global.meta.Meta meta =2;
134
+ }
135
+
136
+ message DeleteValuationIndicatorResponse {
137
+ string references_id =1;
138
+ prisca.v1.global.meta.Meta meta =2;
139
+ }
140
+
141
+ message GetValuationIndicatorByIdResponse {
142
+ ValuationIndicator valuation_indicator = 1;
143
+ prisca.v1.global.meta.Meta meta =2;
144
+ }
145
+
146
+ message GetListValuationIndicatorResponse {
147
+ repeated ValuationIndicator valuation_indicators = 1;
148
+ prisca.v1.global.meta.Meta meta =2;
149
+ }
150
+
151
+ //valuation scale
152
+ message ValuationScale {
153
+ int64 id = 1;
154
+ string name = 2;
155
+ string description = 3;
156
+ string references_id = 4;
157
+ string created_by = 5;
158
+ string updated_by = 6;
159
+ string updated_at = 7;
160
+ string created_at = 8;
161
+ optional Employee created_by_employee = 9;
162
+ optional Employee updated_by_employee = 10;
163
+ string companies_references_id = 11;
164
+ float point = 12;
165
+ float order_point = 13;
166
+ string color = 14;
167
+ }
168
+
169
+ message BaseValuationScaleRequest {
170
+ string name = 1;
171
+ string description = 2;
172
+ float point = 3;
173
+ float order_point = 4;
174
+ string color = 5;
175
+ }
176
+
177
+ message CreateValuationScaleRequest {
178
+ BaseValuationScaleRequest base_valuation_scale = 1;
179
+ }
180
+
181
+ message UpdateValuationScaleRequest {
182
+ string references_id =1;
183
+ BaseValuationScaleRequest base_valuation_scale = 2;
184
+ }
185
+
186
+ message DeleteValuationScaleRequest {
187
+ string references_id =1;
188
+ }
189
+
190
+ message GetValuationScaleByIdRequest {
191
+ string references_id =1;
192
+ }
193
+
194
+ message GetListValuationScaleRequest {
195
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
196
+ prisca.v1.global.meta.FilterRequest query = 2;
197
+ }
198
+
199
+ // Response Messages
200
+ message CreateValuationScaleResponse {
201
+ ValuationScale valuation_scale = 1;
202
+ prisca.v1.global.meta.Meta meta =2;
203
+ }
204
+
205
+ message UpdateValuationScaleResponse {
206
+ ValuationScale valuation_scale = 1;
207
+ prisca.v1.global.meta.Meta meta =2;
208
+ }
209
+
210
+ message DeleteValuationScaleResponse {
211
+ string references_id =1;
212
+ prisca.v1.global.meta.Meta meta =2;
213
+ }
214
+
215
+ message GetValuationScaleByIdResponse {
216
+ ValuationScale valuation_scale = 1;
217
+ prisca.v1.global.meta.Meta meta =2;
218
+ }
219
+
220
+ message GetListValuationScaleResponse {
221
+ repeated ValuationScale valuation_scales = 1;
222
+ prisca.v1.global.meta.Meta meta =2;
223
+ }
@@ -0,0 +1,485 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/vendor_domain";
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
+ //package prisca.v1.vendor_domain;
9
+
10
+ // Unit of Measurement Service
11
+ service VendorService {
12
+ rpc CreateVendor(CreateVendorRequest) returns (CreateVendorResponse);
13
+ rpc RegisterVendor(RegisterVendorRequest) returns (RegisterVendorResponse);
14
+ rpc GetVendorById(GetVendorByIdRequest) returns (GetVendorByIdResponse);
15
+ rpc GetVendorByIdDetail(GetVendorByIdRequest) returns (GetVendorDetailResponse);
16
+ rpc GetVendorProfile(GetVendorProfileRequest) returns (GetVendorByIdResponse);
17
+ rpc GetListVendors(GetListVendorRequest) returns (GetListVendorResponse);
18
+ rpc UpdateVendor(UpdateVendorRequest) returns (UpdateVendorResponse);
19
+ rpc UpdateVendorSection(UpdateVendorRequest) returns (UpdateVendorResponse);
20
+ rpc UpdateVendorStatus(UpdateVendorStatusRequest) returns (UpdateVendorResponse);
21
+ rpc DeleteVendor(DeleteVendorRequest) returns (DeleteVendorResponse);
22
+ }
23
+
24
+ message Vendor {
25
+ int64 id = 1;
26
+ string name = 2;
27
+ string references_id = 3;
28
+ string alias_name = 4;
29
+ string legal_form = 5;
30
+ string organization_title = 6;
31
+ string grouping = 7;
32
+ string organization = 8;
33
+ string status = 9;
34
+ bool one_time_status = 10;
35
+ string created_at = 11; // ISO 8601 format
36
+ string updated_at = 12; // Nullable
37
+
38
+ // Address Information
39
+ string street = 13;
40
+ string house_number = 14;
41
+ string postal_code = 15;
42
+ string village = 16; // json.RawMessage
43
+ string district = 17; // json.RawMessage
44
+ string city = 18; // json.RawMessage
45
+ string province = 19; // json.RawMessage
46
+ string country = 20; // json.RawMessage
47
+ string language = 21;
48
+
49
+ // Industry
50
+ string industry = 22; // json.RawMessage
51
+
52
+ // Article of Association
53
+ repeated ArticleOfAssociation article_of_association = 23;
54
+
55
+ // Shareholder
56
+ repeated Shareholder shareholder = 24;
57
+
58
+ // Company Management
59
+ repeated CompanyManagement company_management = 25;
60
+
61
+ // Business Permit
62
+ repeated BusinessPermit business_permit = 26;
63
+
64
+ // Communications
65
+ repeated Communication communications = 27;
66
+
67
+ // Contacts
68
+ repeated Contact contacts = 28;
69
+
70
+ // Competencies
71
+ repeated Tools tools = 29;
72
+ repeated Experts experts = 30;
73
+ repeated Certification certification = 31;
74
+ repeated Competency competency = 32;
75
+ repeated WorkExperiences work_experiences = 33;
76
+
77
+ // Finance Data
78
+ repeated BankAccount bank_accounts = 34;
79
+ repeated FinancialReport financial_report = 35;
80
+ repeated TaxDocument tax_document = 36;
81
+ repeated TaxInformation tax_information = 37;
82
+ repeated TermOfPayments term_of_payments = 38;
83
+
84
+ // Other Document
85
+ repeated OtherDocument other_document = 39;
86
+
87
+ // Roles
88
+ string business_partner_role = 40;
89
+ string valid_from = 41;
90
+ string valid_to = 42;
91
+
92
+ // Relationships
93
+ repeated Relationship relationships = 43;
94
+
95
+ // Attachments
96
+ string file_ids = 44;
97
+ repeated FileUploadReferencesReq files = 45;
98
+
99
+ // Notes
100
+ string vendor_description = 46;
101
+ bool is_send_to_vendor = 47;
102
+ string vendor_number = 48;
103
+
104
+ // Line of Approval
105
+ string line_of_approval_references_id = 49;
106
+
107
+ // New fields
108
+ string company_domain = 50;
109
+ string company_president_director = 51;
110
+ string companies_references_id = 52;
111
+ string company_type = 53;
112
+ string company_website = 54;
113
+ string company_references = 55;
114
+ string company_logo = 56;
115
+ optional FileUploadReferencesReq company_logo_image = 57;
116
+ }
117
+
118
+ message Relationship {
119
+ string category = 1;
120
+ string business_partner = 2;
121
+ string valid_from = 3;
122
+ string valid_to = 4;
123
+ }
124
+
125
+ message Communication {
126
+ string telephone = 1;
127
+ string cell_phone = 2;
128
+ string fax = 3;
129
+ string email = 4;
130
+ }
131
+
132
+ message ArticleOfAssociation {
133
+ string type = 1;
134
+ string number = 2;
135
+ string date = 3;
136
+ string notary = 4;
137
+ string decree = 5;
138
+ string decree_date = 6;
139
+ string attachment_ids = 7;
140
+ repeated FileUploadReferencesReq attachments = 8;
141
+ }
142
+
143
+ message Shareholder {
144
+ string name = 1;
145
+ string nationality = 2;
146
+ string percentage = 3;
147
+ string email = 4;
148
+ string id_card_number = 5;
149
+ string card_attachment_references_id = 6;
150
+ FileUploadReferencesReq card_attachment = 7;
151
+ }
152
+
153
+ message CompanyManagement {
154
+ string role = 1;
155
+ bool registered_shareholders = 2;
156
+ string name = 3;
157
+ string nationality = 4;
158
+ string position = 5;
159
+ string email = 6;
160
+ string phone = 7;
161
+ string id_card_number = 8;
162
+ string card_attachment_references_id = 9;
163
+ FileUploadReferencesReq card_attachment = 10;
164
+ string signature_attachment_references_id = 11;
165
+ FileUploadReferencesReq signature_attachment = 12;
166
+ string company_head = 13;
167
+ }
168
+
169
+ message BusinessPermit {
170
+ string type = 1;
171
+ string document_references_id = 2;
172
+ string document_name = 3;
173
+ FileUploadReferencesReq document = 4;
174
+ string classification = 5;
175
+ string number = 6;
176
+ string valid_start = 7;
177
+ string valid_end = 8;
178
+ string issue_date = 9;
179
+ string published_by = 10;
180
+ string company_status = 11;
181
+ string risk_level_identification = 12;
182
+ string card_attachment_references_id = 13;
183
+ FileUploadReferencesReq card_attachment = 14;
184
+ }
185
+
186
+ message Communications {
187
+ string telephone = 1;
188
+ string cell_phone = 2;
189
+ string fax = 3;
190
+ string email = 4;
191
+ }
192
+
193
+ message Contact {
194
+ string first_name = 1;
195
+ string last_name = 2;
196
+ string valid_from = 3;
197
+ string valid_to = 4;
198
+ }
199
+
200
+ message Tools {
201
+ string type = 1;
202
+ int32 quantity = 2;
203
+ string brand = 3;
204
+ string condition = 4;
205
+ string location = 5;
206
+ string ownership = 6;
207
+ string measurement = 7;
208
+ }
209
+
210
+ message Experts {
211
+ string name = 1;
212
+ string birth_date = 2;
213
+ string education = 3;
214
+ string position = 4;
215
+ string id_card_number = 5;
216
+ string address = 6;
217
+ string work_experience = 7;
218
+ string years_of_experience = 8;
219
+ string certification = 9;
220
+ string certification_number = 10;
221
+ }
222
+
223
+ message Certification {
224
+ string type = 1;
225
+ string description = 2;
226
+ string valid_start = 3;
227
+ string valid_end = 4;
228
+ string attachment_references_id = 5;
229
+ FileUploadReferencesReq attachment = 6;
230
+ }
231
+
232
+ message Competency {
233
+ string business_field = 1;
234
+ string business_subfield = 2;
235
+ string commodity = 3;
236
+ string description = 4;
237
+ string business_partner_type = 5;
238
+ }
239
+
240
+ message WorkExperiences {
241
+ string business_field = 1;
242
+ string business_subfield = 2;
243
+ string package_name = 3;
244
+ string package_location = 4;
245
+ string employer_company = 5;
246
+ string address = 6;
247
+ string country = 7;
248
+ string province = 8;
249
+ string district = 9;
250
+ string postal_code = 10;
251
+ string contact_person = 11;
252
+ string valid_start = 12;
253
+ string valid_end = 13;
254
+ string currency = 14;
255
+ string contract_value = 15;
256
+ string date_handover = 16;
257
+ string minutes_of_handover = 17;
258
+ string minutes_of_handover_attachment_references_id = 18;
259
+ FileUploadReferencesReq minutes_of_handover_attachment = 19;
260
+ string proof = 20;
261
+ string proof_attachment_references_id = 21;
262
+ FileUploadReferencesReq proof_attachment = 22;
263
+ }
264
+
265
+ message BankAccount {
266
+ string id = 1;
267
+ string account = 2;
268
+ string account_name = 3;
269
+ string address = 4;
270
+ string account_number = 5;
271
+ string currency = 6;
272
+ string document_references_id = 7;
273
+ FileUploadReferencesReq document = 8;
274
+ }
275
+
276
+ message FinancialReport {
277
+ string date = 1;
278
+ string public_accountant_name = 2;
279
+ int32 fiscal_year = 3;
280
+ string valid_end = 4;
281
+ string currency = 5;
282
+ string balance_sheet = 6;
283
+ }
284
+
285
+ message TaxInformation {
286
+ string tax_number = 1;
287
+ string tax_category = 2;
288
+ }
289
+
290
+ message TaxDocument {
291
+ string type = 1;
292
+ string number = 2;
293
+ string issue_date = 3;
294
+ string attachment_references_id = 4;
295
+ FileUploadReferencesReq attachment = 5;
296
+ }
297
+
298
+ message TermOfPayments {
299
+ string terms = 1;
300
+ string description = 2;
301
+ }
302
+
303
+ message BalanceSheetDetail {
304
+ double assets = 1;
305
+ double liabilities = 2;
306
+ double net_worth = 3;
307
+ double annual_income = 4;
308
+ string classification = 5;
309
+ }
310
+
311
+ message OtherDocument {
312
+ string type = 1;
313
+ string number = 2;
314
+ string valid_until = 3;
315
+ string issued_by = 4;
316
+ string notes = 5;
317
+ string attachment_references_id = 6;
318
+ FileUploadReferencesReq attachment = 7;
319
+ string status = 8;
320
+ }
321
+
322
+
323
+
324
+ // Request Messages
325
+ message BaseVendorRequest {
326
+ string name = 1;
327
+ string alias_name = 2;
328
+ string legal_form = 3;
329
+ string organization_title = 4;
330
+ string grouping = 5;
331
+ string organization = 6;
332
+ string status = 7;
333
+ bool one_time_status = 8;
334
+
335
+ // Address Information
336
+ string street = 9;
337
+ string house_number = 10;
338
+ string postal_code = 11;
339
+ string village = 12; // json.RawMessage
340
+ string district = 13; // json.RawMessage
341
+ string city = 14; // json.RawMessage
342
+ string province = 15; // json.RawMessage
343
+ string country = 16; // json.RawMessage
344
+ string language = 17;
345
+
346
+ // Industry
347
+ string industry = 18; // json.RawMessage
348
+
349
+ // Article of Association
350
+ repeated ArticleOfAssociation article_of_association = 19;
351
+
352
+ // Shareholder
353
+ repeated Shareholder shareholder = 20;
354
+
355
+ // Company Management
356
+ repeated CompanyManagement company_management = 21;
357
+
358
+ // Business Permit
359
+ repeated BusinessPermit business_permit = 22;
360
+
361
+ // Communications
362
+ repeated Communication communications = 23;
363
+
364
+ // Contacts
365
+ repeated Contact contacts = 24;
366
+
367
+ // Competencies
368
+ repeated Tools tools = 25;
369
+ repeated Experts experts = 26;
370
+ repeated Certification certification = 27;
371
+ repeated Competency competency = 28;
372
+ repeated WorkExperiences work_experiences = 29;
373
+
374
+ // Finance Data
375
+ repeated BankAccount bank_accounts = 30;
376
+ repeated FinancialReport financial_report = 31;
377
+ repeated TaxDocument tax_document = 32;
378
+ repeated TaxInformation tax_information = 33;
379
+ repeated TermOfPayments term_of_payments = 34;
380
+
381
+ // Other Document
382
+ repeated OtherDocument other_document = 35;
383
+
384
+ // Roles
385
+ string business_partner_role = 36;
386
+ string valid_from = 37;
387
+ string valid_to = 38;
388
+
389
+ // Relationships
390
+ repeated Relationship relationships = 39;
391
+
392
+ // Attachments
393
+ repeated FileUploadReferencesReq files = 40;
394
+
395
+ // Notes
396
+ string vendor_description = 41;
397
+ // New fields
398
+ string company_domain = 42;
399
+ string company_president_director = 43;
400
+ string company_type = 44;
401
+ string company_website = 45;
402
+ string company_references = 46;
403
+ string company_logo = 47;
404
+ }
405
+
406
+
407
+
408
+ message CreateVendorRequest {
409
+ BaseVendorRequest base_vendor = 1;
410
+ }
411
+ message UpdateVendorStatusRequest {
412
+ string status = 1;
413
+ string references_id = 2;
414
+ }
415
+ message UpdateVendorRequest {
416
+ string references_id =1;
417
+ BaseVendorRequest base_vendor = 2;
418
+ }
419
+
420
+ message GetListVendorRequest {
421
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
422
+ prisca.v1.global.meta.FilterRequest query = 2;
423
+ }
424
+
425
+ message GetVendorByIdRequest {
426
+ string references_id =1;
427
+ }
428
+
429
+ message GetVendorProfileRequest {
430
+ }
431
+
432
+ message DeleteVendorRequest {
433
+ string references_id =1;
434
+ }
435
+
436
+ // Response Messages
437
+ message CreateVendorResponse {
438
+ Vendor vendor = 1;
439
+ prisca.v1.global.meta.Meta meta =2;
440
+ }
441
+
442
+ message UpdateVendorResponse {
443
+ Vendor vendor = 1;
444
+ prisca.v1.global.meta.Meta meta =2;
445
+ }
446
+
447
+ message GetListVendorResponse {
448
+ repeated Vendor vendors = 1;
449
+ prisca.v1.global.meta.Meta meta =2;
450
+ }
451
+
452
+ message GetVendorByIdResponse {
453
+ Vendor vendor = 1;
454
+ prisca.v1.global.meta.Meta meta =2;
455
+ }
456
+
457
+ message DeleteVendorResponse {
458
+ string references_id =1;
459
+ prisca.v1.global.meta.Meta meta =2;
460
+ }
461
+
462
+ message GetVendorDetailResponse {
463
+ repeated TransactionBuilderFieldsDetail transaction_builder = 1;
464
+ repeated GetVendorItemPreload transaction_builder_items = 2;
465
+ }
466
+
467
+ message GetVendorItemPreload {
468
+ repeated TransactionBuilderFieldsDetail transaction_builder_item = 1;
469
+ repeated GetVendorItemDetailPreload transaction_builder_item_details = 2;
470
+ }
471
+
472
+ message GetVendorItemDetailPreload {
473
+ repeated TransactionBuilderFieldsDetail transaction_builder_item_detail = 1;
474
+ }
475
+
476
+ // Auth stuff
477
+ message RegisterVendorRequest {
478
+ string companies_references_id = 1;
479
+ BaseVendorRequest base_vendor = 2;
480
+ }
481
+
482
+ message RegisterVendorResponse {
483
+ Vendor vendor = 1;
484
+ prisca.v1.global.meta.Meta meta =2;
485
+ }