@aldiokta/protocgen 1.1.44 → 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 -10655
  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 -290
  178. package/prisca/v1/vendor_domain/vendor_domain_pb.js +0 -14714
@@ -0,0 +1,113 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/job_position";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/organization/organization.proto";
8
+ import "prisca/v1/core/work_location/work_location.proto";
9
+ import "prisca/v1/core/company/company.proto";
10
+ import "prisca/v1/core/access_manager/access_manager.proto";
11
+
12
+ service JobPositionService {
13
+ rpc CreateJobPosition(CreateJobPositionRequest) returns (CreateJobPositionResponse);
14
+ rpc GetJobPositionById(JobPositionGetByIdRequest) returns (JobPositionGetByIdResponse);
15
+ rpc UpdateJobPosition(UpdateJobPositionRequest) returns (UpdateJobPositionResponse);
16
+ rpc DeleteJobPosition(DeleteJobPositionRequest) returns (DeleteJobPositionResponse);
17
+ rpc GetListJobPosition(GetListJobPositionRequest) returns (GetListJobPositionResponse);
18
+ }
19
+
20
+ message BaseJobPosition {
21
+ string code = 1;
22
+ string name = 2;
23
+ string alias = 3;
24
+ string cost_center_code = 4;
25
+ string parent_references_id = 5;
26
+ BaseJobPositionParent parent = 6;
27
+ string organization_references_id = 7;
28
+ BaseOrganization organizations = 8;
29
+ string work_location_references_id = 9;
30
+ WorkLocation work_locations = 10;
31
+ string description = 11;
32
+ string companies_references_id = 12;
33
+ BaseCompanyParent company = 13;
34
+ string users_role_references_id = 14;
35
+ Role role = 15;
36
+ string references_id = 16;
37
+ }
38
+
39
+ message BaseJobPositionParent {
40
+ string references_id = 1;
41
+ string code = 2;
42
+ string name = 3;
43
+ string alias = 4;
44
+ string cost_center_code = 5;
45
+ BaseJobPosition job_positions = 6;
46
+ Organization organizations = 7;
47
+ WorkLocation work_locations = 8;
48
+ string description = 9;
49
+ BaseCompanyParent company = 10;
50
+ Role role = 11;
51
+ }
52
+
53
+ message JobPosition {
54
+ string references_id = 1;
55
+ string code = 2;
56
+ string name = 3;
57
+ string alias = 4;
58
+ string cost_center_code = 5;
59
+ string parent_references_id = 6;
60
+ string organization_references_id = 7;
61
+ string work_location_references_id = 8;
62
+ string description = 9;
63
+ string companies_references_id = 10;
64
+ string users_role_references_id = 11;
65
+ }
66
+
67
+ message JobPositionGetByIdRequest {
68
+ string references_id = 1;
69
+ }
70
+
71
+ message CreateJobPositionRequest {
72
+ JobPosition job_position = 1;
73
+ }
74
+
75
+ message UpdateJobPositionRequest {
76
+ string references_id = 1;
77
+ JobPosition job_position = 2;
78
+ }
79
+
80
+ message DeleteJobPositionRequest {
81
+ repeated string reference_ids = 1;
82
+ }
83
+
84
+ message DeleteJobPositionResponse {
85
+ repeated string reference_ids = 1;
86
+ prisca.v1.global.meta.Meta meta = 2;
87
+ }
88
+
89
+ message GetListJobPositionRequest {
90
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
91
+ prisca.v1.global.meta.FilterRequest query = 2;
92
+ }
93
+
94
+ // Response Messages
95
+ message CreateJobPositionResponse {
96
+ JobPosition job_position = 1;
97
+ prisca.v1.global.meta.Meta meta = 2;
98
+ }
99
+
100
+ message GetListJobPositionResponse {
101
+ repeated BaseJobPosition job_position = 1;
102
+ prisca.v1.global.meta.Meta meta = 2;
103
+ }
104
+
105
+ message UpdateJobPositionResponse {
106
+ JobPosition job_position = 1;
107
+ prisca.v1.global.meta.Meta meta = 2;
108
+ }
109
+
110
+ message JobPositionGetByIdResponse {
111
+ BaseJobPosition job_position = 1;
112
+ prisca.v1.global.meta.Meta meta = 2;
113
+ }
@@ -0,0 +1,89 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/job_title";
4
+
5
+ // Importing necessary dependencies
6
+ import "prisca/v1/global/meta/meta.proto";
7
+ import "prisca/v1/core/company/company.proto";
8
+
9
+ service JobTitleService {
10
+ rpc CreateJobTitle(CreateJobTitleRequest) returns (CreateJobTitleResponse);
11
+ rpc GetJobTitleById(JobTitleGetByIdRequest) returns (JobTitleGetByIdResponse);
12
+ rpc UpdateJobTitle(UpdateJobTitleRequest) returns (UpdateJobTitleResponse);
13
+ rpc DeleteJobTitle(DeleteJobTitleRequest) returns (DeleteJobTitleResponse);
14
+ rpc GetListJobTitle(GetListJobTitleRequest) returns (GetListJobTitleResponse);
15
+ }
16
+
17
+ message JobTitle {
18
+ string code = 1;
19
+ string name = 2;
20
+ string description = 3;
21
+ string parent_references_id = 4;
22
+ string companies_references_id = 5;
23
+ }
24
+
25
+ message BaseJobTitle {
26
+ string references_id = 1;
27
+ string code = 2;
28
+ string name = 3;
29
+ string description = 4;
30
+ string parent_references_id = 5;
31
+ BaseJobTitleParent parent = 6;
32
+ string companies_references_id = 7;
33
+ BaseCompanyParent company = 8;
34
+ }
35
+
36
+ message BaseJobTitleParent {
37
+ string references_id = 1;
38
+ string code = 2;
39
+ string name = 3;
40
+ string description = 4;
41
+ }
42
+
43
+ message JobTitleGetByIdRequest {
44
+ string references_id = 1;
45
+ }
46
+
47
+ message CreateJobTitleRequest {
48
+ JobTitle job_title = 1;
49
+ }
50
+
51
+ message UpdateJobTitleRequest {
52
+ string references_id = 1;
53
+ JobTitle job_title = 2;
54
+ }
55
+
56
+ message DeleteJobTitleRequest {
57
+ repeated string reference_ids = 1;
58
+ }
59
+
60
+ message DeleteJobTitleResponse {
61
+ repeated string reference_ids = 1;
62
+ prisca.v1.global.meta.Meta meta = 2;
63
+ }
64
+
65
+ message GetListJobTitleRequest {
66
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
67
+ prisca.v1.global.meta.FilterRequest query = 2;
68
+ }
69
+
70
+ // Response Messages
71
+ message CreateJobTitleResponse {
72
+ JobTitle job_title = 1;
73
+ prisca.v1.global.meta.Meta meta = 2;
74
+ }
75
+
76
+ message GetListJobTitleResponse {
77
+ repeated BaseJobTitle job_title = 1;
78
+ prisca.v1.global.meta.Meta meta = 2;
79
+ }
80
+
81
+ message UpdateJobTitleResponse {
82
+ JobTitle job_title = 1;
83
+ prisca.v1.global.meta.Meta meta = 2;
84
+ }
85
+
86
+ message JobTitleGetByIdResponse {
87
+ BaseJobTitle job_title = 1;
88
+ prisca.v1.global.meta.Meta meta = 2;
89
+ }
@@ -0,0 +1,94 @@
1
+
2
+ syntax = "proto3";
3
+
4
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/line_of_activity";
5
+
6
+ import "prisca/v1/global/meta/meta.proto";
7
+
8
+ service ActivityService {
9
+ rpc GetActivityLineOfApproval (ActivityRequest) returns (ActivityResponse);
10
+ rpc GetLineOfProcessFlow (ProcessFlowRequest) returns (ProcessFlowResponse);
11
+ }
12
+
13
+ // type Activity struct {
14
+ // Id int `json:"id"`
15
+ // NewValue string `json:"new_value"`
16
+ // OldValue string `json:"old_value"`
17
+ // ChangeType string `json:"change_type"`
18
+ // Description string `json:"description"`
19
+ // ReferencesId string `json:"references_id" gorm:"<-:create;type:uuid;default:uuid_generate_v4()"`
20
+ // DocumentReferencesId string `json:"document_references_id" gorm:"type:uuid"`
21
+ // UpdatedAt time.Time `gorm:"autoUpdateTime" json:"updated_at"`
22
+ // CreatedAt time.Time `gorm:"<-:create;" json:"created_at"`
23
+ // CreatedBy string `json:"created_by"`
24
+ // UpdatedBy string `json:"updated_by"`
25
+ // Employees string `json:"employees" gorm:"-"`
26
+ // }
27
+
28
+
29
+
30
+ message LineOfActivity {
31
+ repeated ActivityApproval activity_approval = 1;
32
+ }
33
+
34
+ message ActivityApproval {
35
+ string action = 1;
36
+ string actor = 2;
37
+ string document = 3;
38
+ string timestamp = 4;
39
+ string note = 5;
40
+ repeated Activity activity = 6;
41
+ }
42
+
43
+ message Activity {
44
+ string new_value = 1;
45
+ string old_value = 2;
46
+ string change_type = 3;
47
+ string description = 4;
48
+ string employees = 5;
49
+ string created_at = 6;
50
+ string updated_at = 7;
51
+ string subkey = 8;
52
+ }
53
+
54
+ message ActivityRequest {
55
+ string document_type = 1;
56
+ string doc_references_id = 2;
57
+ }
58
+
59
+ message DocumentRequest {
60
+ string documents_refereneces = 1;
61
+ string status = 2;
62
+ string created_at = 3;
63
+ string created_by = 4;
64
+ string updated_at = 5;
65
+ string updated_by = 6;
66
+ }
67
+
68
+ message ActivityResponse {
69
+ LineOfActivity line_of_activity = 1;
70
+ prisca.v1.global.meta.Meta meta = 2;
71
+ }
72
+
73
+ message ProcessFlowRequest {
74
+ string reference_id = 1;
75
+ string transaction_type = 2;
76
+ }
77
+
78
+ message ProcessFlowResponse {
79
+ repeated ProcessFlow process_flow = 1;
80
+ prisca.v1.global.meta.Meta meta = 2;
81
+ }
82
+
83
+ message ProcessFlow {
84
+ string name = 1;
85
+ repeated ProcessFlowDetail details = 2;
86
+ }
87
+
88
+ message ProcessFlowDetail {
89
+ string transaction_number = 1;
90
+ string transaction_type = 2;
91
+ string transaction_status = 3;
92
+ string transaction_reference_id = 4;
93
+ string previous_transaction_reference_id = 5;
94
+ }
@@ -0,0 +1,113 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/prisca/v1/core/line_of_approval";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ import "prisca/v1/core/employee/employee.proto";
7
+
8
+ service LineOfApprovalService {
9
+ rpc CreateLineOfApproval(CreateLineOfApprovalRequest) returns (CreateLineOfApprovalResponse);
10
+ rpc UpdateLineOfApproval(UpdateLineOfApprovalRequest) returns (UpdateLineOfApprovalResponse);
11
+ rpc DeleteLineOfApproval(DeleteLineOfApprovalRequest) returns (DeleteLineOfApprovalResponse);
12
+ rpc GetLineOfApprovalById(GetLineOfApprovalByIdRequest) returns (GetLineOfApprovalByIdResponse);
13
+ rpc GetListLineOfApprovals(GetListLineOfApprovalRequest) returns (GetListLineOfApprovalResponse);
14
+ rpc GetListAllLineOfApprovals(GetListLineOfApprovalRequest) returns (GetListAllLineOfApprovalResponse);
15
+ rpc GetVendorLineOfApproval(GetLineOfApprovalByIdRequest) returns (GetVendorLineOfApprovalResponse);
16
+ }
17
+
18
+ message LineOfApproval {
19
+ int32 id = 1;
20
+ string workflow_ref = 2;
21
+ string document_ref = 3;
22
+ string employees_ref_id = 4;
23
+ string status = 5;
24
+ string references_id = 6;
25
+ string created_at = 7; // ISO 8601 format
26
+ string updated_at = 8; // Nullable, ISO 8601 format
27
+ string document_type = 9;
28
+ optional Employee employees = 10;
29
+ string approval_note = 11;
30
+ string companies_references_id = 12;
31
+ string group_reference = 13;
32
+ int32 sequence = 14;
33
+ string edit_access = 15;
34
+ }
35
+
36
+ message VendorLineOfApproval {
37
+ string references_id = 1;
38
+ string vendor_references_id = 2;
39
+ bool is_expired = 3;
40
+ }
41
+
42
+ // Request Messages
43
+ message BaseLineOfApprovalRequest {
44
+ string status = 1; // Enum values: rejected, pending, approved, fully approved
45
+ string approval_note = 2;
46
+ }
47
+
48
+ message CreateLineOfApprovalRequest {
49
+ BaseLineOfApprovalRequest base_line_of_approval = 1;
50
+ }
51
+
52
+ message UpdateLineOfApprovalRequest {
53
+ string references_id = 1;
54
+ BaseLineOfApprovalRequest base_line_of_approval = 2;
55
+ }
56
+
57
+ message DeleteLineOfApprovalRequest {
58
+ string references_id = 1;
59
+ }
60
+
61
+ message GetLineOfApprovalByIdRequest {
62
+ string references_id = 1;
63
+ }
64
+
65
+ message GetListLineOfApprovalRequest {
66
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
67
+ prisca.v1.global.meta.FilterRequest query = 2;
68
+ }
69
+
70
+ // Response Messages
71
+ message CreateLineOfApprovalResponse {
72
+ LineOfApproval line_of_approval = 1;
73
+ prisca.v1.global.meta.Meta meta = 2;
74
+ }
75
+
76
+ message UpdateLineOfApprovalResponse {
77
+ LineOfApproval line_of_approval = 1;
78
+ prisca.v1.global.meta.Meta meta = 2;
79
+ }
80
+
81
+ message DeleteLineOfApprovalResponse {
82
+ string references_id = 1;
83
+ prisca.v1.global.meta.Meta meta = 2;
84
+ }
85
+
86
+ message GetLineOfApprovalByIdResponse {
87
+ LineOfApproval line_of_approval = 1;
88
+ prisca.v1.global.meta.Meta meta = 2;
89
+ }
90
+
91
+ message GetListLineOfApprovalResponse {
92
+ repeated LineOfApproval line_of_approvals = 1;
93
+ prisca.v1.global.meta.Meta meta = 2;
94
+ }
95
+
96
+ message GetVendorLineOfApprovalResponse {
97
+ VendorLineOfApproval vendor_line_of_approval = 1;
98
+ prisca.v1.global.meta.Meta meta = 2;
99
+ }
100
+
101
+ message BaseListAllLineOfApproval {
102
+ optional LineOfApproval line_of_approval = 1;
103
+ string document_number = 2;
104
+ string title = 3;
105
+ string department = 4;
106
+ string status = 5;
107
+ string remarks = 6;
108
+ }
109
+
110
+ message GetListAllLineOfApprovalResponse {
111
+ repeated BaseListAllLineOfApproval line_of_approvals = 1;
112
+ prisca.v1.global.meta.Meta meta = 2;
113
+ }
@@ -0,0 +1,78 @@
1
+ syntax = "proto3";
2
+
3
+ option go_package = "gitlab.com/integra_sm/prisca-v2-proto/protocgen/cherry/v1/core/link_data_source";
4
+
5
+ import "prisca/v1/global/meta/meta.proto";
6
+ service LinkDataSourceService {
7
+ rpc CreateLinkDataSource (CreateLinkDataSourceReq) returns (CreateLinkDataSourceRes);
8
+ rpc UpdateLinkDataSource (UpdateLinkDataSourceReq) returns (UpdateLinkDataSourceRes);
9
+ rpc GetIdLinkDataSource (GetIdLinkDataSourceReq) returns (GetIdLinkDataSourceRes);
10
+ rpc GetListLinkDataSource (GetListLinkDataSourceReq) returns (GetListLinkDataSourceRes);
11
+ rpc DeleteLinkDatasource (DeleteLinkDataSourceReq) returns (DeleteLinkDataSourceRes);
12
+ }
13
+
14
+ message LinkDataSource {
15
+ int64 id = 1;
16
+ string url = 2;
17
+ string name = 3;
18
+ string key = 4;
19
+ string auth_type = 5;
20
+ string references_id = 6;
21
+ string created_at = 7; // Use ISO 8601 format for date strings
22
+ string updated_at = 8; // Optional, nullable
23
+ }
24
+
25
+ message BaseLinkDataSourceReq {
26
+ string url = 1;
27
+ string key = 2;
28
+ string auth_key = 3;
29
+ }
30
+
31
+ message CreateLinkDataSourceReq {
32
+ BaseLinkDataSourceReq base_link_data_source = 1;
33
+ }
34
+
35
+ message UpdateLinkDataSourceReq {
36
+ int64 id = 1;
37
+ BaseLinkDataSourceReq base_link_data_source = 2;
38
+ }
39
+
40
+ message GetIdLinkDataSourceReq {
41
+ int64 id = 1;
42
+ }
43
+
44
+ message DeleteLinkDataSourceReq {
45
+ int64 id = 1;
46
+ }
47
+
48
+ message GetListLinkDataSourceReq {
49
+ prisca.v1.global.meta.PaginationRequest pagination = 1;
50
+ prisca.v1.global.meta.FilterRequest query = 2;
51
+ }
52
+
53
+ // response
54
+
55
+ message CreateLinkDataSourceRes {
56
+ LinkDataSource link_data_source = 1;
57
+ prisca.v1.global.meta.Meta meta =2;
58
+ }
59
+
60
+ message UpdateLinkDataSourceRes {
61
+ LinkDataSource link_data_source = 1;
62
+ prisca.v1.global.meta.Meta meta =2;
63
+ }
64
+
65
+ message GetIdLinkDataSourceRes {
66
+ LinkDataSource link_data_source = 1;
67
+ prisca.v1.global.meta.Meta meta =2;
68
+ }
69
+
70
+ message DeleteLinkDataSourceRes {
71
+ int64 id = 1;
72
+ prisca.v1.global.meta.Meta meta =2;
73
+ }
74
+
75
+ message GetListLinkDataSourceRes {
76
+ repeated LinkDataSource link_data_source = 1;
77
+ prisca.v1.global.meta.Meta meta =2;
78
+ }