@fraym/proto 0.5.2 → 0.5.4
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/create_user.d.ts +2 -2
- package/freym/auth/management/create_user.js +51 -49
- package/freym/auth/management/delete_role.d.ts +1 -1
- package/freym/auth/management/delete_role.js +8 -4
- package/freym/auth/management/delete_user.d.ts +1 -1
- package/freym/auth/management/delete_user.js +8 -4
- package/freym/auth/management/get_roles.d.ts +1 -1
- package/freym/auth/management/get_roles.js +15 -15
- package/freym/auth/management/get_users.d.ts +4 -4
- package/freym/auth/management/get_users.js +59 -61
- package/freym/auth/management/migration.d.ts +1 -1
- package/freym/auth/management/migration.js +10 -8
- package/freym/auth/management/role_scope.d.ts +1 -1
- package/freym/auth/management/role_scope.js +8 -4
- package/freym/auth/management/service.d.ts +2 -1
- package/freym/auth/management/update_user.d.ts +2 -2
- package/freym/auth/management/update_user.js +45 -47
- package/freym/auth/management/upsert_role.d.ts +1 -1
- package/freym/auth/management/upsert_role.js +15 -11
- package/freym/crud/delivery/create_entry.d.ts +1 -1
- package/freym/crud/delivery/create_entry.js +73 -38
- package/freym/crud/delivery/delete_entries.d.ts +2 -2
- package/freym/crud/delivery/delete_entries.js +31 -35
- package/freym/crud/delivery/get_entries.d.ts +7 -7
- package/freym/crud/delivery/get_entries.js +116 -92
- package/freym/crud/delivery/service.d.ts +2 -1
- package/freym/crud/delivery/shared.d.ts +1 -1
- package/freym/crud/delivery/shared.js +66 -44
- package/freym/crud/delivery/update_entry.d.ts +1 -1
- package/freym/crud/delivery/update_entry.js +73 -38
- package/freym/crud/management/migration.d.ts +1 -1
- package/freym/crud/management/migration.js +98 -97
- package/freym/crud/management/service.d.ts +2 -1
- package/freym/migrations/management/finish.d.ts +3 -3
- package/freym/migrations/management/finish.js +25 -33
- package/freym/migrations/management/register.d.ts +1 -1
- package/freym/migrations/management/register.js +78 -77
- package/freym/migrations/management/rollback.d.ts +1 -1
- package/freym/migrations/management/service.d.ts +2 -1
- package/freym/migrations/management/start.d.ts +5 -5
- package/freym/migrations/management/start.js +95 -73
- package/freym/migrations/management/status.d.ts +1 -1
- package/freym/migrations/management/status.js +12 -6
- package/freym/projections/delivery/delete_projection_data.d.ts +2 -2
- package/freym/projections/delivery/delete_projection_data.js +31 -35
- package/freym/projections/delivery/get_projection_data.d.ts +7 -7
- package/freym/projections/delivery/get_projection_data.js +116 -92
- package/freym/projections/delivery/service.d.ts +2 -1
- package/freym/projections/delivery/shared.d.ts +1 -1
- package/freym/projections/delivery/shared.js +66 -44
- package/freym/projections/delivery/upsert_projection_data.d.ts +1 -1
- package/freym/projections/delivery/upsert_projection_data.js +76 -39
- package/freym/projections/management/data_transformation.d.ts +5 -5
- package/freym/projections/management/data_transformation.js +110 -79
- package/freym/projections/management/migration.d.ts +3 -3
- package/freym/projections/management/migration.js +138 -138
- package/freym/projections/management/service.d.ts +2 -1
- package/freym/streams/backchannel/broadcast.d.ts +2 -2
- package/freym/streams/backchannel/broadcast.js +26 -16
- package/freym/streams/backchannel/handled.d.ts +1 -1
- package/freym/streams/backchannel/handled.js +16 -8
- package/freym/streams/backchannel/service.d.ts +2 -1
- package/freym/streams/clientchannel/event.d.ts +3 -3
- package/freym/streams/clientchannel/event.js +94 -68
- package/freym/streams/clientchannel/get_event.d.ts +1 -1
- package/freym/streams/clientchannel/get_event.js +12 -6
- package/freym/streams/clientchannel/get_events_from_start.d.ts +1 -1
- package/freym/streams/clientchannel/get_events_from_start.js +11 -12
- package/freym/streams/clientchannel/get_filtered_events_from_start.d.ts +1 -1
- package/freym/streams/clientchannel/get_filtered_events_from_start.js +10 -13
- package/freym/streams/clientchannel/get_stream.d.ts +1 -1
- package/freym/streams/clientchannel/get_stream.js +14 -10
- package/freym/streams/clientchannel/introduce_gdpr_on_event_field.d.ts +1 -1
- package/freym/streams/clientchannel/introduce_gdpr_on_event_field.js +20 -10
- package/freym/streams/clientchannel/introduce_gdpr_on_field.d.ts +1 -1
- package/freym/streams/clientchannel/introduce_gdpr_on_field.js +16 -8
- package/freym/streams/clientchannel/invalidate_gdpr.d.ts +1 -1
- package/freym/streams/clientchannel/invalidate_gdpr.js +12 -6
- package/freym/streams/clientchannel/publish.d.ts +1 -1
- package/freym/streams/clientchannel/publish.js +7 -7
- package/freym/streams/clientchannel/service.d.ts +2 -1
- package/freym/streams/clientchannel/snapshot.d.ts +1 -1
- package/freym/streams/clientchannel/snapshot.js +8 -4
- package/freym/streams/clientchannel/subscribe.d.ts +3 -3
- package/freym/streams/clientchannel/subscribe.js +118 -80
- package/freym/sync/management/lease.d.ts +1 -1
- package/freym/sync/management/lease.js +28 -14
- package/freym/sync/management/lock.d.ts +1 -1
- package/freym/sync/management/lock.js +56 -28
- package/freym/sync/management/peer_nodes.d.ts +1 -1
- package/freym/sync/management/peer_nodes.js +12 -8
- package/freym/sync/management/service.d.ts +2 -1
- package/package.json +2 -2
|
@@ -79,9 +79,9 @@ exports.UpdateEntryRequest = {
|
|
|
79
79
|
},
|
|
80
80
|
fromJSON(object) {
|
|
81
81
|
return {
|
|
82
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
82
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
83
83
|
auth: isSet(object.auth) ? shared_1.AuthData.fromJSON(object.auth) : undefined,
|
|
84
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
84
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
85
85
|
data: isObject(object.data)
|
|
86
86
|
? Object.entries(object.data).reduce((acc, [key, value]) => {
|
|
87
87
|
acc[key] = String(value);
|
|
@@ -93,17 +93,27 @@ exports.UpdateEntryRequest = {
|
|
|
93
93
|
},
|
|
94
94
|
toJSON(message) {
|
|
95
95
|
const obj = {};
|
|
96
|
-
message.type !==
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
if (message.type !== "") {
|
|
97
|
+
obj.type = message.type;
|
|
98
|
+
}
|
|
99
|
+
if (message.auth !== undefined) {
|
|
100
|
+
obj.auth = shared_1.AuthData.toJSON(message.auth);
|
|
101
|
+
}
|
|
102
|
+
if (message.id !== "") {
|
|
103
|
+
obj.id = message.id;
|
|
104
|
+
}
|
|
100
105
|
if (message.data) {
|
|
101
|
-
Object.entries(message.data)
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
const entries = Object.entries(message.data);
|
|
107
|
+
if (entries.length > 0) {
|
|
108
|
+
obj.data = {};
|
|
109
|
+
entries.forEach(([k, v]) => {
|
|
110
|
+
obj.data[k] = v;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (message.eventMetadata !== undefined) {
|
|
115
|
+
obj.eventMetadata = shared_1.EventMetadata.toJSON(message.eventMetadata);
|
|
104
116
|
}
|
|
105
|
-
message.eventMetadata !== undefined &&
|
|
106
|
-
(obj.eventMetadata = message.eventMetadata ? shared_1.EventMetadata.toJSON(message.eventMetadata) : undefined);
|
|
107
117
|
return obj;
|
|
108
118
|
},
|
|
109
119
|
create(base) {
|
|
@@ -117,7 +127,7 @@ exports.UpdateEntryRequest = {
|
|
|
117
127
|
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
118
128
|
message.data = Object.entries((_c = object.data) !== null && _c !== void 0 ? _c : {}).reduce((acc, [key, value]) => {
|
|
119
129
|
if (value !== undefined) {
|
|
120
|
-
acc[key] = String(value);
|
|
130
|
+
acc[key] = globalThis.String(value);
|
|
121
131
|
}
|
|
122
132
|
return acc;
|
|
123
133
|
}, {});
|
|
@@ -168,12 +178,19 @@ exports.UpdateEntryRequest_DataEntry = {
|
|
|
168
178
|
return message;
|
|
169
179
|
},
|
|
170
180
|
fromJSON(object) {
|
|
171
|
-
return {
|
|
181
|
+
return {
|
|
182
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
183
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
184
|
+
};
|
|
172
185
|
},
|
|
173
186
|
toJSON(message) {
|
|
174
187
|
const obj = {};
|
|
175
|
-
message.key !==
|
|
176
|
-
|
|
188
|
+
if (message.key !== "") {
|
|
189
|
+
obj.key = message.key;
|
|
190
|
+
}
|
|
191
|
+
if (message.value !== "") {
|
|
192
|
+
obj.value = message.value;
|
|
193
|
+
}
|
|
177
194
|
return obj;
|
|
178
195
|
},
|
|
179
196
|
create(base) {
|
|
@@ -251,8 +268,8 @@ exports.UpdateEntryResponse = {
|
|
|
251
268
|
return acc;
|
|
252
269
|
}, {})
|
|
253
270
|
: {},
|
|
254
|
-
validationErrors: Array.isArray(object === null || object === void 0 ? void 0 : object.validationErrors)
|
|
255
|
-
? object.validationErrors.map((e) => String(e))
|
|
271
|
+
validationErrors: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.validationErrors)
|
|
272
|
+
? object.validationErrors.map((e) => globalThis.String(e))
|
|
256
273
|
: [],
|
|
257
274
|
fieldValidationErrors: isObject(object.fieldValidationErrors)
|
|
258
275
|
? Object.entries(object.fieldValidationErrors).reduce((acc, [key, value]) => {
|
|
@@ -263,24 +280,28 @@ exports.UpdateEntryResponse = {
|
|
|
263
280
|
};
|
|
264
281
|
},
|
|
265
282
|
toJSON(message) {
|
|
283
|
+
var _a;
|
|
266
284
|
const obj = {};
|
|
267
|
-
obj.newData = {};
|
|
268
285
|
if (message.newData) {
|
|
269
|
-
Object.entries(message.newData)
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
286
|
+
const entries = Object.entries(message.newData);
|
|
287
|
+
if (entries.length > 0) {
|
|
288
|
+
obj.newData = {};
|
|
289
|
+
entries.forEach(([k, v]) => {
|
|
290
|
+
obj.newData[k] = v;
|
|
291
|
+
});
|
|
292
|
+
}
|
|
275
293
|
}
|
|
276
|
-
|
|
277
|
-
obj.validationErrors =
|
|
294
|
+
if ((_a = message.validationErrors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
295
|
+
obj.validationErrors = message.validationErrors;
|
|
278
296
|
}
|
|
279
|
-
obj.fieldValidationErrors = {};
|
|
280
297
|
if (message.fieldValidationErrors) {
|
|
281
|
-
Object.entries(message.fieldValidationErrors)
|
|
282
|
-
|
|
283
|
-
|
|
298
|
+
const entries = Object.entries(message.fieldValidationErrors);
|
|
299
|
+
if (entries.length > 0) {
|
|
300
|
+
obj.fieldValidationErrors = {};
|
|
301
|
+
entries.forEach(([k, v]) => {
|
|
302
|
+
obj.fieldValidationErrors[k] = v;
|
|
303
|
+
});
|
|
304
|
+
}
|
|
284
305
|
}
|
|
285
306
|
return obj;
|
|
286
307
|
},
|
|
@@ -292,14 +313,14 @@ exports.UpdateEntryResponse = {
|
|
|
292
313
|
const message = createBaseUpdateEntryResponse();
|
|
293
314
|
message.newData = Object.entries((_a = object.newData) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
294
315
|
if (value !== undefined) {
|
|
295
|
-
acc[key] = String(value);
|
|
316
|
+
acc[key] = globalThis.String(value);
|
|
296
317
|
}
|
|
297
318
|
return acc;
|
|
298
319
|
}, {});
|
|
299
320
|
message.validationErrors = ((_b = object.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
300
321
|
message.fieldValidationErrors = Object.entries((_c = object.fieldValidationErrors) !== null && _c !== void 0 ? _c : {}).reduce((acc, [key, value]) => {
|
|
301
322
|
if (value !== undefined) {
|
|
302
|
-
acc[key] = String(value);
|
|
323
|
+
acc[key] = globalThis.String(value);
|
|
303
324
|
}
|
|
304
325
|
return acc;
|
|
305
326
|
}, {});
|
|
@@ -347,12 +368,19 @@ exports.UpdateEntryResponse_NewDataEntry = {
|
|
|
347
368
|
return message;
|
|
348
369
|
},
|
|
349
370
|
fromJSON(object) {
|
|
350
|
-
return {
|
|
371
|
+
return {
|
|
372
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
373
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
374
|
+
};
|
|
351
375
|
},
|
|
352
376
|
toJSON(message) {
|
|
353
377
|
const obj = {};
|
|
354
|
-
message.key !==
|
|
355
|
-
|
|
378
|
+
if (message.key !== "") {
|
|
379
|
+
obj.key = message.key;
|
|
380
|
+
}
|
|
381
|
+
if (message.value !== "") {
|
|
382
|
+
obj.value = message.value;
|
|
383
|
+
}
|
|
356
384
|
return obj;
|
|
357
385
|
},
|
|
358
386
|
create(base) {
|
|
@@ -407,12 +435,19 @@ exports.UpdateEntryResponse_FieldValidationErrorsEntry = {
|
|
|
407
435
|
return message;
|
|
408
436
|
},
|
|
409
437
|
fromJSON(object) {
|
|
410
|
-
return {
|
|
438
|
+
return {
|
|
439
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
440
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
441
|
+
};
|
|
411
442
|
},
|
|
412
443
|
toJSON(message) {
|
|
413
444
|
const obj = {};
|
|
414
|
-
message.key !==
|
|
415
|
-
|
|
445
|
+
if (message.key !== "") {
|
|
446
|
+
obj.key = message.key;
|
|
447
|
+
}
|
|
448
|
+
if (message.value !== "") {
|
|
449
|
+
obj.value = message.value;
|
|
450
|
+
}
|
|
416
451
|
return obj;
|
|
417
452
|
},
|
|
418
453
|
create(base) {
|
|
@@ -175,7 +175,7 @@ export declare const GetMigrationStatusResponse: {
|
|
|
175
175
|
fromPartial(object: DeepPartial<GetMigrationStatusResponse>): GetMigrationStatusResponse;
|
|
176
176
|
};
|
|
177
177
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
178
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
178
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
179
179
|
$case: string;
|
|
180
180
|
} ? {
|
|
181
181
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -48,18 +48,18 @@ exports.EnumType = {
|
|
|
48
48
|
},
|
|
49
49
|
fromJSON(object) {
|
|
50
50
|
return {
|
|
51
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
52
|
-
values: Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => String(e)) : [],
|
|
51
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
52
|
+
values: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : [],
|
|
53
53
|
};
|
|
54
54
|
},
|
|
55
55
|
toJSON(message) {
|
|
56
|
+
var _a;
|
|
56
57
|
const obj = {};
|
|
57
|
-
message.name !==
|
|
58
|
-
|
|
59
|
-
obj.values = message.values.map((e) => e);
|
|
58
|
+
if (message.name !== "") {
|
|
59
|
+
obj.name = message.name;
|
|
60
60
|
}
|
|
61
|
-
|
|
62
|
-
obj.values =
|
|
61
|
+
if ((_a = message.values) === null || _a === void 0 ? void 0 : _a.length) {
|
|
62
|
+
obj.values = message.values;
|
|
63
63
|
}
|
|
64
64
|
return obj;
|
|
65
65
|
},
|
|
@@ -125,25 +125,24 @@ exports.ProjectionType = {
|
|
|
125
125
|
},
|
|
126
126
|
fromJSON(object) {
|
|
127
127
|
return {
|
|
128
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
129
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
130
|
-
|
|
128
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
129
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
130
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
131
|
+
: [],
|
|
132
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
131
133
|
};
|
|
132
134
|
},
|
|
133
135
|
toJSON(message) {
|
|
136
|
+
var _a, _b;
|
|
134
137
|
const obj = {};
|
|
135
|
-
message.name !==
|
|
136
|
-
|
|
137
|
-
obj.directives = message.directives.map((e) => e ? exports.TypeDirective.toJSON(e) : undefined);
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
obj.directives = [];
|
|
138
|
+
if (message.name !== "") {
|
|
139
|
+
obj.name = message.name;
|
|
141
140
|
}
|
|
142
|
-
if (message.
|
|
143
|
-
obj.
|
|
141
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
142
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
144
143
|
}
|
|
145
|
-
|
|
146
|
-
obj.fields =
|
|
144
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
145
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
147
146
|
}
|
|
148
147
|
return obj;
|
|
149
148
|
},
|
|
@@ -210,25 +209,24 @@ exports.CrudType = {
|
|
|
210
209
|
},
|
|
211
210
|
fromJSON(object) {
|
|
212
211
|
return {
|
|
213
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
214
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
215
|
-
|
|
212
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
213
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
214
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
215
|
+
: [],
|
|
216
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
216
217
|
};
|
|
217
218
|
},
|
|
218
219
|
toJSON(message) {
|
|
220
|
+
var _a, _b;
|
|
219
221
|
const obj = {};
|
|
220
|
-
message.name !==
|
|
221
|
-
|
|
222
|
-
obj.directives = message.directives.map((e) => e ? exports.TypeDirective.toJSON(e) : undefined);
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
obj.directives = [];
|
|
222
|
+
if (message.name !== "") {
|
|
223
|
+
obj.name = message.name;
|
|
226
224
|
}
|
|
227
|
-
if (message.
|
|
228
|
-
obj.
|
|
225
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
226
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
229
227
|
}
|
|
230
|
-
|
|
231
|
-
obj.fields =
|
|
228
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
229
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
232
230
|
}
|
|
233
231
|
return obj;
|
|
234
232
|
},
|
|
@@ -295,25 +293,24 @@ exports.NestedType = {
|
|
|
295
293
|
},
|
|
296
294
|
fromJSON(object) {
|
|
297
295
|
return {
|
|
298
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
299
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
300
|
-
|
|
296
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
297
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
298
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
299
|
+
: [],
|
|
300
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
301
301
|
};
|
|
302
302
|
},
|
|
303
303
|
toJSON(message) {
|
|
304
|
+
var _a, _b;
|
|
304
305
|
const obj = {};
|
|
305
|
-
message.name !==
|
|
306
|
-
|
|
307
|
-
obj.directives = message.directives.map((e) => e ? exports.TypeDirective.toJSON(e) : undefined);
|
|
308
|
-
}
|
|
309
|
-
else {
|
|
310
|
-
obj.directives = [];
|
|
306
|
+
if (message.name !== "") {
|
|
307
|
+
obj.name = message.name;
|
|
311
308
|
}
|
|
312
|
-
if (message.
|
|
313
|
-
obj.
|
|
309
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
310
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
314
311
|
}
|
|
315
|
-
|
|
316
|
-
obj.fields =
|
|
312
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
313
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
317
314
|
}
|
|
318
315
|
return obj;
|
|
319
316
|
},
|
|
@@ -380,25 +377,24 @@ exports.TypeField = {
|
|
|
380
377
|
},
|
|
381
378
|
fromJSON(object) {
|
|
382
379
|
return {
|
|
383
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
384
|
-
type: Array.isArray(object === null || object === void 0 ? void 0 : object.type) ? object.type.map((e) => String(e)) : [],
|
|
385
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
380
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
381
|
+
type: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.type) ? object.type.map((e) => globalThis.String(e)) : [],
|
|
382
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
383
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
384
|
+
: [],
|
|
386
385
|
};
|
|
387
386
|
},
|
|
388
387
|
toJSON(message) {
|
|
388
|
+
var _a, _b;
|
|
389
389
|
const obj = {};
|
|
390
|
-
message.name !==
|
|
391
|
-
|
|
392
|
-
obj.type = message.type.map((e) => e);
|
|
393
|
-
}
|
|
394
|
-
else {
|
|
395
|
-
obj.type = [];
|
|
390
|
+
if (message.name !== "") {
|
|
391
|
+
obj.name = message.name;
|
|
396
392
|
}
|
|
397
|
-
if (message.
|
|
398
|
-
obj.
|
|
393
|
+
if ((_a = message.type) === null || _a === void 0 ? void 0 : _a.length) {
|
|
394
|
+
obj.type = message.type;
|
|
399
395
|
}
|
|
400
|
-
|
|
401
|
-
obj.directives =
|
|
396
|
+
if ((_b = message.directives) === null || _b === void 0 ? void 0 : _b.length) {
|
|
397
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
402
398
|
}
|
|
403
399
|
return obj;
|
|
404
400
|
},
|
|
@@ -456,18 +452,20 @@ exports.TypeDirective = {
|
|
|
456
452
|
},
|
|
457
453
|
fromJSON(object) {
|
|
458
454
|
return {
|
|
459
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
460
|
-
arguments: Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
455
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
456
|
+
arguments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
457
|
+
? object.arguments.map((e) => exports.TypeArgument.fromJSON(e))
|
|
458
|
+
: [],
|
|
461
459
|
};
|
|
462
460
|
},
|
|
463
461
|
toJSON(message) {
|
|
462
|
+
var _a;
|
|
464
463
|
const obj = {};
|
|
465
|
-
message.name !==
|
|
466
|
-
|
|
467
|
-
obj.arguments = message.arguments.map((e) => e ? exports.TypeArgument.toJSON(e) : undefined);
|
|
464
|
+
if (message.name !== "") {
|
|
465
|
+
obj.name = message.name;
|
|
468
466
|
}
|
|
469
|
-
|
|
470
|
-
obj.arguments =
|
|
467
|
+
if ((_a = message.arguments) === null || _a === void 0 ? void 0 : _a.length) {
|
|
468
|
+
obj.arguments = message.arguments.map((e) => exports.TypeArgument.toJSON(e));
|
|
471
469
|
}
|
|
472
470
|
return obj;
|
|
473
471
|
},
|
|
@@ -524,14 +522,18 @@ exports.TypeArgument = {
|
|
|
524
522
|
},
|
|
525
523
|
fromJSON(object) {
|
|
526
524
|
return {
|
|
527
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
528
|
-
value: isSet(object.value) ? String(object.value) : "",
|
|
525
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
526
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
529
527
|
};
|
|
530
528
|
},
|
|
531
529
|
toJSON(message) {
|
|
532
530
|
const obj = {};
|
|
533
|
-
message.name !==
|
|
534
|
-
|
|
531
|
+
if (message.name !== "") {
|
|
532
|
+
obj.name = message.name;
|
|
533
|
+
}
|
|
534
|
+
if (message.value !== "") {
|
|
535
|
+
obj.value = message.value;
|
|
536
|
+
}
|
|
535
537
|
return obj;
|
|
536
538
|
},
|
|
537
539
|
create(base) {
|
|
@@ -614,42 +616,39 @@ exports.RegisterMigrationRequest = {
|
|
|
614
616
|
},
|
|
615
617
|
fromJSON(object) {
|
|
616
618
|
return {
|
|
617
|
-
projectionTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.projectionTypes)
|
|
619
|
+
projectionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.projectionTypes)
|
|
618
620
|
? object.projectionTypes.map((e) => exports.ProjectionType.fromJSON(e))
|
|
619
621
|
: [],
|
|
620
|
-
crudTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
622
|
+
crudTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
623
|
+
? object.crudTypes.map((e) => exports.CrudType.fromJSON(e))
|
|
624
|
+
: [],
|
|
625
|
+
enums: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.enums) ? object.enums.map((e) => exports.EnumType.fromJSON(e)) : [],
|
|
626
|
+
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
627
|
+
? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e))
|
|
628
|
+
: [],
|
|
629
|
+
migrateOnlyGivenTypes: isSet(object.migrateOnlyGivenTypes)
|
|
630
|
+
? globalThis.Boolean(object.migrateOnlyGivenTypes)
|
|
631
|
+
: false,
|
|
624
632
|
};
|
|
625
633
|
},
|
|
626
634
|
toJSON(message) {
|
|
635
|
+
var _a, _b, _c, _d;
|
|
627
636
|
const obj = {};
|
|
628
|
-
if (message.projectionTypes) {
|
|
629
|
-
obj.projectionTypes = message.projectionTypes.map((e) =>
|
|
630
|
-
}
|
|
631
|
-
else {
|
|
632
|
-
obj.projectionTypes = [];
|
|
633
|
-
}
|
|
634
|
-
if (message.crudTypes) {
|
|
635
|
-
obj.crudTypes = message.crudTypes.map((e) => e ? exports.CrudType.toJSON(e) : undefined);
|
|
637
|
+
if ((_a = message.projectionTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
638
|
+
obj.projectionTypes = message.projectionTypes.map((e) => exports.ProjectionType.toJSON(e));
|
|
636
639
|
}
|
|
637
|
-
|
|
638
|
-
obj.crudTypes =
|
|
640
|
+
if ((_b = message.crudTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
641
|
+
obj.crudTypes = message.crudTypes.map((e) => exports.CrudType.toJSON(e));
|
|
639
642
|
}
|
|
640
|
-
if (message.enums) {
|
|
641
|
-
obj.enums = message.enums.map((e) =>
|
|
643
|
+
if ((_c = message.enums) === null || _c === void 0 ? void 0 : _c.length) {
|
|
644
|
+
obj.enums = message.enums.map((e) => exports.EnumType.toJSON(e));
|
|
642
645
|
}
|
|
643
|
-
|
|
644
|
-
obj.
|
|
646
|
+
if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
647
|
+
obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
|
|
645
648
|
}
|
|
646
|
-
if (message.
|
|
647
|
-
obj.
|
|
648
|
-
}
|
|
649
|
-
else {
|
|
650
|
-
obj.nestedTypes = [];
|
|
649
|
+
if (message.migrateOnlyGivenTypes === true) {
|
|
650
|
+
obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes;
|
|
651
651
|
}
|
|
652
|
-
message.migrateOnlyGivenTypes !== undefined && (obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes);
|
|
653
652
|
return obj;
|
|
654
653
|
},
|
|
655
654
|
create(base) {
|
|
@@ -920,11 +919,13 @@ exports.GetMigrationStatusResponse = {
|
|
|
920
919
|
return message;
|
|
921
920
|
},
|
|
922
921
|
fromJSON(object) {
|
|
923
|
-
return { done: isSet(object.done) ? Boolean(object.done) : false };
|
|
922
|
+
return { done: isSet(object.done) ? globalThis.Boolean(object.done) : false };
|
|
924
923
|
},
|
|
925
924
|
toJSON(message) {
|
|
926
925
|
const obj = {};
|
|
927
|
-
|
|
926
|
+
if (message.done === true) {
|
|
927
|
+
obj.done = message.done;
|
|
928
|
+
}
|
|
928
929
|
return obj;
|
|
929
930
|
},
|
|
930
931
|
create(base) {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { ChannelCredentials, Client, Metadata } from "@grpc/grpc-js";
|
|
3
|
+
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
4
|
import { FinishMigrationRequest, FinishMigrationResponse, GetMigrationStatusRequest, GetMigrationStatusResponse, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse } from "./migration";
|
|
4
5
|
export declare const protobufPackage = "freym.crud.management";
|
|
5
6
|
export type ServiceService = typeof ServiceService;
|
|
@@ -2,12 +2,12 @@ import _m0 from "protobufjs/minimal";
|
|
|
2
2
|
export declare const protobufPackage = "freym.migrations.management";
|
|
3
3
|
export interface FinishRequest {
|
|
4
4
|
status: {
|
|
5
|
-
[key: string]:
|
|
5
|
+
[key: string]: string;
|
|
6
6
|
};
|
|
7
7
|
}
|
|
8
8
|
export interface FinishRequest_StatusEntry {
|
|
9
9
|
key: string;
|
|
10
|
-
value:
|
|
10
|
+
value: string;
|
|
11
11
|
}
|
|
12
12
|
export interface FinishResponse {
|
|
13
13
|
}
|
|
@@ -36,7 +36,7 @@ export declare const FinishResponse: {
|
|
|
36
36
|
fromPartial(_: DeepPartial<FinishResponse>): FinishResponse;
|
|
37
37
|
};
|
|
38
38
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
39
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
39
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
40
40
|
$case: string;
|
|
41
41
|
} ? {
|
|
42
42
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|