@alexochihua/protos 1.0.5 → 1.0.7

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 (76) hide show
  1. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.d.ts +365 -0
  2. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js +1798 -0
  3. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs.js.map +1 -0
  4. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.d.ts +89 -0
  5. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js +849 -0
  6. package/dist/generated/kapital/fraud_catalogs/v1/fraud_catalogs_types.js.map +1 -0
  7. package/dist/generated/kapital/fraud_groups/v1/fraud_groups.d.ts +475 -0
  8. package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js +2446 -0
  9. package/dist/generated/kapital/fraud_groups/v1/fraud_groups.js.map +1 -0
  10. package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.d.ts +63 -0
  11. package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js +571 -0
  12. package/dist/generated/kapital/fraud_groups/v1/fraud_groups_types.js.map +1 -0
  13. package/dist/generated/kapital/fraud_rules/v1/fraud_rules.d.ts +241 -0
  14. package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js +1282 -0
  15. package/dist/generated/kapital/fraud_rules/v1/fraud_rules.js.map +1 -0
  16. package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.d.ts +56 -0
  17. package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js +499 -0
  18. package/dist/generated/kapital/fraud_rules/v1/fraud_rules_types.js.map +1 -0
  19. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.d.ts +449 -0
  20. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js +2304 -0
  21. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists.js.map +1 -0
  22. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.d.ts +63 -0
  23. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js +571 -0
  24. package/dist/generated/kapital/fraud_whitelists/v1/fraud_whitelists_types.js.map +1 -0
  25. package/dist/generated/kapital/frauds/v1/frauds.d.ts +164 -0
  26. package/dist/generated/kapital/frauds/v1/frauds.js +833 -0
  27. package/dist/generated/kapital/frauds/v1/frauds.js.map +1 -0
  28. package/dist/generated/kapital/frauds/v1/frauds_types.d.ts +62 -0
  29. package/dist/generated/kapital/frauds/v1/frauds_types.js +561 -0
  30. package/dist/generated/kapital/frauds/v1/frauds_types.js.map +1 -0
  31. package/dist/generated/kapital/products/v1/products.d.ts +1 -1
  32. package/dist/generated/kapital/products/v1/products.js +3 -3
  33. package/dist/generated/kapital/products/v1/products.js.map +1 -1
  34. package/dist/index.d.ts +10 -0
  35. package/dist/index.js +11 -1
  36. package/dist/index.js.map +1 -1
  37. package/package.json +71 -1
  38. package/proto/kapital/accounts/v1/accounts.proto +80 -80
  39. package/proto/kapital/accounts/v1/accounts_types.proto +31 -31
  40. package/proto/kapital/accumulates/v1/accumulates_service.proto +81 -81
  41. package/proto/kapital/accumulates/v1/accumulates_types.proto +30 -30
  42. package/proto/kapital/cards/v1/cards.proto +32 -32
  43. package/proto/kapital/cards/v1/cards_types.proto +33 -33
  44. package/proto/kapital/collections_recovery/v1/collections_recovery.proto +80 -80
  45. package/proto/kapital/collections_recovery/v1/collections_recovery_types.proto +46 -46
  46. package/proto/kapital/commissions/v1/commissions.proto +69 -69
  47. package/proto/kapital/commissions/v1/commissions_types.proto +21 -21
  48. package/proto/kapital/common/v1/error.proto +18 -18
  49. package/proto/kapital/common/v1/meta.proto +13 -13
  50. package/proto/kapital/common/v1/pagination.proto +18 -18
  51. package/proto/kapital/contracts/v1/contracts_types.proto +315 -315
  52. package/proto/kapital/credit_accounts/v1/credit_accounts.proto +84 -84
  53. package/proto/kapital/credit_accounts/v1/credit_accounts_types.proto +40 -40
  54. package/proto/kapital/credit_configurations/v1/credit_configurations.proto +54 -54
  55. package/proto/kapital/credit_configurations/v1/credit_configurations_types.proto +14 -14
  56. package/proto/kapital/fraud_catalogs/v1/fraud_catalogs.proto +177 -0
  57. package/proto/kapital/fraud_catalogs/v1/fraud_catalogs_types.proto +81 -0
  58. package/proto/kapital/fraud_groups/v1/fraud_groups.proto +242 -0
  59. package/proto/kapital/fraud_groups/v1/fraud_groups_types.proto +55 -0
  60. package/proto/kapital/fraud_rules/v1/fraud_rules.proto +127 -0
  61. package/proto/kapital/fraud_rules/v1/fraud_rules_types.proto +48 -0
  62. package/proto/kapital/fraud_whitelists/v1/fraud_whitelists.proto +227 -0
  63. package/proto/kapital/fraud_whitelists/v1/fraud_whitelists_types.proto +55 -0
  64. package/proto/kapital/frauds/v1/frauds.proto +90 -0
  65. package/proto/kapital/frauds/v1/frauds_types.proto +54 -0
  66. package/proto/kapital/offers/v1/offers.proto +111 -111
  67. package/proto/kapital/offers/v1/offers_types.proto +54 -54
  68. package/proto/kapital/payments/v1/payments.proto +93 -93
  69. package/proto/kapital/payments/v1/payments_types.proto +17 -17
  70. package/proto/kapital/payments_methods/v1/payments_methods.proto +511 -511
  71. package/proto/kapital/payments_methods/v1/payments_methods_types.proto +157 -157
  72. package/proto/kapital/product_groups/v1/product_groups.proto +150 -150
  73. package/proto/kapital/product_groups/v1/product_groups_types.proto +48 -48
  74. package/proto/kapital/products/v1/products.proto +1 -1
  75. package/proto/kapital/transactions/v1/transactions.proto +70 -70
  76. package/proto/kapital/transactions/v1/transactions_types.proto +90 -90
