@aldiokta/protocgen 1.0.32 → 1.0.34

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 (73) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/core/auth/auth_grpc_pb.js +311 -0
  3. package/prisca/v1/core/auth/auth_pb.js +3236 -0
  4. package/prisca/v1/core/company/company_grpc_pb.js +177 -0
  5. package/prisca/v1/core/company/company_pb.js +2875 -0
  6. package/prisca/v1/core/department_material/department_material_grpc_pb.js +144 -0
  7. package/prisca/v1/core/department_material/department_material_pb.js +2167 -0
  8. package/prisca/v1/core/job_grade/job_grade_grpc_pb.js +178 -0
  9. package/prisca/v1/core/job_grade/job_grade_pb.js +2605 -0
  10. package/prisca/v1/core/job_position/job_position_grpc_pb.js +181 -0
  11. package/prisca/v1/core/job_position/job_position_pb.js +3732 -0
  12. package/prisca/v1/core/job_title/job_title_grpc_pb.js +178 -0
  13. package/prisca/v1/core/job_title/job_title_pb.js +2928 -0
  14. package/prisca/v1/core/location/location_grpc_pb.js +837 -0
  15. package/prisca/v1/core/location/location_pb.js +10879 -0
  16. package/prisca/v1/core/material/material_grpc_pb.js +181 -0
  17. package/prisca/v1/core/material/material_pb.js +4076 -0
  18. package/prisca/v1/core/material_group/material_group_grpc_pb.js +177 -0
  19. package/prisca/v1/core/material_group/material_group_pb.js +2582 -0
  20. package/prisca/v1/core/material_type/material_type_grpc_pb.js +147 -0
  21. package/prisca/v1/core/material_type/material_type_pb.js +2399 -0
  22. package/prisca/v1/core/number_range/number_range_grpc_pb.js +177 -0
  23. package/prisca/v1/core/number_range/number_range_pb.js +2672 -0
  24. package/prisca/v1/core/organization/organization_grpc_pb.js +180 -0
  25. package/prisca/v1/core/organization/organization_pb.js +3002 -0
  26. package/prisca/v1/core/organization_level/organization_level_grpc_pb.js +177 -0
  27. package/prisca/v1/core/organization_level/organization_level_pb.js +2432 -0
  28. package/prisca/v1/core/procurement/procurement_grpc_pb.js +146 -0
  29. package/prisca/v1/core/procurement/procurement_pb.js +1681 -0
  30. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_grpc_pb.js +266 -0
  31. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx_pb.js +4429 -0
  32. package/prisca/v1/core/recipient_roles/recipient_roles_grpc_pb.js +1 -0
  33. package/prisca/v1/core/recipient_roles/recipient_roles_pb.js +206 -0
  34. package/prisca/v1/core/tax_code/tax_code_grpc_pb.js +177 -0
  35. package/prisca/v1/core/tax_code/tax_code_pb.js +2582 -0
  36. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +421 -0
  37. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +9138 -0
  38. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_grpc_pb.js +180 -0
  39. package/prisca/v1/core/unit_of_measurement/unit_of_measurement_pb.js +2798 -0
  40. package/prisca/v1/core/users/users_grpc_pb.js +1 -0
  41. package/prisca/v1/core/users/users_pb.js +626 -0
  42. package/prisca/v1/core/users_role/users_role_grpc_pb.js +177 -0
  43. package/prisca/v1/core/users_role/users_role_pb.js +2372 -0
  44. package/prisca/v1/core/work_location/work_location_grpc_pb.js +179 -0
  45. package/prisca/v1/core/work_location/work_location_pb.js +3972 -0
  46. package/prisca/v1/core/workflow/workflow_grpc_pb.js +179 -0
  47. package/prisca/v1/core/workflow/workflow_pb.js +6426 -0
  48. package/prisca/v1/global/meta/meta_grpc_pb.js +1 -0
  49. package/prisca/v1/global/meta/meta_pb.js +1179 -0
  50. package/prisca/v1/core/auth/auth.proto +0 -114
  51. package/prisca/v1/core/company/company.proto +0 -86
  52. package/prisca/v1/core/department_material/department_material.proto +0 -69
  53. package/prisca/v1/core/job_grade/job_grade.proto +0 -79
  54. package/prisca/v1/core/job_position/job_position.proto +0 -112
  55. package/prisca/v1/core/job_title/job_title.proto +0 -88
  56. package/prisca/v1/core/location/location.proto +0 -289
  57. package/prisca/v1/core/material/material.proto +0 -128
  58. package/prisca/v1/core/material_group/material_group.proto +0 -79
  59. package/prisca/v1/core/material_type/material_type.proto +0 -77
  60. package/prisca/v1/core/number_range/number_range.proto +0 -81
  61. package/prisca/v1/core/organization/organization.proto +0 -93
  62. package/prisca/v1/core/organization_level/organization_level.proto +0 -73
  63. package/prisca/v1/core/procurement/procurement.proto +0 -54
  64. package/prisca/v1/core/purchase_requisition_trx/purchase_requisition_trx.proto +0 -131
  65. package/prisca/v1/core/recipient_roles/recipient_roles.proto +0 -10
  66. package/prisca/v1/core/tax_code/tax_code.proto +0 -79
  67. package/prisca/v1/core/transaction_builder/transaction_builder.proto +0 -265
  68. package/prisca/v1/core/unit_of_measurement/unit_of_measurement.proto +0 -88
  69. package/prisca/v1/core/users/users.proto +0 -22
  70. package/prisca/v1/core/users_role/users_role.proto +0 -72
  71. package/prisca/v1/core/work_location/work_location.proto +0 -122
  72. package/prisca/v1/core/workflow/workflow.proto +0 -193
  73. package/prisca/v1/global/meta/meta.proto +0 -57
