@acequants/aegis-contracts 0.1.29 → 0.1.31

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.
@@ -1,3 +1,4 @@
1
+ export * as v1Shared from "./gen/shared/v1/shared";
1
2
  export * as v1Auth from "./gen/auth/v1/auth";
2
3
  export * as v1System from "./gen/system/v1/system";
3
4
  export * as v1Agent from "./gen/agent/v1/agent";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,QAAQ,MAAM,wBAAwB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,WAAW,MAAM,8BAA8B,CAAC;AAC5D,OAAO,KAAK,KAAK,MAAM,kBAAkB,CAAC"}
package/dist/src/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ export * as v1Shared from "./gen/shared/v1/shared";
1
2
  export * as v1Auth from "./gen/auth/v1/auth";
2
3
  export * as v1System from "./gen/system/v1/system";
3
4
  export * as v1Agent from "./gen/agent/v1/agent";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acequants/aegis-contracts",
3
- "version": "0.1.29",
3
+ "version": "0.1.31",
4
4
  "private": false,
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -5,18 +5,7 @@ package aegis.auth.v1;
5
5
  option java_multiple_files = true;
6
6
 
7
7
  import "google/protobuf/timestamp.proto";
8
- // import "google/protobuf/empty.proto";
9
-
10
- message GrpcDtoPagination {
11
- int32 total_items = 1;
12
- int32 total_pages = 2;
13
- int32 current_page = 3;
14
- int32 page_size = 4;
15
- }
16
-
17
- message GrpcDtoMessage {
18
- string message = 1;
19
- }
8
+ import "shared/v1/shared.proto";
20
9
 
21
10
  // ---- AUTH ----