@@ -1,157 +1,157 @@
1
- syntax = "proto3";
2
-
3
- package kapital.payments_methods.v1;
4
-
5
- option go_package = "kapital/payments_methods/v1;paymentsmethodsv1";
6
-
7
- message CardInventory {
8
- string id = 1;
9
- string card_number = 2;
10
- string bin = 3;
11
- string card_type = 4;
12
- string brand = 5;
13
- string product = 6;
14
- string creation_date = 7;
15
- string expiration_date = 8;
16
- string status = 9;
17
- string manufactured = 10;
18
- string customer_name = 11;
19
- string assigned_client = 12;
20
- string responsible_user = 13;
21
- string last_update = 14;
22
- string lot = 15;
23
- string branch = 16;
24
- string branch_id = 17;
25
- string channel = 18;
26
- string created_at = 19;
27
- string updated_at = 20;
28
- }
29
-
30
- message ManufacturingBatch {
31
- string id = 1;
32
- string brand = 2;
33
- string card_carrier = 3;
34
- int32 cards = 4;
35
- string delivery = 5;
36
- string destination_branch = 6;
37
- string generation_date = 7;
38
- int32 innominative_card_quantity = 8;
39
- string issuance = 9;
40
- string status = 10;
41
- string created_at = 11;
42
- string updated_at = 12;
43
- }
44
-
45
- message VirtualCard {
46
- string id = 1;
47
- string card_number = 2;
48
- string product_type = 3;
49
- string status = 4;
50
- string customer_name = 5;
51
- string customer_id = 6;
52
- string expiration_date = 7;
53
- string created_at = 8;
54
- string updated_at = 9;
55
- }
56
-
57
- message CatalogItem {
58
- string value = 1;
59
- string label = 2;
60
- }
61
-
62
- message CardTracking {
63
- string id = 1;
64
- string card_number = 2;
65
- string creation_shipping_address = 3;
66
- string last_location = 4;
67
- string date_last_location = 5;
68
- string created_at = 6;
69
- string updated_at = 7;
70
- }
71
-
72
- message BatchCard {
73
- string id = 1;
74
- string id_short = 2;
75
- string number_card = 3;
76
- string agreement = 4;
77
- string personalization_type = 5;
78
- string personalization_nombre = 6;
79
- string status_value = 7;
80
- string status_label = 8;
81
- }
82
-
83
- message ProductDetail {
84
- string product_type = 1;
85
- string product_type_label = 2;
86
- string personalization_id = 3;
87
- string brand = 4;
88
- string brand_label = 5;
89
- string bin = 6;
90
- string sub_bin = 7;
91
- string country = 8;
92
- string country_label = 9;
93
- bool multi_currency = 10;
94
- string main_currency = 11;
95
- string main_currency_label = 12;
96
- string main_currency_code = 13;
97
- string product_key = 14;
98
- int32 card_digits = 15;
99
- string validity = 16;
100
- }
101
-
102
- message Cardholder {
103
- string nombre = 1;
104
- string apellido = 2;
105
- }
106
-
107
- message AgreementDetail {
108
- string person_type = 1;
109
- string nombre = 2;
110
- string apellido = 3;
111
- }
112
-
113
- message Manufacturer {
114
- string id = 1;
115
- string manufacturer_name = 2;
116
- string status_value = 3;
117
- string status_label = 4;
118
- string issuer_id = 5;
119
- string x_user_id = 6;
120
- string consumer_id = 7;
121
- string created_at = 8;
122
- string updated_at = 9;
123
- }
124
-
125
- message ManufacturerDetail {
126
- string id_short = 1;
127
- string id_long = 2;
128
- string manufacturer_name = 3;
129
- string created_at = 4;
130
- int32 total_products = 5;
131
- string status_value = 6;
132
- string status_label = 7;
133
- ManufacturerContact contact = 8;
134
- }
135
-
136
- message ManufacturerContact {
137
- string street = 1;
138
- string number = 2;
139
- string neighborhood = 3;
140
- string postal_code = 4;
141
- string city = 5;
142
- string state = 6;
143
- string country = 7;
144
- string email = 8;
145
- string phone = 9;
146
- }
147
-
148
- message ProductTypeItem {
149
- string value = 1;
150
- string label = 2;
151
- }
152
-
153
- message NominativeCardData {
154
- string name = 1;
155
- string second_name = 2;
156
- string agreement = 3;
157
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.payments_methods.v1;
4
+
5
+ option go_package = "kapital/payments_methods/v1;paymentsmethodsv1";
6
+
7
+ message CardInventory {
8
+ string id = 1;
9
+ string card_number = 2;
10
+ string bin = 3;
11
+ string card_type = 4;
12
+ string brand = 5;
13
+ string product = 6;
14
+ string creation_date = 7;
15
+ string expiration_date = 8;
16
+ string status = 9;
17
+ string manufactured = 10;
18
+ string customer_name = 11;
19
+ string assigned_client = 12;
20
+ string responsible_user = 13;
21
+ string last_update = 14;
22
+ string lot = 15;
23
+ string branch = 16;
24
+ string branch_id = 17;
25
+ string channel = 18;
26
+ string created_at = 19;
27
+ string updated_at = 20;
28
+ }
29
+
30
+ message ManufacturingBatch {
31
+ string id = 1;
32
+ string brand = 2;
33
+ string card_carrier = 3;
34
+ int32 cards = 4;
35
+ string delivery = 5;
36
+ string destination_branch = 6;
37
+ string generation_date = 7;
38
+ int32 innominative_card_quantity = 8;
39
+ string issuance = 9;
40
+ string status = 10;
41
+ string created_at = 11;
42
+ string updated_at = 12;
43
+ }
44
+
45
+ message VirtualCard {
46
+ string id = 1;
47
+ string card_number = 2;
48
+ string product_type = 3;
49
+ string status = 4;
50
+ string customer_name = 5;
51
+ string customer_id = 6;
52
+ string expiration_date = 7;
53
+ string created_at = 8;
54
+ string updated_at = 9;
55
+ }
56
+
57
+ message CatalogItem {
58
+ string value = 1;
59
+ string label = 2;
60
+ }
61
+
62
+ message CardTracking {
63
+ string id = 1;
64
+ string card_number = 2;
65
+ string creation_shipping_address = 3;
66
+ string last_location = 4;
67
+ string date_last_location = 5;
68
+ string created_at = 6;
69
+ string updated_at = 7;
70
+ }
71
+
72
+ message BatchCard {
73
+ string id = 1;
74
+ string id_short = 2;
75
+ string number_card = 3;
76
+ string agreement = 4;
77
+ string personalization_type = 5;
78
+ string personalization_nombre = 6;
79
+ string status_value = 7;
80
+ string status_label = 8;
81
+ }
82
+
83
+ message ProductDetail {
84
+ string product_type = 1;
85
+ string product_type_label = 2;
86
+ string personalization_id = 3;
87
+ string brand = 4;
88
+ string brand_label = 5;
89
+ string bin = 6;
90
+ string sub_bin = 7;
91
+ string country = 8;
92
+ string country_label = 9;
93
+ bool multi_currency = 10;
94
+ string main_currency = 11;
95
+ string main_currency_label = 12;
96
+ string main_currency_code = 13;
97
+ string product_key = 14;
98
+ int32 card_digits = 15;
99
+ string validity = 16;
100
+ }
101
+
102
+ message Cardholder {
103
+ string nombre = 1;
104
+ string apellido = 2;
105
+ }
106
+
107
+ message AgreementDetail {
108
+ string person_type = 1;
109
+ string nombre = 2;
110
+ string apellido = 3;
111
+ }
112
+
113
+ message Manufacturer {
114
+ string id = 1;
115
+ string manufacturer_name = 2;
116
+ string status_value = 3;
117
+ string status_label = 4;
118
+ string issuer_id = 5;
119
+ string x_user_id = 6;
120
+ string consumer_id = 7;
121
+ string created_at = 8;
122
+ string updated_at = 9;
123
+ }
124
+
125
+ message ManufacturerDetail {
126
+ string id_short = 1;
127
+ string id_long = 2;
128
+ string manufacturer_name = 3;
129
+ string created_at = 4;
130
+ int32 total_products = 5;
131
+ string status_value = 6;
132
+ string status_label = 7;
133
+ ManufacturerContact contact = 8;
134
+ }
135
+
136
+ message ManufacturerContact {
137
+ string street = 1;
138
+ string number = 2;
139
+ string neighborhood = 3;
140
+ string postal_code = 4;
141
+ string city = 5;
142
+ string state = 6;
143
+ string country = 7;
144
+ string email = 8;
145
+ string phone = 9;
146
+ }
147
+
148
+ message ProductTypeItem {
149
+ string value = 1;
150
+ string label = 2;
151
+ }
152
+
153
+ message NominativeCardData {
154
+ string name = 1;
155
+ string second_name = 2;
156
+ string agreement = 3;
157
+ }
@@ -1,150 +1,150 @@
1
- syntax = "proto3";
2
-
3
- package kapital.product_groups.v1;
4
-
5
- option go_package = "kapital/product_groups/v1;productgroupsv1";
6
-
7
- import "kapital/common/v1/meta.proto";
8
- import "kapital/common/v1/pagination.proto";
9
- import "kapital/product_groups/v1/product_groups_types.proto";
10
-
11
- service ProductGroupsService {
12
- rpc GetGroups(GetGroupsRequest) returns (GetGroupsResponse);
13
- rpc GetGroupById(GetGroupByIdRequest) returns (GetGroupByIdResponse);
14
- rpc CreateGroup(CreateGroupRequest) returns (CreateGroupResponse);
15
- rpc UpdateGroup(UpdateGroupRequest) returns (UpdateGroupResponse);
16
- rpc GetGroupElements(GetGroupElementsRequest) returns (GetGroupElementsResponse);
17
- rpc AddGroupElements(AddGroupElementsRequest) returns (AddGroupElementsResponse);
18
- rpc RemoveGroupElements(RemoveGroupElementsRequest) returns (RemoveGroupElementsResponse);
19
- rpc ValidateGroupName(ValidateGroupNameRequest) returns (ValidateGroupNameResponse);
20
- rpc ValidateElements(ValidateElementsRequest) returns (ValidateElementsResponse);
21
- rpc GetGroupTypes(GetGroupTypesRequest) returns (GetGroupTypesResponse);
22
- }
23
-
24
- // ============================================================================
25
- // Request / Response Messages
26
- // ============================================================================
27
-
28
- message GetGroupsRequest {
29
- kapital.common.v1.PageRequest page_request = 1;
30
- string q = 2;
31
- int32 type_id = 3;
32
- string institution_id = 4;
33
- }
34
-
35
- message GetGroupsResponse {
36
- kapital.common.v1.ResponseMeta meta = 1;
37
- kapital.common.v1.PageResponse page_response = 2;
38
- repeated ProductGroup groups = 3;
39
- }
40
-
41
- message GetGroupByIdRequest {
42
- string group_id = 1;
43
- }
44
-
45
- message GetGroupByIdResponse {
46
- kapital.common.v1.ResponseMeta meta = 1;
47
- ProductGroup group = 2;
48
- }
49
-
50
- message CreateGroupRequest {
51
- string name = 1;
52
- string description = 2;
53
- int32 type_id = 3;
54
- string institution_id = 4;
55
- string created_by = 5;
56
- }
57
-
58
- message CreateGroupResponse {
59
- kapital.common.v1.ResponseMeta meta = 1;
60
- ProductGroup group = 2;
61
- }
62
-
63
- message UpdateGroupRequest {
64
- string group_id = 1;
65
- string name = 2;
66
- string description = 3;
67
- bool active = 4;
68
- bool deleted = 5;
69
- string updated_by = 6;
70
- }
71
-
72
- message UpdateGroupResponse {
73
- kapital.common.v1.ResponseMeta meta = 1;
74
- ProductGroup group = 2;
75
- }
76
-
77
- message GetGroupElementsRequest {
78
- string group_id = 1;
79
- kapital.common.v1.PageRequest page_request = 2;
80
- string institution_id = 3;
81
- }
82
-
83
- message GetGroupElementsResponse {
84
- kapital.common.v1.ResponseMeta meta = 1;
85
- kapital.common.v1.PageResponse page_response = 2;
86
- repeated ProductGroupElement elements = 3;
87
- }
88
-
89
- message AddGroupElementsRequest {
90
- string group_id = 1;
91
- repeated ElementInput elements = 2;
92
- string institution_id = 3;
93
- string created_by = 4;
94
- }
95
-
96
- message ElementInput {
97
- string value = 1;
98
- string start = 2;
99
- string end = 3;
100
- bool is_range = 4;
101
- }
102
-
103
- message AddGroupElementsResponse {
104
- kapital.common.v1.ResponseMeta meta = 1;
105
- int32 added_count = 2;
106
- }
107
-
108
- message RemoveGroupElementsRequest {
109
- string group_id = 1;
110
- repeated string element_ids = 2;
111
- }
112
-
113
- message RemoveGroupElementsResponse {
114
- kapital.common.v1.ResponseMeta meta = 1;
115
- int32 removed_count = 2;
116
- }
117
-
118
- message ValidateGroupNameRequest {
119
- string name = 1;
120
- int32 type_id = 2;
121
- string exclude_group_id = 3;
122
- string institution_id = 4;
123
- }
124
-
125
- message ValidateGroupNameResponse {
126
- kapital.common.v1.ResponseMeta meta = 1;
127
- bool is_valid = 2;
128
- string message = 3;
129
- }
130
-
131
- message ValidateElementsRequest {
132
- int32 type_id = 1;
133
- repeated ElementInput elements = 2;
134
- }
135
-
136
- message ValidateElementsResponse {
137
- kapital.common.v1.ResponseMeta meta = 1;
138
- bool is_valid = 2;
139
- repeated string invalid_elements = 3;
140
- string message = 4;
141
- }
142
-
143
- message GetGroupTypesRequest {
144
- string institution_id = 1;
145
- }
146
-
147
- message GetGroupTypesResponse {
148
- kapital.common.v1.ResponseMeta meta = 1;
149
- repeated ProductGroupType types = 2;
150
- }
1
+ syntax = "proto3";
2
+
3
+ package kapital.product_groups.v1;
4
+
5
+ option go_package = "kapital/product_groups/v1;productgroupsv1";
6
+
7
+ import "kapital/common/v1/meta.proto";
8
+ import "kapital/common/v1/pagination.proto";
9
+ import "kapital/product_groups/v1/product_groups_types.proto";
10
+
11
+ service ProductGroupsService {
12
+ rpc GetGroups(GetGroupsRequest) returns (GetGroupsResponse);
13
+ rpc GetGroupById(GetGroupByIdRequest) returns (GetGroupByIdResponse);
14
+ rpc CreateGroup(CreateGroupRequest) returns (CreateGroupResponse);
15
+ rpc UpdateGroup(UpdateGroupRequest) returns (UpdateGroupResponse);
16
+ rpc GetGroupElements(GetGroupElementsRequest) returns (GetGroupElementsResponse);
17
+ rpc AddGroupElements(AddGroupElementsRequest) returns (AddGroupElementsResponse);
18
+ rpc RemoveGroupElements(RemoveGroupElementsRequest) returns (RemoveGroupElementsResponse);
19
+ rpc ValidateGroupName(ValidateGroupNameRequest) returns (ValidateGroupNameResponse);
20
+ rpc ValidateElements(ValidateElementsRequest) returns (ValidateElementsResponse);
21
+ rpc GetGroupTypes(GetGroupTypesRequest) returns (GetGroupTypesResponse);
22
+ }
23
+
24
+ // ============================================================================
25
+ // Request / Response Messages
26
+ // ============================================================================
27
+
28
+ message GetGroupsRequest {
29
+ kapital.common.v1.PageRequest page_request = 1;
30
+ string q = 2;
31
+ int32 type_id = 3;
32
+ string institution_id = 4;
33
+ }
34
+
35
+ message GetGroupsResponse {
36
+ kapital.common.v1.ResponseMeta meta = 1;
37
+ kapital.common.v1.PageResponse page_response = 2;
38
+ repeated ProductGroup groups = 3;
39
+ }
40
+
41
+ message GetGroupByIdRequest {
42
+ string group_id = 1;
43
+ }
44
+
45
+ message GetGroupByIdResponse {
46
+ kapital.common.v1.ResponseMeta meta = 1;
47
+ ProductGroup group = 2;
48
+ }
49
+
50
+ message CreateGroupRequest {
51
+ string name = 1;
52
+ string description = 2;
53
+ int32 type_id = 3;
54
+ string institution_id = 4;
55
+ string created_by = 5;
56
+ }
57
+
58
+ message CreateGroupResponse {
59
+ kapital.common.v1.ResponseMeta meta = 1;
60
+ ProductGroup group = 2;
61
+ }
62
+
63
+ message UpdateGroupRequest {
64
+ string group_id = 1;
65
+ string name = 2;
66
+ string description = 3;
67
+ bool active = 4;
68
+ bool deleted = 5;
69
+ string updated_by = 6;
70
+ }
71
+
72
+ message UpdateGroupResponse {
73
+ kapital.common.v1.ResponseMeta meta = 1;
74
+ ProductGroup group = 2;
75
+ }
76
+
77
+ message GetGroupElementsRequest {
78
+ string group_id = 1;
79
+ kapital.common.v1.PageRequest page_request = 2;
80
+ string institution_id = 3;
81
+ }
82
+
83
+ message GetGroupElementsResponse {
84
+ kapital.common.v1.ResponseMeta meta = 1;
85
+ kapital.common.v1.PageResponse page_response = 2;
86
+ repeated ProductGroupElement elements = 3;
87
+ }
88
+
89
+ message AddGroupElementsRequest {
90
+ string group_id = 1;
91
+ repeated ElementInput elements = 2;
92
+ string institution_id = 3;
93
+ string created_by = 4;
94
+ }
95
+
96
+ message ElementInput {
97
+ string value = 1;
98
+ string start = 2;
99
+ string end = 3;
100
+ bool is_range = 4;
101
+ }
102
+
103
+ message AddGroupElementsResponse {
104
+ kapital.common.v1.ResponseMeta meta = 1;
105
+ int32 added_count = 2;
106
+ }
107
+
108
+ message RemoveGroupElementsRequest {
109
+ string group_id = 1;
110
+ repeated string element_ids = 2;
111
+ }
112
+
113
+ message RemoveGroupElementsResponse {
114
+ kapital.common.v1.ResponseMeta meta = 1;
115
+ int32 removed_count = 2;
116
+ }
117
+
118
+ message ValidateGroupNameRequest {
119
+ string name = 1;
120
+ int32 type_id = 2;
121
+ string exclude_group_id = 3;
122
+ string institution_id = 4;
123
+ }
124
+
125
+ message ValidateGroupNameResponse {
126
+ kapital.common.v1.ResponseMeta meta = 1;
127
+ bool is_valid = 2;
128
+ string message = 3;
129
+ }
130
+
131
+ message ValidateElementsRequest {
132
+ int32 type_id = 1;
133
+ repeated ElementInput elements = 2;
134
+ }
135
+
136
+ message ValidateElementsResponse {
137
+ kapital.common.v1.ResponseMeta meta = 1;
138
+ bool is_valid = 2;
139
+ repeated string invalid_elements = 3;
140
+ string message = 4;
141
+ }
142
+
143
+ message GetGroupTypesRequest {
144
+ string institution_id = 1;
145
+ }
146
+
147
+ message GetGroupTypesResponse {
148
+ kapital.common.v1.ResponseMeta meta = 1;
149
+ repeated ProductGroupType types = 2;
150
+ }