@fraym/proto 0.16.0 → 0.17.0
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.
- package/freym/auth/management/migration.d.ts +37 -16
- package/freym/auth/management/migration.js +99 -11
- package/freym/auth/management/service.d.ts +24 -11
- package/freym/auth/management/service.js +15 -6
- package/freym/auth/management.d.ts +1 -1
- package/freym/auth/management.js +5 -3
- package/freym/crud/management/migration.d.ts +38 -17
- package/freym/crud/management/migration.js +99 -11
- package/freym/crud/management/service.d.ts +24 -11
- package/freym/crud/management/service.js +15 -6
- package/freym/crud/management.d.ts +1 -1
- package/freym/crud/management.js +5 -3
- package/freym/migrations/management/apply.d.ts +34 -0
- package/freym/migrations/management/apply.js +99 -0
- package/freym/migrations/management/cleanup.d.ts +49 -0
- package/freym/migrations/management/{finish.js → cleanup.js} +18 -18
- package/freym/migrations/management/service.d.ts +25 -11
- package/freym/migrations/management/service.js +17 -7
- package/freym/migrations/management.d.ts +2 -1
- package/freym/migrations/management.js +8 -5
- package/freym/projections/management/migration.d.ts +47 -26
- package/freym/projections/management/migration.js +106 -18
- package/freym/projections/management/service.d.ts +24 -11
- package/freym/projections/management/service.js +15 -6
- package/freym/projections/management.d.ts +1 -1
- package/freym/projections/management.js +6 -3
- package/freym/streams/management/backchannel.d.ts +19 -1
- package/freym/streams/management/backchannel.js +87 -6
- package/freym/streams/management.d.ts +1 -1
- package/freym/streams/management.js +2 -1
- package/package.json +1 -1
- package/freym/migrations/management/finish.d.ts +0 -49
|
@@ -6,10 +6,15 @@ export interface RegisterMigrationRequest {
|
|
|
6
6
|
}
|
|
7
7
|
export interface RegisterMigrationResponse {
|
|
8
8
|
}
|
|
9
|
-
export interface
|
|
9
|
+
export interface ApplyMigrationRequest {
|
|
10
10
|
namespace: string;
|
|
11
11
|
}
|
|
12
|
-
export interface
|
|
12
|
+
export interface ApplyMigrationResponse {
|
|
13
|
+
}
|
|
14
|
+
export interface CleanupMigrationRequest {
|
|
15
|
+
namespace: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CleanupMigrationResponse {
|
|
13
18
|
}
|
|
14
19
|
export interface RollbackMigrationRequest {
|
|
15
20
|
namespace: string;
|
|
@@ -38,21 +43,37 @@ export declare const RegisterMigrationResponse: {
|
|
|
38
43
|
create(base?: DeepPartial<RegisterMigrationResponse>): RegisterMigrationResponse;
|
|
39
44
|
fromPartial(_: DeepPartial<RegisterMigrationResponse>): RegisterMigrationResponse;
|
|
40
45
|
};
|
|
41
|
-
export declare const
|
|
42
|
-
encode(message:
|
|
43
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
44
|
-
fromJSON(object: any):
|
|
45
|
-
toJSON(message:
|
|
46
|
-
create(base?: DeepPartial<
|
|
47
|
-
fromPartial(object: DeepPartial<
|
|
46
|
+
export declare const ApplyMigrationRequest: {
|
|
47
|
+
encode(message: ApplyMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
48
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ApplyMigrationRequest;
|
|
49
|
+
fromJSON(object: any): ApplyMigrationRequest;
|
|
50
|
+
toJSON(message: ApplyMigrationRequest): unknown;
|
|
51
|
+
create(base?: DeepPartial<ApplyMigrationRequest>): ApplyMigrationRequest;
|
|
52
|
+
fromPartial(object: DeepPartial<ApplyMigrationRequest>): ApplyMigrationRequest;
|
|
53
|
+
};
|
|
54
|
+
export declare const ApplyMigrationResponse: {
|
|
55
|
+
encode(_: ApplyMigrationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
56
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ApplyMigrationResponse;
|
|
57
|
+
fromJSON(_: any): ApplyMigrationResponse;
|
|
58
|
+
toJSON(_: ApplyMigrationResponse): unknown;
|
|
59
|
+
create(base?: DeepPartial<ApplyMigrationResponse>): ApplyMigrationResponse;
|
|
60
|
+
fromPartial(_: DeepPartial<ApplyMigrationResponse>): ApplyMigrationResponse;
|
|
61
|
+
};
|
|
62
|
+
export declare const CleanupMigrationRequest: {
|
|
63
|
+
encode(message: CleanupMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
64
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CleanupMigrationRequest;
|
|
65
|
+
fromJSON(object: any): CleanupMigrationRequest;
|
|
66
|
+
toJSON(message: CleanupMigrationRequest): unknown;
|
|
67
|
+
create(base?: DeepPartial<CleanupMigrationRequest>): CleanupMigrationRequest;
|
|
68
|
+
fromPartial(object: DeepPartial<CleanupMigrationRequest>): CleanupMigrationRequest;
|
|
48
69
|
};
|
|
49
|
-
export declare const
|
|
50
|
-
encode(_:
|
|
51
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
52
|
-
fromJSON(_: any):
|
|
53
|
-
toJSON(_:
|
|
54
|
-
create(base?: DeepPartial<
|
|
55
|
-
fromPartial(_: DeepPartial<
|
|
70
|
+
export declare const CleanupMigrationResponse: {
|
|
71
|
+
encode(_: CleanupMigrationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
72
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CleanupMigrationResponse;
|
|
73
|
+
fromJSON(_: any): CleanupMigrationResponse;
|
|
74
|
+
toJSON(_: CleanupMigrationResponse): unknown;
|
|
75
|
+
create(base?: DeepPartial<CleanupMigrationResponse>): CleanupMigrationResponse;
|
|
76
|
+
fromPartial(_: DeepPartial<CleanupMigrationResponse>): CleanupMigrationResponse;
|
|
56
77
|
};
|
|
57
78
|
export declare const RollbackMigrationRequest: {
|
|
58
79
|
encode(message: RollbackMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.
|
|
6
|
+
exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.CleanupMigrationResponse = exports.CleanupMigrationRequest = exports.ApplyMigrationResponse = exports.ApplyMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.protobufPackage = void 0;
|
|
7
7
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
8
8
|
exports.protobufPackage = "freym.auth.management";
|
|
9
9
|
function createBaseRegisterMigrationRequest() {
|
|
@@ -111,10 +111,10 @@ exports.RegisterMigrationResponse = {
|
|
|
111
111
|
return message;
|
|
112
112
|
},
|
|
113
113
|
};
|
|
114
|
-
function
|
|
114
|
+
function createBaseApplyMigrationRequest() {
|
|
115
115
|
return { namespace: "" };
|
|
116
116
|
}
|
|
117
|
-
exports.
|
|
117
|
+
exports.ApplyMigrationRequest = {
|
|
118
118
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
119
119
|
if (message.namespace !== "") {
|
|
120
120
|
writer.uint32(10).string(message.namespace);
|
|
@@ -124,7 +124,7 @@ exports.FinishMigrationRequest = {
|
|
|
124
124
|
decode(input, length) {
|
|
125
125
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
126
126
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
127
|
-
const message =
|
|
127
|
+
const message = createBaseApplyMigrationRequest();
|
|
128
128
|
while (reader.pos < end) {
|
|
129
129
|
const tag = reader.uint32();
|
|
130
130
|
switch (tag >>> 3) {
|
|
@@ -153,26 +153,26 @@ exports.FinishMigrationRequest = {
|
|
|
153
153
|
return obj;
|
|
154
154
|
},
|
|
155
155
|
create(base) {
|
|
156
|
-
return exports.
|
|
156
|
+
return exports.ApplyMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
157
157
|
},
|
|
158
158
|
fromPartial(object) {
|
|
159
159
|
var _a;
|
|
160
|
-
const message =
|
|
160
|
+
const message = createBaseApplyMigrationRequest();
|
|
161
161
|
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
162
162
|
return message;
|
|
163
163
|
},
|
|
164
164
|
};
|
|
165
|
-
function
|
|
165
|
+
function createBaseApplyMigrationResponse() {
|
|
166
166
|
return {};
|
|
167
167
|
}
|
|
168
|
-
exports.
|
|
168
|
+
exports.ApplyMigrationResponse = {
|
|
169
169
|
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
170
170
|
return writer;
|
|
171
171
|
},
|
|
172
172
|
decode(input, length) {
|
|
173
173
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
174
174
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
175
|
-
const message =
|
|
175
|
+
const message = createBaseApplyMigrationResponse();
|
|
176
176
|
while (reader.pos < end) {
|
|
177
177
|
const tag = reader.uint32();
|
|
178
178
|
switch (tag >>> 3) {
|
|
@@ -192,10 +192,98 @@ exports.FinishMigrationResponse = {
|
|
|
192
192
|
return obj;
|
|
193
193
|
},
|
|
194
194
|
create(base) {
|
|
195
|
-
return exports.
|
|
195
|
+
return exports.ApplyMigrationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
196
196
|
},
|
|
197
197
|
fromPartial(_) {
|
|
198
|
-
const message =
|
|
198
|
+
const message = createBaseApplyMigrationResponse();
|
|
199
|
+
return message;
|
|
200
|
+
},
|
|
201
|
+
};
|
|
202
|
+
function createBaseCleanupMigrationRequest() {
|
|
203
|
+
return { namespace: "" };
|
|
204
|
+
}
|
|
205
|
+
exports.CleanupMigrationRequest = {
|
|
206
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
207
|
+
if (message.namespace !== "") {
|
|
208
|
+
writer.uint32(10).string(message.namespace);
|
|
209
|
+
}
|
|
210
|
+
return writer;
|
|
211
|
+
},
|
|
212
|
+
decode(input, length) {
|
|
213
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
214
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
215
|
+
const message = createBaseCleanupMigrationRequest();
|
|
216
|
+
while (reader.pos < end) {
|
|
217
|
+
const tag = reader.uint32();
|
|
218
|
+
switch (tag >>> 3) {
|
|
219
|
+
case 1:
|
|
220
|
+
if (tag !== 10) {
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
message.namespace = reader.string();
|
|
224
|
+
continue;
|
|
225
|
+
}
|
|
226
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
reader.skipType(tag & 7);
|
|
230
|
+
}
|
|
231
|
+
return message;
|
|
232
|
+
},
|
|
233
|
+
fromJSON(object) {
|
|
234
|
+
return { namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "" };
|
|
235
|
+
},
|
|
236
|
+
toJSON(message) {
|
|
237
|
+
const obj = {};
|
|
238
|
+
if (message.namespace !== "") {
|
|
239
|
+
obj.namespace = message.namespace;
|
|
240
|
+
}
|
|
241
|
+
return obj;
|
|
242
|
+
},
|
|
243
|
+
create(base) {
|
|
244
|
+
return exports.CleanupMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
245
|
+
},
|
|
246
|
+
fromPartial(object) {
|
|
247
|
+
var _a;
|
|
248
|
+
const message = createBaseCleanupMigrationRequest();
|
|
249
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
250
|
+
return message;
|
|
251
|
+
},
|
|
252
|
+
};
|
|
253
|
+
function createBaseCleanupMigrationResponse() {
|
|
254
|
+
return {};
|
|
255
|
+
}
|
|
256
|
+
exports.CleanupMigrationResponse = {
|
|
257
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
258
|
+
return writer;
|
|
259
|
+
},
|
|
260
|
+
decode(input, length) {
|
|
261
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
262
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
263
|
+
const message = createBaseCleanupMigrationResponse();
|
|
264
|
+
while (reader.pos < end) {
|
|
265
|
+
const tag = reader.uint32();
|
|
266
|
+
switch (tag >>> 3) {
|
|
267
|
+
}
|
|
268
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
reader.skipType(tag & 7);
|
|
272
|
+
}
|
|
273
|
+
return message;
|
|
274
|
+
},
|
|
275
|
+
fromJSON(_) {
|
|
276
|
+
return {};
|
|
277
|
+
},
|
|
278
|
+
toJSON(_) {
|
|
279
|
+
const obj = {};
|
|
280
|
+
return obj;
|
|
281
|
+
},
|
|
282
|
+
create(base) {
|
|
283
|
+
return exports.CleanupMigrationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
284
|
+
},
|
|
285
|
+
fromPartial(_) {
|
|
286
|
+
const message = createBaseCleanupMigrationResponse();
|
|
199
287
|
return message;
|
|
200
288
|
},
|
|
201
289
|
};
|
|
@@ -6,7 +6,7 @@ import { DeleteRoleRequest, DeleteRoleResponse } from "./delete_role";
|
|
|
6
6
|
import { DeleteUserRequest, DeleteUserResponse } from "./delete_user";
|
|
7
7
|
import { GetRolesRequest, GetRolesResponse } from "./get_roles";
|
|
8
8
|
import { GetUsersRequest, GetUsersResponse } from "./get_users";
|
|
9
|
-
import {
|
|
9
|
+
import { ApplyMigrationRequest, ApplyMigrationResponse, CleanupMigrationRequest, CleanupMigrationResponse, GetMigrationStatusRequest, GetMigrationStatusResponse, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse } from "./migration";
|
|
10
10
|
import { UpdateUserRequest, UpdateUserResponse } from "./update_user";
|
|
11
11
|
import { UpsertRoleRequest, UpsertRoleResponse } from "./upsert_role";
|
|
12
12
|
export declare const protobufPackage = "freym.auth.management";
|
|
@@ -48,14 +48,23 @@ export declare const ServiceService: {
|
|
|
48
48
|
readonly responseSerialize: (value: RegisterMigrationResponse) => Buffer;
|
|
49
49
|
readonly responseDeserialize: (value: Buffer) => RegisterMigrationResponse;
|
|
50
50
|
};
|
|
51
|
-
readonly
|
|
52
|
-
readonly path: "/freym.auth.management.Service/
|
|
51
|
+
readonly applyMigration: {
|
|
52
|
+
readonly path: "/freym.auth.management.Service/ApplyMigration";
|
|
53
53
|
readonly requestStream: false;
|
|
54
54
|
readonly responseStream: false;
|
|
55
|
-
readonly requestSerialize: (value:
|
|
56
|
-
readonly requestDeserialize: (value: Buffer) =>
|
|
57
|
-
readonly responseSerialize: (value:
|
|
58
|
-
readonly responseDeserialize: (value: Buffer) =>
|
|
55
|
+
readonly requestSerialize: (value: ApplyMigrationRequest) => Buffer;
|
|
56
|
+
readonly requestDeserialize: (value: Buffer) => ApplyMigrationRequest;
|
|
57
|
+
readonly responseSerialize: (value: ApplyMigrationResponse) => Buffer;
|
|
58
|
+
readonly responseDeserialize: (value: Buffer) => ApplyMigrationResponse;
|
|
59
|
+
};
|
|
60
|
+
readonly cleanupMigration: {
|
|
61
|
+
readonly path: "/freym.auth.management.Service/CleanupMigration";
|
|
62
|
+
readonly requestStream: false;
|
|
63
|
+
readonly responseStream: false;
|
|
64
|
+
readonly requestSerialize: (value: CleanupMigrationRequest) => Buffer;
|
|
65
|
+
readonly requestDeserialize: (value: Buffer) => CleanupMigrationRequest;
|
|
66
|
+
readonly responseSerialize: (value: CleanupMigrationResponse) => Buffer;
|
|
67
|
+
readonly responseDeserialize: (value: Buffer) => CleanupMigrationResponse;
|
|
59
68
|
};
|
|
60
69
|
readonly rollbackMigration: {
|
|
61
70
|
readonly path: "/freym.auth.management.Service/RollbackMigration";
|
|
@@ -117,7 +126,8 @@ export interface ServiceServer extends UntypedServiceImplementation {
|
|
|
117
126
|
deleteRole: handleUnaryCall<DeleteRoleRequest, DeleteRoleResponse>;
|
|
118
127
|
getRoles: handleUnaryCall<GetRolesRequest, GetRolesResponse>;
|
|
119
128
|
registerMigration: handleUnaryCall<RegisterMigrationRequest, RegisterMigrationResponse>;
|
|
120
|
-
|
|
129
|
+
applyMigration: handleUnaryCall<ApplyMigrationRequest, ApplyMigrationResponse>;
|
|
130
|
+
cleanupMigration: handleUnaryCall<CleanupMigrationRequest, CleanupMigrationResponse>;
|
|
121
131
|
rollbackMigration: handleUnaryCall<RollbackMigrationRequest, RollbackMigrationResponse>;
|
|
122
132
|
getMigrationStatus: handleUnaryCall<GetMigrationStatusRequest, GetMigrationStatusResponse>;
|
|
123
133
|
createUser: handleUnaryCall<CreateUserRequest, CreateUserResponse>;
|
|
@@ -138,9 +148,12 @@ export interface ServiceClient extends Client {
|
|
|
138
148
|
registerMigration(request: RegisterMigrationRequest, callback: (error: ServiceError | null, response: RegisterMigrationResponse) => void): ClientUnaryCall;
|
|
139
149
|
registerMigration(request: RegisterMigrationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RegisterMigrationResponse) => void): ClientUnaryCall;
|
|
140
150
|
registerMigration(request: RegisterMigrationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: RegisterMigrationResponse) => void): ClientUnaryCall;
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
151
|
+
applyMigration(request: ApplyMigrationRequest, callback: (error: ServiceError | null, response: ApplyMigrationResponse) => void): ClientUnaryCall;
|
|
152
|
+
applyMigration(request: ApplyMigrationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ApplyMigrationResponse) => void): ClientUnaryCall;
|
|
153
|
+
applyMigration(request: ApplyMigrationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: ApplyMigrationResponse) => void): ClientUnaryCall;
|
|
154
|
+
cleanupMigration(request: CleanupMigrationRequest, callback: (error: ServiceError | null, response: CleanupMigrationResponse) => void): ClientUnaryCall;
|
|
155
|
+
cleanupMigration(request: CleanupMigrationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: CleanupMigrationResponse) => void): ClientUnaryCall;
|
|
156
|
+
cleanupMigration(request: CleanupMigrationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: CleanupMigrationResponse) => void): ClientUnaryCall;
|
|
144
157
|
rollbackMigration(request: RollbackMigrationRequest, callback: (error: ServiceError | null, response: RollbackMigrationResponse) => void): ClientUnaryCall;
|
|
145
158
|
rollbackMigration(request: RollbackMigrationRequest, metadata: Metadata, callback: (error: ServiceError | null, response: RollbackMigrationResponse) => void): ClientUnaryCall;
|
|
146
159
|
rollbackMigration(request: RollbackMigrationRequest, metadata: Metadata, options: Partial<CallOptions>, callback: (error: ServiceError | null, response: RollbackMigrationResponse) => void): ClientUnaryCall;
|
|
@@ -48,14 +48,23 @@ exports.ServiceService = {
|
|
|
48
48
|
responseSerialize: (value) => Buffer.from(migration_1.RegisterMigrationResponse.encode(value).finish()),
|
|
49
49
|
responseDeserialize: (value) => migration_1.RegisterMigrationResponse.decode(value),
|
|
50
50
|
},
|
|
51
|
-
|
|
52
|
-
path: "/freym.auth.management.Service/
|
|
51
|
+
applyMigration: {
|
|
52
|
+
path: "/freym.auth.management.Service/ApplyMigration",
|
|
53
53
|
requestStream: false,
|
|
54
54
|
responseStream: false,
|
|
55
|
-
requestSerialize: (value) => Buffer.from(migration_1.
|
|
56
|
-
requestDeserialize: (value) => migration_1.
|
|
57
|
-
responseSerialize: (value) => Buffer.from(migration_1.
|
|
58
|
-
responseDeserialize: (value) => migration_1.
|
|
55
|
+
requestSerialize: (value) => Buffer.from(migration_1.ApplyMigrationRequest.encode(value).finish()),
|
|
56
|
+
requestDeserialize: (value) => migration_1.ApplyMigrationRequest.decode(value),
|
|
57
|
+
responseSerialize: (value) => Buffer.from(migration_1.ApplyMigrationResponse.encode(value).finish()),
|
|
58
|
+
responseDeserialize: (value) => migration_1.ApplyMigrationResponse.decode(value),
|
|
59
|
+
},
|
|
60
|
+
cleanupMigration: {
|
|
61
|
+
path: "/freym.auth.management.Service/CleanupMigration",
|
|
62
|
+
requestStream: false,
|
|
63
|
+
responseStream: false,
|
|
64
|
+
requestSerialize: (value) => Buffer.from(migration_1.CleanupMigrationRequest.encode(value).finish()),
|
|
65
|
+
requestDeserialize: (value) => migration_1.CleanupMigrationRequest.decode(value),
|
|
66
|
+
responseSerialize: (value) => Buffer.from(migration_1.CleanupMigrationResponse.encode(value).finish()),
|
|
67
|
+
responseDeserialize: (value) => migration_1.CleanupMigrationResponse.decode(value),
|
|
59
68
|
},
|
|
60
69
|
rollbackMigration: {
|
|
61
70
|
path: "/freym.auth.management.Service/RollbackMigration",
|
|
@@ -3,7 +3,7 @@ export { CreateUserRequest, CreateUserResponse } from "./management/create_user"
|
|
|
3
3
|
export { DeleteRoleRequest, DeleteRoleResponse } from "./management/delete_role";
|
|
4
4
|
export { DeleteUserRequest, DeleteUserResponse } from "./management/delete_user";
|
|
5
5
|
export { GetRolesRequest, GetRolesResponse } from "./management/get_roles";
|
|
6
|
-
export {
|
|
6
|
+
export { ApplyMigrationRequest, ApplyMigrationResponse, CleanupMigrationRequest, CleanupMigrationResponse, GetMigrationStatusRequest, GetMigrationStatusResponse, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse, } from "./management/migration";
|
|
7
7
|
export { GetUsersRequest, GetUsersResponse, User } from "./management/get_users";
|
|
8
8
|
export { RoleScope } from "./management/role_scope";
|
|
9
9
|
export { UpdateUserRequest, UpdateUserResponse } from "./management/update_user";
|
package/freym/auth/management.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UpsertRoleResponse = exports.UpsertRoleRequest = exports.UpdateUserResponse = exports.UpdateUserRequest = exports.RoleScope = exports.User = exports.GetUsersResponse = exports.GetUsersRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.
|
|
3
|
+
exports.UpsertRoleResponse = exports.UpsertRoleRequest = exports.UpdateUserResponse = exports.UpdateUserRequest = exports.RoleScope = exports.User = exports.GetUsersResponse = exports.GetUsersRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.CleanupMigrationResponse = exports.CleanupMigrationRequest = exports.ApplyMigrationResponse = exports.ApplyMigrationRequest = exports.GetRolesResponse = exports.GetRolesRequest = exports.DeleteUserResponse = exports.DeleteUserRequest = exports.DeleteRoleResponse = exports.DeleteRoleRequest = exports.CreateUserResponse = exports.CreateUserRequest = exports.ServiceService = exports.ServiceClient = void 0;
|
|
4
4
|
var service_1 = require("./management/service");
|
|
5
5
|
Object.defineProperty(exports, "ServiceClient", { enumerable: true, get: function () { return service_1.ServiceClient; } });
|
|
6
6
|
Object.defineProperty(exports, "ServiceService", { enumerable: true, get: function () { return service_1.ServiceService; } });
|
|
@@ -17,8 +17,10 @@ var get_roles_1 = require("./management/get_roles");
|
|
|
17
17
|
Object.defineProperty(exports, "GetRolesRequest", { enumerable: true, get: function () { return get_roles_1.GetRolesRequest; } });
|
|
18
18
|
Object.defineProperty(exports, "GetRolesResponse", { enumerable: true, get: function () { return get_roles_1.GetRolesResponse; } });
|
|
19
19
|
var migration_1 = require("./management/migration");
|
|
20
|
-
Object.defineProperty(exports, "
|
|
21
|
-
Object.defineProperty(exports, "
|
|
20
|
+
Object.defineProperty(exports, "ApplyMigrationRequest", { enumerable: true, get: function () { return migration_1.ApplyMigrationRequest; } });
|
|
21
|
+
Object.defineProperty(exports, "ApplyMigrationResponse", { enumerable: true, get: function () { return migration_1.ApplyMigrationResponse; } });
|
|
22
|
+
Object.defineProperty(exports, "CleanupMigrationRequest", { enumerable: true, get: function () { return migration_1.CleanupMigrationRequest; } });
|
|
23
|
+
Object.defineProperty(exports, "CleanupMigrationResponse", { enumerable: true, get: function () { return migration_1.CleanupMigrationResponse; } });
|
|
22
24
|
Object.defineProperty(exports, "GetMigrationStatusRequest", { enumerable: true, get: function () { return migration_1.GetMigrationStatusRequest; } });
|
|
23
25
|
Object.defineProperty(exports, "GetMigrationStatusResponse", { enumerable: true, get: function () { return migration_1.GetMigrationStatusResponse; } });
|
|
24
26
|
Object.defineProperty(exports, "RegisterMigrationRequest", { enumerable: true, get: function () { return migration_1.RegisterMigrationRequest; } });
|
|
@@ -41,10 +41,15 @@ export interface RegisterMigrationRequest {
|
|
|
41
41
|
}
|
|
42
42
|
export interface RegisterMigrationResponse {
|
|
43
43
|
}
|
|
44
|
-
export interface
|
|
44
|
+
export interface ApplyMigrationRequest {
|
|
45
45
|
namespace: string;
|
|
46
46
|
}
|
|
47
|
-
export interface
|
|
47
|
+
export interface ApplyMigrationResponse {
|
|
48
|
+
}
|
|
49
|
+
export interface CleanupMigrationRequest {
|
|
50
|
+
namespace: string;
|
|
51
|
+
}
|
|
52
|
+
export interface CleanupMigrationResponse {
|
|
48
53
|
}
|
|
49
54
|
export interface RollbackMigrationRequest {
|
|
50
55
|
namespace: string;
|
|
@@ -129,21 +134,37 @@ export declare const RegisterMigrationResponse: {
|
|
|
129
134
|
create(base?: DeepPartial<RegisterMigrationResponse>): RegisterMigrationResponse;
|
|
130
135
|
fromPartial(_: DeepPartial<RegisterMigrationResponse>): RegisterMigrationResponse;
|
|
131
136
|
};
|
|
132
|
-
export declare const
|
|
133
|
-
encode(message:
|
|
134
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
135
|
-
fromJSON(object: any):
|
|
136
|
-
toJSON(message:
|
|
137
|
-
create(base?: DeepPartial<
|
|
138
|
-
fromPartial(object: DeepPartial<
|
|
139
|
-
};
|
|
140
|
-
export declare const
|
|
141
|
-
encode(_:
|
|
142
|
-
decode(input: _m0.Reader | Uint8Array, length?: number):
|
|
143
|
-
fromJSON(_: any):
|
|
144
|
-
toJSON(_:
|
|
145
|
-
create(base?: DeepPartial<
|
|
146
|
-
fromPartial(_: DeepPartial<
|
|
137
|
+
export declare const ApplyMigrationRequest: {
|
|
138
|
+
encode(message: ApplyMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
139
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ApplyMigrationRequest;
|
|
140
|
+
fromJSON(object: any): ApplyMigrationRequest;
|
|
141
|
+
toJSON(message: ApplyMigrationRequest): unknown;
|
|
142
|
+
create(base?: DeepPartial<ApplyMigrationRequest>): ApplyMigrationRequest;
|
|
143
|
+
fromPartial(object: DeepPartial<ApplyMigrationRequest>): ApplyMigrationRequest;
|
|
144
|
+
};
|
|
145
|
+
export declare const ApplyMigrationResponse: {
|
|
146
|
+
encode(_: ApplyMigrationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
147
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): ApplyMigrationResponse;
|
|
148
|
+
fromJSON(_: any): ApplyMigrationResponse;
|
|
149
|
+
toJSON(_: ApplyMigrationResponse): unknown;
|
|
150
|
+
create(base?: DeepPartial<ApplyMigrationResponse>): ApplyMigrationResponse;
|
|
151
|
+
fromPartial(_: DeepPartial<ApplyMigrationResponse>): ApplyMigrationResponse;
|
|
152
|
+
};
|
|
153
|
+
export declare const CleanupMigrationRequest: {
|
|
154
|
+
encode(message: CleanupMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
155
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CleanupMigrationRequest;
|
|
156
|
+
fromJSON(object: any): CleanupMigrationRequest;
|
|
157
|
+
toJSON(message: CleanupMigrationRequest): unknown;
|
|
158
|
+
create(base?: DeepPartial<CleanupMigrationRequest>): CleanupMigrationRequest;
|
|
159
|
+
fromPartial(object: DeepPartial<CleanupMigrationRequest>): CleanupMigrationRequest;
|
|
160
|
+
};
|
|
161
|
+
export declare const CleanupMigrationResponse: {
|
|
162
|
+
encode(_: CleanupMigrationResponse, writer?: _m0.Writer): _m0.Writer;
|
|
163
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CleanupMigrationResponse;
|
|
164
|
+
fromJSON(_: any): CleanupMigrationResponse;
|
|
165
|
+
toJSON(_: CleanupMigrationResponse): unknown;
|
|
166
|
+
create(base?: DeepPartial<CleanupMigrationResponse>): CleanupMigrationResponse;
|
|
167
|
+
fromPartial(_: DeepPartial<CleanupMigrationResponse>): CleanupMigrationResponse;
|
|
147
168
|
};
|
|
148
169
|
export declare const RollbackMigrationRequest: {
|
|
149
170
|
encode(message: RollbackMigrationRequest, writer?: _m0.Writer): _m0.Writer;
|
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.
|
|
6
|
+
exports.GetMigrationStatusResponse = exports.GetMigrationStatusRequest = exports.RollbackMigrationResponse = exports.RollbackMigrationRequest = exports.CleanupMigrationResponse = exports.CleanupMigrationRequest = exports.ApplyMigrationResponse = exports.ApplyMigrationRequest = exports.RegisterMigrationResponse = exports.RegisterMigrationRequest = exports.TypeArgument = exports.TypeDirective = exports.TypeField = exports.NestedType = exports.CrudType = exports.ProjectionType = exports.EnumType = exports.protobufPackage = void 0;
|
|
7
7
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
8
8
|
exports.protobufPackage = "freym.crud.management";
|
|
9
9
|
function createBaseEnumType() {
|
|
@@ -700,10 +700,10 @@ exports.RegisterMigrationResponse = {
|
|
|
700
700
|
return message;
|
|
701
701
|
},
|
|
702
702
|
};
|
|
703
|
-
function
|
|
703
|
+
function createBaseApplyMigrationRequest() {
|
|
704
704
|
return { namespace: "" };
|
|
705
705
|
}
|
|
706
|
-
exports.
|
|
706
|
+
exports.ApplyMigrationRequest = {
|
|
707
707
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
708
708
|
if (message.namespace !== "") {
|
|
709
709
|
writer.uint32(10).string(message.namespace);
|
|
@@ -713,7 +713,7 @@ exports.FinishMigrationRequest = {
|
|
|
713
713
|
decode(input, length) {
|
|
714
714
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
715
715
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
716
|
-
const message =
|
|
716
|
+
const message = createBaseApplyMigrationRequest();
|
|
717
717
|
while (reader.pos < end) {
|
|
718
718
|
const tag = reader.uint32();
|
|
719
719
|
switch (tag >>> 3) {
|
|
@@ -742,26 +742,26 @@ exports.FinishMigrationRequest = {
|
|
|
742
742
|
return obj;
|
|
743
743
|
},
|
|
744
744
|
create(base) {
|
|
745
|
-
return exports.
|
|
745
|
+
return exports.ApplyMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
746
746
|
},
|
|
747
747
|
fromPartial(object) {
|
|
748
748
|
var _a;
|
|
749
|
-
const message =
|
|
749
|
+
const message = createBaseApplyMigrationRequest();
|
|
750
750
|
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
751
751
|
return message;
|
|
752
752
|
},
|
|
753
753
|
};
|
|
754
|
-
function
|
|
754
|
+
function createBaseApplyMigrationResponse() {
|
|
755
755
|
return {};
|
|
756
756
|
}
|
|
757
|
-
exports.
|
|
757
|
+
exports.ApplyMigrationResponse = {
|
|
758
758
|
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
759
759
|
return writer;
|
|
760
760
|
},
|
|
761
761
|
decode(input, length) {
|
|
762
762
|
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
763
763
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
764
|
-
const message =
|
|
764
|
+
const message = createBaseApplyMigrationResponse();
|
|
765
765
|
while (reader.pos < end) {
|
|
766
766
|
const tag = reader.uint32();
|
|
767
767
|
switch (tag >>> 3) {
|
|
@@ -781,10 +781,98 @@ exports.FinishMigrationResponse = {
|
|
|
781
781
|
return obj;
|
|
782
782
|
},
|
|
783
783
|
create(base) {
|
|
784
|
-
return exports.
|
|
784
|
+
return exports.ApplyMigrationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
785
785
|
},
|
|
786
786
|
fromPartial(_) {
|
|
787
|
-
const message =
|
|
787
|
+
const message = createBaseApplyMigrationResponse();
|
|
788
|
+
return message;
|
|
789
|
+
},
|
|
790
|
+
};
|
|
791
|
+
function createBaseCleanupMigrationRequest() {
|
|
792
|
+
return { namespace: "" };
|
|
793
|
+
}
|
|
794
|
+
exports.CleanupMigrationRequest = {
|
|
795
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
796
|
+
if (message.namespace !== "") {
|
|
797
|
+
writer.uint32(10).string(message.namespace);
|
|
798
|
+
}
|
|
799
|
+
return writer;
|
|
800
|
+
},
|
|
801
|
+
decode(input, length) {
|
|
802
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
803
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
804
|
+
const message = createBaseCleanupMigrationRequest();
|
|
805
|
+
while (reader.pos < end) {
|
|
806
|
+
const tag = reader.uint32();
|
|
807
|
+
switch (tag >>> 3) {
|
|
808
|
+
case 1:
|
|
809
|
+
if (tag !== 10) {
|
|
810
|
+
break;
|
|
811
|
+
}
|
|
812
|
+
message.namespace = reader.string();
|
|
813
|
+
continue;
|
|
814
|
+
}
|
|
815
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
816
|
+
break;
|
|
817
|
+
}
|
|
818
|
+
reader.skipType(tag & 7);
|
|
819
|
+
}
|
|
820
|
+
return message;
|
|
821
|
+
},
|
|
822
|
+
fromJSON(object) {
|
|
823
|
+
return { namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "" };
|
|
824
|
+
},
|
|
825
|
+
toJSON(message) {
|
|
826
|
+
const obj = {};
|
|
827
|
+
if (message.namespace !== "") {
|
|
828
|
+
obj.namespace = message.namespace;
|
|
829
|
+
}
|
|
830
|
+
return obj;
|
|
831
|
+
},
|
|
832
|
+
create(base) {
|
|
833
|
+
return exports.CleanupMigrationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
834
|
+
},
|
|
835
|
+
fromPartial(object) {
|
|
836
|
+
var _a;
|
|
837
|
+
const message = createBaseCleanupMigrationRequest();
|
|
838
|
+
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
839
|
+
return message;
|
|
840
|
+
},
|
|
841
|
+
};
|
|
842
|
+
function createBaseCleanupMigrationResponse() {
|
|
843
|
+
return {};
|
|
844
|
+
}
|
|
845
|
+
exports.CleanupMigrationResponse = {
|
|
846
|
+
encode(_, writer = minimal_1.default.Writer.create()) {
|
|
847
|
+
return writer;
|
|
848
|
+
},
|
|
849
|
+
decode(input, length) {
|
|
850
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
851
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
852
|
+
const message = createBaseCleanupMigrationResponse();
|
|
853
|
+
while (reader.pos < end) {
|
|
854
|
+
const tag = reader.uint32();
|
|
855
|
+
switch (tag >>> 3) {
|
|
856
|
+
}
|
|
857
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
reader.skipType(tag & 7);
|
|
861
|
+
}
|
|
862
|
+
return message;
|
|
863
|
+
},
|
|
864
|
+
fromJSON(_) {
|
|
865
|
+
return {};
|
|
866
|
+
},
|
|
867
|
+
toJSON(_) {
|
|
868
|
+
const obj = {};
|
|
869
|
+
return obj;
|
|
870
|
+
},
|
|
871
|
+
create(base) {
|
|
872
|
+
return exports.CleanupMigrationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
873
|
+
},
|
|
874
|
+
fromPartial(_) {
|
|
875
|
+
const message = createBaseCleanupMigrationResponse();
|
|
788
876
|
return message;
|
|
789
877
|
},
|
|
790
878
|
};
|