22
11
  message GrpcDtoService {
@@ -74,22 +63,22 @@ message GrpcInputSeedPermissions {
74
63
  repeated GrpcInputSeedPermission permissions = 1;
75
64
  }
76
65
 
77
- message GrpcDtoPermission {
78
- string public_id = 1;
79
- string name = 2;
80
- string description = 3;
81
- google.protobuf.Timestamp created_at = 4;
82
- google.protobuf.Timestamp updated_at = 5;
83
- google.protobuf.Timestamp deleted_at = 6;
84
- }
66
+ // message GrpcDtoPermission {
67
+ // string public_id = 1;
68
+ // string name = 2;
69
+ // string description = 3;
70
+ // google.protobuf.Timestamp created_at = 4;
71
+ // google.protobuf.Timestamp updated_at = 5;
72
+ // google.protobuf.Timestamp deleted_at = 6;
73
+ // }
85
74
 
86
75
  message GrpcDtoPermissions {
87
- repeated GrpcDtoPermission permissions = 1;
76
+ repeated aegis.shared.v1.GrpcDtoPermission permissions = 1;
88
77
  }
89
78
 
90
79
  message GrpcDtoRolePermission {
91
80
  string public_id = 1;
92
- GrpcDtoPermission permission = 2;
81
+ aegis.shared.v1.GrpcDtoPermission permission = 2;
93
82
  optional GrpcDtoRole role = 3;
94
83
  }
95
84
 
@@ -98,8 +87,8 @@ message GrpcDtoRolePermissions {
98
87
  }
99
88
 
100
89
  message GrpcDtoPermissionsPaginated {
101
- repeated GrpcDtoPermission items = 1;
102
- GrpcDtoPagination meta = 2;
90
+ repeated aegis.shared.v1.GrpcDtoPermission items = 1;
91
+ aegis.shared.v1.GrpcDtoPagination meta = 2;
103
92
  }
104
93
 
105
94
  // ---- ROLE ----
@@ -150,18 +139,18 @@ message GrpcDtoRole {
150
139
  google.protobuf.Timestamp created_at = 4;
151
140
  google.protobuf.Timestamp updated_at = 5;
152
141
  google.protobuf.Timestamp deleted_at = 6;
153
- repeated GrpcDtoPermission permissions = 7;
142
+ repeated aegis.shared.v1.GrpcDtoPermission permissions = 7;
154
143
  repeated GrpcDtoUser users = 8;
155
144
  }
156
145
 
157
146
  message GrpcDtoRoles {
158
147
  repeated GrpcDtoRole items = 1;
159
- GrpcDtoPagination meta = 2;
148
+ aegis.shared.v1.GrpcDtoPagination meta = 2;
160
149
  }
161
150
 
162
- message GrpcDtoPermissionsAdd {
163
- repeated GrpcDtoPermission permissions = 1;
164
- }
151
+ // message GrpcDtoPermissionsAdd {
152
+ // repeated GrpcDtoPermission permissions = 1;
153
+ // }
165
154
 
166
155
  // --- USER ---
167
156
  message GrpcDtoUserRole {
@@ -188,18 +177,18 @@ service AuthService {
188
177
  // --- permission ---
189
178
  rpc PermissionsSeed (GrpcInputSeedPermissions) returns (GrpcDtoPermissions);
190
179
  rpc Permissions (GrpcInputPermissions) returns (GrpcDtoPermissionsPaginated);
191
- rpc Permission (GrpcInputPermission) returns (GrpcDtoPermission);
192
- rpc RolePermissions (GrpcInputRolePermissions) returns (GrpcDtoRolePermissions);
180
+ rpc Permission (GrpcInputPermission) returns (aegis.shared.v1.GrpcDtoPermission);
193
181
 
194
182
  // --- role ---
195
183
  rpc Roles (GrpcInputRoles) returns (GrpcDtoRoles);
196
184
  rpc Role (GrpcInputRole) returns (GrpcDtoRole);
197
185
  rpc RoleCreate (GrpcInputRoleCreate) returns (GrpcDtoRole);
198
186
  rpc RoleUpdate (GrpcInputRoleUpdate) returns (GrpcDtoRole);
199
- rpc RolesRecycle (GrpcInputRoleRecycle) returns (GrpcDtoMessage);
200
- rpc RolesRestore (GrpcInputRoleRestore) returns (GrpcDtoMessage);
201
- rpc RolePermissionsAdd (GrpcInputRolePermissionsAdd) returns (GrpcDtoPermissionsAdd);
202
- rpc RolePermissionsRemove (GrpcInputRolePermissionsRemove) returns (GrpcDtoMessage);
187
+ rpc RolesRecycle (GrpcInputRoleRecycle) returns (aegis.shared.v1.GrpcDtoMessage);
188
+ rpc RolesRestore (GrpcInputRoleRestore) returns (aegis.shared.v1.GrpcDtoMessage);
189
+ rpc RolePermissions (GrpcInputRolePermissions) returns (GrpcDtoRolePermissions);
190
+ rpc RolePermissionsAdd (GrpcInputRolePermissionsAdd) returns (aegis.shared.v1.GrpcDtoPermissionsAdd);
191
+ rpc RolePermissionsRemove (GrpcInputRolePermissionsRemove) returns (aegis.shared.v1.GrpcDtoMessage);
203
192
  }
204
193
 
205
194
  // rpc Permissions (google.protobuf.Empty) returns (DtoPermissions);
@@ -0,0 +1,32 @@
1
+ syntax = "proto3";
2
+
3
+ package aegis.shared.v1;
4
+
5
+ option java_multiple_files = true;
6
+
7
+ // import "google/protobuf/empty.proto";
8
+ import "google/protobuf/timestamp.proto";
9
+
10
+ message GrpcDtoPagination {
11
+ int32 total_items = 1;
12
+ int32 total_pages = 2;
13
+ int32 current_page = 3;
14
+ int32 page_size = 4;
15
+ }
16
+
17
+ message GrpcDtoMessage {
18
+ string message = 1;
19
+ }
20
+
21
+ message GrpcDtoPermission {
22
+ string public_id = 1;
23
+ string name = 2;
24
+ string description = 3;
25
+ google.protobuf.Timestamp created_at = 4;
26
+ google.protobuf.Timestamp updated_at = 5;
27
+ google.protobuf.Timestamp deleted_at = 6;
28
+ }
29
+
30
+ message GrpcDtoPermissionsAdd {
31
+ repeated GrpcDtoPermission permissions = 1;
32
+ }
@@ -5,18 +5,7 @@ package aegis.system.v1;
5
5
  option java_multiple_files = true;
6
6
 
7
7
  import "google/protobuf/timestamp.proto";
8
-
9
- // ---- SHARED TYPES ----
10
- message GrpcDtoPagination {
11
- int32 total_items = 1;
12
- int32 total_pages = 2;
13
- int32 current_page = 3;
14
- int32 page_size = 4;
15
- }
16
-
17
- message GrpcDtoMessage {
18
- string message = 1;
19
- }
8
+ import "shared/v1/shared.proto";
20
9
 
21
10
  // ---- CLIENT TYPE ----
22
11
  message GrpcInputClientTypeSeed {
@@ -53,7 +42,7 @@ message GrpcDtoClientTypesSeed {
53
42
 
54
43
  message GrpcDtoClientTypes {
55
44
  repeated GrpcDtoClientType items = 1;
56
- GrpcDtoPagination meta = 2;
45
+ aegis.shared.v1.GrpcDtoPagination meta = 2;
57
46
  }
58
47
 
59
48
  // ---- USER TYPE ----
@@ -91,7 +80,70 @@ message GrpcDtoUserAccountTypesSeed {
91
80
 
92
81
  message GrpcDtoUserAccountTypes {
93
82
  repeated GrpcDtoUserAccountType items = 1;
94
- GrpcDtoPagination meta = 2;
83
+ aegis.shared.v1.GrpcDtoPagination meta = 2;
84
+ }
85
+
86
+ // ---- FEATURES ----
87
+ message GrpcInputFeatureSeed {
88
+ string name = 1;
89
+ optional string description = 2;
90
+ }
91
+
92
+ message GrpcInputFeaturesSeed {
93
+ repeated GrpcInputFeatureSeed features = 1;
94
+ }
95
+
96
+ message GrpcInputFeature {
97
+ string publicId = 1;
98
+ }
99
+
100
+ message GrpcInputFeatures {
101
+ optional string search = 1;
102
+ optional int32 page = 2;
103
+ optional int32 page_size = 3;
104
+ optional string sort_by = 4;
105
+ optional string sort_order = 5;
106
+ }
107
+
108
+ message GrpcDtoFeature {
109
+ string public_id = 1;
110
+ string name = 2;
111
+ optional string description = 3;
112
+ google.protobuf.Timestamp created_at = 4;
113
+ google.protobuf.Timestamp updated_at = 5;
114
+ google.protobuf.Timestamp deleted_at = 6;
115
+ }
116
+
117
+ message GrpcDtoFeaturesSeed {
118
+ repeated GrpcDtoFeature features = 1;
119
+ }
120
+
121
+ message GrpcDtoFeatures {
122
+ repeated GrpcDtoFeature items = 1;
123
+ aegis.shared.v1.GrpcDtoPagination meta = 2;
124
+ }
125
+
126
+ message GrpcInputFeaturePermissionsAdd {
127
+ string publicId=1;
128
+ repeated string permissionIds=2;
129
+ }
130
+
131
+ message GrpcInputFeaturePermissionsRemove {
132
+ repeated string publicFeaturePermissionIds=1;
133
+ }
134
+
135
+ message GrpcInputFeaturePermissions {
136
+ string featurePublicId = 1;
137
+ }
138
+
139
+ message GrpcDtoFeaturePermission {
140
+ string public_id = 1;
141
+ aegis.shared.v1.GrpcDtoPermission permission = 2;
142
+ optional GrpcDtoFeature feature = 3;
143
+ }
144
+
145
+ message GrpcDtoFeaturePermissions {
146
+ repeated GrpcDtoFeaturePermission featurePermissions = 1;
95
147
  }
96
148
 
97
149
  service SystemService {
@@ -104,4 +156,12 @@ service SystemService {
104
156
  rpc UserAccountTypesSeed (GrpcInputUserAccountTypesSeed) returns (GrpcDtoUserAccountTypesSeed);
105
157
  rpc UserAccountTypes (GrpcInputUserAccountTypes) returns (GrpcDtoUserAccountTypes);
106
158
  rpc UserAccountType (GrpcInputUserAccountType) returns (GrpcDtoUserAccountType);
159
+
160
+ // --- Feature ---
161
+ rpc FeaturesSeed (GrpcInputFeaturesSeed) returns (GrpcDtoFeaturesSeed);
162
+ rpc Features (GrpcInputFeatures) returns (GrpcDtoFeatures);
163
+ rpc Feature (GrpcInputFeature) returns (GrpcDtoFeature);
164
+ rpc FeaturePermissions (GrpcInputFeaturePermissions) returns (GrpcDtoFeaturePermissions);
165
+ rpc FeaturePermissionsAdd (GrpcInputFeaturePermissionsAdd) returns (aegis.shared.v1.GrpcDtoPermissionsAdd);
166
+ rpc FeaturePermissionsRemove (GrpcInputFeaturePermissionsRemove) returns (aegis.shared.v1.GrpcDtoMessage);
107
167
  }