@@ -1,93 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/organization";
4
-
5
- // Importing necessary dependencies
6
- import "prisca/v1/global/meta/meta.proto";
7
- import "prisca/v1/core/company/company.proto";
8
- import "prisca/v1/core/work_location/work_location.proto";
9
- import "prisca/v1/core/organization_level/organization_level.proto";
10
-
11
- service OrganizationsService {
12
- rpc CreateOrganization(CreateOrganizationRequest) returns (CreateOrganizationResponse);
13
- rpc GetOrganizationById(OrganizationGetByIdRequest) returns (OrganizationGetByIdResponse);
14
- rpc UpdateOrganization(UpdateOrganizationRequest) returns (UpdateOrganizationResponse);
15
- rpc DeleteOrganization(DeleteOrganizationRequest) returns (DeleteOrganizationResponse);
16
- rpc GetListOrganization(GetListOrganizationRequest) returns (GetListOrganizationResponse);
17
- }
18
-
19
- message Organization {
20
- string references_id = 1;
21
- string code = 2;
22
- string name = 3;
23
- string cost_center_code = 4;
24
- string parent_references_id = 5;
25
- BaseOrganization parent = 6;
26
- string organization_level_references_id = 7;
27
- BaseOrganizationLevel organization_level = 8;
28
- string work_location_references_id = 9;
29
- WorkLocation work_locations = 10;
30
- string description = 11;
31
- string companies_references_id = 12;
32
- BaseCompanyParent companies = 13;
33
- }
34
-
35
- message BaseOrganization {
36
- string code = 1;
37
- string name = 2;
38
- string cost_center_code = 3;
39
- string parent_references_id = 4;
40
- string organization_level_references_id = 5;
41
- string work_location_references_id = 6;
42
- string companies_references_id = 7;
43
- string description = 8;
44
- }
45
-
46
-
47
- message OrganizationGetByIdRequest {
48
- string references_id = 1;
49
- }
50
-
51
- message CreateOrganizationRequest {
52
- BaseOrganization organization = 1;
53
- }
54
-
55
- message UpdateOrganizationRequest {
56
- string references_id = 1;
57
- BaseOrganization organization = 2;
58
- }
59
-
60
- message DeleteOrganizationRequest {
61
- int64 id = 1;
62
- }
63
-
64
- message DeleteOrganizationResponse {
65
- int64 id = 1;
66
- prisca.v1.global.meta.Meta meta = 2;
67
- }
68
-
69
- message GetListOrganizationRequest {
70
- prisca.v1.global.meta.PaginationRequest pagination = 1;
71
- prisca.v1.global.meta.FilterRequest query = 2;
72
- }
73
-
74
- // Response Messages
75
- message CreateOrganizationResponse {
76
- Organization organization = 1;
77
- prisca.v1.global.meta.Meta meta = 2;
78
- }
79
-
80
- message GetListOrganizationResponse {
81
- repeated Organization organization = 1;
82
- prisca.v1.global.meta.Meta meta = 2;
83
- }
84
-
85
- message UpdateOrganizationResponse {
86
- Organization organization = 1;
87
- prisca.v1.global.meta.Meta meta = 2;
88
- }
89
-
90
- message OrganizationGetByIdResponse {
91
- Organization organization = 1;
92
- prisca.v1.global.meta.Meta meta = 2;
93
- }
@@ -1,73 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/organization_level";
4
-
5
- // Importing necessary dependencies
6
- import "prisca/v1/global/meta/meta.proto";
7
-
8
- service OrganizationLevelService {
9
- rpc CreateOrganizationLevel(CreateOrganizationLevelRequest) returns (CreateOrganizationLevelResponse);
10
- rpc GetOrganizationLevelById(OrganizationLevelGetByIdRequest) returns (OrganizationLevelGetByIdResponse);
11
- rpc UpdateOrganizationLevel(UpdateOrganizationLevelRequest) returns (UpdateOrganizationLevelResponse);
12
- rpc DeleteOrganizationLevel(DeleteOrganizationLevelRequest) returns (DeleteOrganizationLevelResponse);
13
- rpc GetListOrganizationLevel(GetListOrganizationLevelRequest) returns (GetListOrganizationLevelResponse);
14
- }
15
-
16
- message OrganizationLevel {
17
- string name = 1;
18
- int64 level = 2;
19
- }
20
-
21
- message BaseOrganizationLevel {
22
- string references_id = 1;
23
- string name = 2;
24
- int64 level = 3;
25
- }
26
-
27
- message OrganizationLevelGetByIdRequest {
28
- string references_id = 1;
29
- }
30
-
31
- message OrganizationLevelGetByIdResponse {
32
- BaseOrganizationLevel organization_level = 1;
33
- prisca.v1.global.meta.Meta meta = 2;
34
- }
35
-
36
- message UpdateOrganizationLevelRequest {
37
- string references_id = 1;
38
- OrganizationLevel organization_level = 2;
39
- }
40
-
41
- message UpdateOrganizationLevelResponse {
42
- OrganizationLevel organization_level = 1;
43
- prisca.v1.global.meta.Meta meta = 2;
44
- }
45
-
46
- message CreateOrganizationLevelRequest {
47
- OrganizationLevel organization_level = 1;
48
- }
49
-
50
- message CreateOrganizationLevelResponse {
51
- OrganizationLevel organization_level = 1;
52
- prisca.v1.global.meta.Meta meta = 2;
53
- }
54
-
55
- message DeleteOrganizationLevelRequest {
56
- int64 id = 1;
57
- }
58
-
59
-
60
- message DeleteOrganizationLevelResponse {
61
- int64 id = 1;
62
- prisca.v1.global.meta.Meta meta = 2;
63
- }
64
-
65
- message GetListOrganizationLevelRequest {
66
- prisca.v1.global.meta.PaginationRequest pagination = 1;
67
- prisca.v1.global.meta.FilterRequest query = 2;
68
- }
69
-
70
- message GetListOrganizationLevelResponse {
71
- repeated BaseOrganizationLevel organization_level = 1;
72
- prisca.v1.global.meta.Meta meta = 2;
73
- }
@@ -1,54 +0,0 @@
1
- // protoc --go_out=. --go-grpc_out=. proto/prisca/procurement/v1/private/*.proto
2
-
3
- syntax = "proto3";
4
-
5
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/procurement";
6
-
7
- service ProcurementService {
8
- rpc Create(CreatePRRequest) returns (PRDetailResponse);
9
- rpc Update(UpdatePRRequest) returns (PRDetailResponse);
10
- rpc Get(GetPRRequest) returns (PRListResponse);
11
- rpc GetSingle(GetSinglePRRequest) returns (PRDetailResponse);
12
- rpc Delete(GetSinglePRRequest) returns (SuccessResponse);
13
- }
14
-
15
- message ResponseMeta {
16
- int64 limit = 1;
17
- int64 offset = 2;
18
- int64 Total = 3;
19
- }
20
-
21
- message GetPRRequest {
22
- int64 limit = 1;
23
- int64 offset = 2;
24
- string PrNumber = 3;
25
- }
26
-
27
- message CreatePRRequest {
28
- string PrNumber = 1;
29
- string Title = 2;
30
- }
31
-
32
- message UpdatePRRequest {
33
- int64 Id = 1;
34
- string PrNumber = 2;
35
- string Title = 3;
36
- }
37
-
38
- message GetSinglePRRequest { int64 Id = 1; }
39
-
40
- message PRDetailResponse {
41
- int64 Id = 1;
42
- string PrNumber = 2;
43
- string Title = 3;
44
- string ReferencesId = 4;
45
- string CreatedAt = 5;
46
- string UpdatedAt = 6;
47
- }
48
-
49
- message PRListResponse {
50
- repeated PRDetailResponse PurchaseRequests = 1;
51
- ResponseMeta Meta = 2;
52
- }
53
-
54
- message SuccessResponse { string Response = 1; }
@@ -1,131 +0,0 @@
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
- }
@@ -1,10 +0,0 @@
1
- syntax = "proto3";
2
-
3
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/recipient_roles";
4
-
5
- //import "prisca/v1/global/meta/meta.proto";
6
-
7
- message RecipientRoles {
8
- int64 id = 1;
9
- string description = 2;
10
- }
@@ -1,79 +0,0 @@
1
- syntax = "proto3";
2
-
3
- package prisca.v1.core.tax_code;
4
-
5
- option go_package = "gitlab.com/integra_sm/prisca-v2-core-service/protocgen/prisca/v1/core/tax_code;tax_code";
6
-
7
- import "prisca/v1/global/meta/meta.proto";
8
-
9
- service TaxCodeService {
10
- rpc CreateTaxCode(CreateTaxCodeRequest) returns (CreateTaxCodeResponse);
11
- rpc UpdateTaxCode(UpdateTaxCodeRequest) returns (UpdateTaxCodeResponse);
12
- rpc GetTaxCodeById(GetTaxCodeByIdRequest) returns (GetTaxCodeByIdResponse);
13
- rpc GetListTaxCode(GetListTaxCodeRequest) returns (GetListTaxCodeResponse);
14
- rpc DeleteTaxCode(DeleteTaxCodeRequest) returns (DeleteTaxCodeResponse);
15
- }
16
-
17
- message TaxCode {
18
- int64 id = 1;
19
- string code = 2;
20
- string code_name = 3;
21
- string procedure = 4;
22
- string references_id = 5;
23
- string created_at = 6; // Use ISO 8601 format for date strings
24
- string updated_at = 7; // Optional, nullable
25
- }
26
-
27
- message BaseTaxCode {
28
- string code = 1;
29
- string code_name = 2;
30
- string procedure = 3;
31
- }
32
- message CreateTaxCodeRequest {
33
- BaseTaxCode base_tax_code = 1;
34
- }
35
-
36
- message CreateTaxCodeResponse {
37
- TaxCode tax_code = 1;
38
- prisca.v1.global.meta.Meta meta = 2;
39
- }
40
-
41
- message UpdateTaxCodeRequest {
42
- string references_id = 1;
43
- BaseTaxCode base_tax_code = 2;
44
- }
45
-
46
- message UpdateTaxCodeResponse {
47
- TaxCode tax_code = 1;
48
- prisca.v1.global.meta.Meta meta = 2;
49
- }
50
-
51
- message GetTaxCodeByIdRequest {
52
- string references_id = 1;
53
- }
54
-
55
- message GetTaxCodeByIdResponse {
56
- TaxCode tax_code = 1;
57
- prisca.v1.global.meta.Meta meta = 2;
58
- }
59
-
60
- message GetListTaxCodeRequest {
61
- prisca.v1.global.meta.PaginationRequest pagination = 1;
62
- prisca.v1.global.meta.FilterRequest query = 2;
63
- }
64
-
65
- message GetListTaxCodeResponse {
66
- repeated TaxCode tax_codes = 1;
67
- prisca.v1.global.meta.Meta meta = 2;
68
- }
69
-
70
- message DeleteTaxCodeRequest {
71
- string references_id = 1;
72
- }
73
-
74
- message DeleteTaxCodeResponse {
75
- string references_id = 1;
76
- prisca.v1.global.meta.Meta meta = 2;
77
- }
78
-
79
-
@@ -1,265 +0,0 @@
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 TransactionBuilderFieldsTable {
62
- int64 transaction_builder_id = 1;
63
- int64 orders = 2;
64
- string key = 3;
65
- string label = 4;
66
- string references_id = 5;
67
- PropertiesTable properties = 6;
68
- }
69
-
70
- message PropertiesTable {
71
- bool is_main = 1;
72
- string data_type = 2;
73
- }
74
-
75
- // model
76
- message TransactionBuilderFields {
77
- int64 id = 1;
78
- int64 transaction_builder_id = 2;
79
- string key = 3;
80
- string label = 4;
81
- repeated FieldRules field_rules = 5;
82
- repeated FieldViews field_views = 6;
83
- string value = 7;
84
- string references_id = 8;
85
- }
86
-
87
- message TransactionBuilderFieldsBase {
88
- string key = 1;
89
- string label = 2;
90
- repeated FieldRules field_rules = 3;
91
- repeated FieldViews field_views = 4;
92
- bool is_master = 5;
93
- string references_id = 6;
94
- }
95
-
96
- message FieldRulesWithProp {
97
- optional int64 id = 1;
98
- string name = 2;
99
- string properties = 3;
100
- optional string transaction_builder_field_ref = 4;
101
- }
102
-
103
-
104
- message FieldRules {
105
- optional int64 id = 1;
106
- string name = 2;
107
- string properties = 3;
108
- optional string transaction_builder_field_ref = 4;
109
- }
110
-
111
- message FieldViews {
112
- optional int64 id = 1;
113
- string name = 2;
114
- string orders = 3;
115
- string properties = 4;
116
- optional string transaction_builder_field_ref = 5;
117
- }
118
-
119
- message TransactionBuilder {
120
- int64 id = 1;
121
- string name = 2;
122
- }
123
-
124
- message TransactionBuilderWithDetails {
125
- int64 id = 1;
126
- string name = 2;
127
- repeated TransactionBuilderFields transaction_builder_fields = 3;
128
- }
129
-
130
- message TransactionBuilderWithDetailTableRes {
131
- int64 id = 1;
132
- string name = 2;
133
- repeated TransactionBuilderFieldsTable transaction_builder_fields = 3;
134
- }
135
-
136
- message TransactionBuilderWithDetailFormRes {
137
- int64 id = 1;
138
- string name = 2;
139
- repeated TransactionBuilderFieldsForm transaction_builder_fields = 3;
140
- }
141
-
142
- message TransactionBuilderWithDetailRes {
143
- int64 id = 1;
144
- string name = 2;
145
- repeated TransactionBuilderFieldsDetail transaction_builder_fields = 3;
146
- }
147
-
148
- message TransactionBuilderConfig {
149
- string name = 1;
150
- int64 transaction_builder_id = 2;
151
- string type = 3;
152
- }
153
-
154
-
155
- // request builder
156
- message TransactionBuilderRequest {
157
- string name = 1;
158
- }
159
-
160
- message GetTransactionBuilderById {
161
- int64 id = 1;
162
- }
163
-
164
- message GetTransactionBuilderByIdWithDetail {
165
- int64 id = 1;
166
- }
167
-
168
- message EditTransactionBuilderById {
169
- int64 id = 1;
170
- string name = 2;
171
- }
172
-
173
- message GetTransactionBuilderList {
174
- prisca.v1.global.meta.PaginationRequest pagination = 1;
175
- }
176
- // request transaction field
177
- message TransactionFieldsRequest {
178
- int64 id = 1;
179
- repeated TransactionBuilderFieldsBase transaction_builder_fields= 2;
180
- }
181
-
182
- message GetTransactionFieldsById {
183
- int64 id =1;
184
- }
185
-
186
- message EditTransactionFieldsById {
187
- TransactionBuilderFields transaction_field =1 ;
188
- }
189
-
190
- // request transaction config
191
- message TransactionConfigRequest {
192
- TransactionBuilderConfig transaction_builder_config = 1;
193
- }
194
-
195
- message GetTransactionConfigById {
196
- int64 id =1;
197
- }
198
-
199
- message GetTransactionConfigList {
200
- prisca.v1.global.meta.PaginationRequest pagination = 1;
201
- }
202
-
203
- message EditTransactionConfigById {
204
- TransactionBuilderConfig transaction_congfig =1 ;
205
- }
206
-
207
- // response builder
208
- message ResponseTransactionBuilder {
209
- TransactionBuilder transaction_builder =1;
210
- prisca.v1.global.meta.Meta meta =2;
211
- }
212
-
213
- message ResponseTransactionBuilderWithDetailList {
214
- repeated TransactionBuilderWithDetails transaction_builder = 1;
215
- prisca.v1.global.meta.Meta meta =2;
216
- }
217
-
218
- message ResponseTransactionBuilderWithDetails {
219
- TransactionBuilderWithDetails transaction_builder = 1;
220
- prisca.v1.global.meta.Meta meta =2;
221
- }
222
-
223
- message ResponseTransactionBuilderWithDetailTable {
224
- TransactionBuilderWithDetailTableRes transaction_builder = 1;
225
- prisca.v1.global.meta.Meta meta =2;
226
- }
227
-
228
- message ResponseTransactionBuilderWithDetailForm {
229
- TransactionBuilderWithDetailFormRes transaction_builder = 1;
230
- prisca.v1.global.meta.Meta meta =2;
231
- }
232
-
233
- message ResponseTransactionBuilderWithDetail {
234
- TransactionBuilderWithDetailRes transaction_builder = 1;
235
- prisca.v1.global.meta.Meta meta =2;
236
- }
237
-
238
-
239
- message ResponseTransactionBuilderList {
240
- repeated TransactionBuilder transaction_builders = 1;
241
- prisca.v1.global.meta.Meta meta =2;
242
- }
243
-
244
-
245
- // response fields
246
- message ResponseTransactionFieldsList {
247
- repeated TransactionBuilderFields transaction_fields = 1;
248
- prisca.v1.global.meta.Meta meta =2;
249
- }
250
-
251
- message ResponseTransactionFields {
252
- TransactionBuilderFieldsBase transaction_field = 1;
253
- prisca.v1.global.meta.Meta meta =2;
254
- }
255
-
256
-
257
- // response config
258
- message ResponseTransactionConfig {
259
- TransactionBuilderConfig transaction_builder_config = 1;
260
- }
261
-
262
- message ResponseTransactionConfigList {
263
- repeated TransactionBuilderConfig transaction_builder_config = 1;
264
- prisca.v1.global.meta.Meta meta =2;
265
- }