@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
|
@@ -49,18 +49,18 @@ exports.EnumType = {
|
|
|
49
49
|
},
|
|
50
50
|
fromJSON(object) {
|
|
51
51
|
return {
|
|
52
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
53
|
-
values: Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => String(e)) : [],
|
|
52
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
53
|
+
values: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.values) ? object.values.map((e) => globalThis.String(e)) : [],
|
|
54
54
|
};
|
|
55
55
|
},
|
|
56
56
|
toJSON(message) {
|
|
57
|
+
var _a;
|
|
57
58
|
const obj = {};
|
|
58
|
-
message.name !==
|
|
59
|
-
|
|
60
|
-
obj.values = message.values.map((e) => e);
|
|
59
|
+
if (message.name !== "") {
|
|
60
|
+
obj.name = message.name;
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
obj.values =
|
|
62
|
+
if ((_a = message.values) === null || _a === void 0 ? void 0 : _a.length) {
|
|
63
|
+
obj.values = message.values;
|
|
64
64
|
}
|
|
65
65
|
return obj;
|
|
66
66
|
},
|
|
@@ -126,25 +126,24 @@ exports.ProjectionType = {
|
|
|
126
126
|
},
|
|
127
127
|
fromJSON(object) {
|
|
128
128
|
return {
|
|
129
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
130
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
131
|
-
|
|
129
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
130
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
131
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
132
|
+
: [],
|
|
133
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
132
134
|
};
|
|
133
135
|
},
|
|
134
136
|
toJSON(message) {
|
|
137
|
+
var _a, _b;
|
|
135
138
|
const obj = {};
|
|
136
|
-
message.name !==
|
|
137
|
-
|
|
138
|
-
obj.directives = message.directives.map((e) => e ? exports.TypeDirective.toJSON(e) : undefined);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
obj.directives = [];
|
|
139
|
+
if (message.name !== "") {
|
|
140
|
+
obj.name = message.name;
|
|
142
141
|
}
|
|
143
|
-
if (message.
|
|
144
|
-
obj.
|
|
142
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
143
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
145
144
|
}
|
|
146
|
-
|
|
147
|
-
obj.fields =
|
|
145
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
146
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
148
147
|
}
|
|
149
148
|
return obj;
|
|
150
149
|
},
|
|
@@ -211,25 +210,24 @@ exports.CrudType = {
|
|
|
211
210
|
},
|
|
212
211
|
fromJSON(object) {
|
|
213
212
|
return {
|
|
214
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
215
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
216
|
-
|
|
213
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
214
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
215
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
216
|
+
: [],
|
|
217
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
217
218
|
};
|
|
218
219
|
},
|
|
219
220
|
toJSON(message) {
|
|
221
|
+
var _a, _b;
|
|
220
222
|
const obj = {};
|
|
221
|
-
message.name !==
|
|
222
|
-
|
|
223
|
-
obj.directives = message.directives.map((e) => e ? exports.TypeDirective.toJSON(e) : undefined);
|
|
224
|
-
}
|
|
225
|
-
else {
|
|
226
|
-
obj.directives = [];
|
|
223
|
+
if (message.name !== "") {
|
|
224
|
+
obj.name = message.name;
|
|
227
225
|
}
|
|
228
|
-
if (message.
|
|
229
|
-
obj.
|
|
226
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
227
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
230
228
|
}
|
|
231
|
-
|
|
232
|
-
obj.fields =
|
|
229
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
230
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
233
231
|
}
|
|
234
232
|
return obj;
|
|
235
233
|
},
|
|
@@ -296,25 +294,24 @@ exports.NestedType = {
|
|
|
296
294
|
},
|
|
297
295
|
fromJSON(object) {
|
|
298
296
|
return {
|
|
299
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
300
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
301
|
-
|
|
297
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
298
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
299
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
300
|
+
: [],
|
|
301
|
+
fields: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.fields) ? object.fields.map((e) => exports.TypeField.fromJSON(e)) : [],
|
|
302
302
|
};
|
|
303
303
|
},
|
|
304
304
|
toJSON(message) {
|
|
305
|
+
var _a, _b;
|
|
305
306
|
const obj = {};
|
|
306
|
-
message.name !==
|
|
307
|
-
|
|
308
|
-
obj.directives = message.directives.map((e) => e ? exports.TypeDirective.toJSON(e) : undefined);
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
obj.directives = [];
|
|
307
|
+
if (message.name !== "") {
|
|
308
|
+
obj.name = message.name;
|
|
312
309
|
}
|
|
313
|
-
if (message.
|
|
314
|
-
obj.
|
|
310
|
+
if ((_a = message.directives) === null || _a === void 0 ? void 0 : _a.length) {
|
|
311
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
315
312
|
}
|
|
316
|
-
|
|
317
|
-
obj.fields =
|
|
313
|
+
if ((_b = message.fields) === null || _b === void 0 ? void 0 : _b.length) {
|
|
314
|
+
obj.fields = message.fields.map((e) => exports.TypeField.toJSON(e));
|
|
318
315
|
}
|
|
319
316
|
return obj;
|
|
320
317
|
},
|
|
@@ -381,25 +378,24 @@ exports.TypeField = {
|
|
|
381
378
|
},
|
|
382
379
|
fromJSON(object) {
|
|
383
380
|
return {
|
|
384
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
385
|
-
type: Array.isArray(object === null || object === void 0 ? void 0 : object.type) ? object.type.map((e) => String(e)) : [],
|
|
386
|
-
directives: Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
381
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
382
|
+
type: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.type) ? object.type.map((e) => globalThis.String(e)) : [],
|
|
383
|
+
directives: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.directives)
|
|
384
|
+
? object.directives.map((e) => exports.TypeDirective.fromJSON(e))
|
|
385
|
+
: [],
|
|
387
386
|
};
|
|
388
387
|
},
|
|
389
388
|
toJSON(message) {
|
|
389
|
+
var _a, _b;
|
|
390
390
|
const obj = {};
|
|
391
|
-
message.name !==
|
|
392
|
-
|
|
393
|
-
obj.type = message.type.map((e) => e);
|
|
394
|
-
}
|
|
395
|
-
else {
|
|
396
|
-
obj.type = [];
|
|
391
|
+
if (message.name !== "") {
|
|
392
|
+
obj.name = message.name;
|
|
397
393
|
}
|
|
398
|
-
if (message.
|
|
399
|
-
obj.
|
|
394
|
+
if ((_a = message.type) === null || _a === void 0 ? void 0 : _a.length) {
|
|
395
|
+
obj.type = message.type;
|
|
400
396
|
}
|
|
401
|
-
|
|
402
|
-
obj.directives =
|
|
397
|
+
if ((_b = message.directives) === null || _b === void 0 ? void 0 : _b.length) {
|
|
398
|
+
obj.directives = message.directives.map((e) => exports.TypeDirective.toJSON(e));
|
|
403
399
|
}
|
|
404
400
|
return obj;
|
|
405
401
|
},
|
|
@@ -457,18 +453,20 @@ exports.TypeDirective = {
|
|
|
457
453
|
},
|
|
458
454
|
fromJSON(object) {
|
|
459
455
|
return {
|
|
460
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
461
|
-
arguments: Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
456
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
457
|
+
arguments: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.arguments)
|
|
458
|
+
? object.arguments.map((e) => exports.TypeArgument.fromJSON(e))
|
|
459
|
+
: [],
|
|
462
460
|
};
|
|
463
461
|
},
|
|
464
462
|
toJSON(message) {
|
|
463
|
+
var _a;
|
|
465
464
|
const obj = {};
|
|
466
|
-
message.name !==
|
|
467
|
-
|
|
468
|
-
obj.arguments = message.arguments.map((e) => e ? exports.TypeArgument.toJSON(e) : undefined);
|
|
465
|
+
if (message.name !== "") {
|
|
466
|
+
obj.name = message.name;
|
|
469
467
|
}
|
|
470
|
-
|
|
471
|
-
obj.arguments =
|
|
468
|
+
if ((_a = message.arguments) === null || _a === void 0 ? void 0 : _a.length) {
|
|
469
|
+
obj.arguments = message.arguments.map((e) => exports.TypeArgument.toJSON(e));
|
|
472
470
|
}
|
|
473
471
|
return obj;
|
|
474
472
|
},
|
|
@@ -525,14 +523,18 @@ exports.TypeArgument = {
|
|
|
525
523
|
},
|
|
526
524
|
fromJSON(object) {
|
|
527
525
|
return {
|
|
528
|
-
name: isSet(object.name) ? String(object.name) : "",
|
|
529
|
-
value: isSet(object.value) ? String(object.value) : "",
|
|
526
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
527
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
530
528
|
};
|
|
531
529
|
},
|
|
532
530
|
toJSON(message) {
|
|
533
531
|
const obj = {};
|
|
534
|
-
message.name !==
|
|
535
|
-
|
|
532
|
+
if (message.name !== "") {
|
|
533
|
+
obj.name = message.name;
|
|
534
|
+
}
|
|
535
|
+
if (message.value !== "") {
|
|
536
|
+
obj.value = message.value;
|
|
537
|
+
}
|
|
536
538
|
return obj;
|
|
537
539
|
},
|
|
538
540
|
create(base) {
|
|
@@ -632,46 +634,44 @@ exports.RegisterMigrationRequest = {
|
|
|
632
634
|
fromJSON(object) {
|
|
633
635
|
return {
|
|
634
636
|
dangerouslyRemoveGdprFields: isSet(object.dangerouslyRemoveGdprFields)
|
|
635
|
-
? Boolean(object.dangerouslyRemoveGdprFields)
|
|
637
|
+
? globalThis.Boolean(object.dangerouslyRemoveGdprFields)
|
|
636
638
|
: false,
|
|
637
|
-
projectionTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.projectionTypes)
|
|
639
|
+
projectionTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.projectionTypes)
|
|
638
640
|
? object.projectionTypes.map((e) => exports.ProjectionType.fromJSON(e))
|
|
639
641
|
: [],
|
|
640
|
-
crudTypes: Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
642
|
+
crudTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
643
|
+
? object.crudTypes.map((e) => exports.CrudType.fromJSON(e))
|
|
644
|
+
: [],
|
|
645
|
+
enums: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.enums) ? object.enums.map((e) => exports.EnumType.fromJSON(e)) : [],
|
|
646
|
+
nestedTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.nestedTypes)
|
|
647
|
+
? object.nestedTypes.map((e) => exports.NestedType.fromJSON(e))
|
|
648
|
+
: [],
|
|
649
|
+
migrateOnlyGivenTypes: isSet(object.migrateOnlyGivenTypes)
|
|
650
|
+
? globalThis.Boolean(object.migrateOnlyGivenTypes)
|
|
651
|
+
: false,
|
|
644
652
|
};
|
|
645
653
|
},
|
|
646
654
|
toJSON(message) {
|
|
655
|
+
var _a, _b, _c, _d;
|
|
647
656
|
const obj = {};
|
|
648
|
-
message.dangerouslyRemoveGdprFields
|
|
649
|
-
|
|
650
|
-
if (message.projectionTypes) {
|
|
651
|
-
obj.projectionTypes = message.projectionTypes.map((e) => e ? exports.ProjectionType.toJSON(e) : undefined);
|
|
652
|
-
}
|
|
653
|
-
else {
|
|
654
|
-
obj.projectionTypes = [];
|
|
655
|
-
}
|
|
656
|
-
if (message.crudTypes) {
|
|
657
|
-
obj.crudTypes = message.crudTypes.map((e) => e ? exports.CrudType.toJSON(e) : undefined);
|
|
657
|
+
if (message.dangerouslyRemoveGdprFields === true) {
|
|
658
|
+
obj.dangerouslyRemoveGdprFields = message.dangerouslyRemoveGdprFields;
|
|
658
659
|
}
|
|
659
|
-
|
|
660
|
-
obj.
|
|
660
|
+
if ((_a = message.projectionTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
661
|
+
obj.projectionTypes = message.projectionTypes.map((e) => exports.ProjectionType.toJSON(e));
|
|
661
662
|
}
|
|
662
|
-
if (message.
|
|
663
|
-
obj.
|
|
663
|
+
if ((_b = message.crudTypes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
664
|
+
obj.crudTypes = message.crudTypes.map((e) => exports.CrudType.toJSON(e));
|
|
664
665
|
}
|
|
665
|
-
|
|
666
|
-
obj.enums =
|
|
666
|
+
if ((_c = message.enums) === null || _c === void 0 ? void 0 : _c.length) {
|
|
667
|
+
obj.enums = message.enums.map((e) => exports.EnumType.toJSON(e));
|
|
667
668
|
}
|
|
668
|
-
if (message.nestedTypes) {
|
|
669
|
-
obj.nestedTypes = message.nestedTypes.map((e) =>
|
|
669
|
+
if ((_d = message.nestedTypes) === null || _d === void 0 ? void 0 : _d.length) {
|
|
670
|
+
obj.nestedTypes = message.nestedTypes.map((e) => exports.NestedType.toJSON(e));
|
|
670
671
|
}
|
|
671
|
-
|
|
672
|
-
obj.
|
|
672
|
+
if (message.migrateOnlyGivenTypes === true) {
|
|
673
|
+
obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes;
|
|
673
674
|
}
|
|
674
|
-
message.migrateOnlyGivenTypes !== undefined && (obj.migrateOnlyGivenTypes = message.migrateOnlyGivenTypes);
|
|
675
675
|
return obj;
|
|
676
676
|
},
|
|
677
677
|
create(base) {
|
|
@@ -764,7 +764,7 @@ exports.FinishMigrationRequest = {
|
|
|
764
764
|
return {
|
|
765
765
|
status: isObject(object.status)
|
|
766
766
|
? Object.entries(object.status).reduce((acc, [key, value]) => {
|
|
767
|
-
acc[key] =
|
|
767
|
+
acc[key] = String(value);
|
|
768
768
|
return acc;
|
|
769
769
|
}, {})
|
|
770
770
|
: {},
|
|
@@ -772,11 +772,14 @@ exports.FinishMigrationRequest = {
|
|
|
772
772
|
},
|
|
773
773
|
toJSON(message) {
|
|
774
774
|
const obj = {};
|
|
775
|
-
obj.status = {};
|
|
776
775
|
if (message.status) {
|
|
777
|
-
Object.entries(message.status)
|
|
778
|
-
|
|
779
|
-
|
|
776
|
+
const entries = Object.entries(message.status);
|
|
777
|
+
if (entries.length > 0) {
|
|
778
|
+
obj.status = {};
|
|
779
|
+
entries.forEach(([k, v]) => {
|
|
780
|
+
obj.status[k] = v;
|
|
781
|
+
});
|
|
782
|
+
}
|
|
780
783
|
}
|
|
781
784
|
return obj;
|
|
782
785
|
},
|
|
@@ -788,7 +791,7 @@ exports.FinishMigrationRequest = {
|
|
|
788
791
|
const message = createBaseFinishMigrationRequest();
|
|
789
792
|
message.status = Object.entries((_a = object.status) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
790
793
|
if (value !== undefined) {
|
|
791
|
-
acc[key] =
|
|
794
|
+
acc[key] = globalThis.String(value);
|
|
792
795
|
}
|
|
793
796
|
return acc;
|
|
794
797
|
}, {});
|
|
@@ -796,14 +799,14 @@ exports.FinishMigrationRequest = {
|
|
|
796
799
|
},
|
|
797
800
|
};
|
|
798
801
|
function createBaseFinishMigrationRequest_StatusEntry() {
|
|
799
|
-
return { key: "", value: 0 };
|
|
802
|
+
return { key: "", value: "0" };
|
|
800
803
|
}
|
|
801
804
|
exports.FinishMigrationRequest_StatusEntry = {
|
|
802
805
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
803
806
|
if (message.key !== "") {
|
|
804
807
|
writer.uint32(10).string(message.key);
|
|
805
808
|
}
|
|
806
|
-
if (message.value !== 0) {
|
|
809
|
+
if (message.value !== "0") {
|
|
807
810
|
writer.uint32(16).int64(message.value);
|
|
808
811
|
}
|
|
809
812
|
return writer;
|
|
@@ -825,7 +828,7 @@ exports.FinishMigrationRequest_StatusEntry = {
|
|
|
825
828
|
if (tag !== 16) {
|
|
826
829
|
break;
|
|
827
830
|
}
|
|
828
|
-
message.value =
|
|
831
|
+
message.value = longToString(reader.int64());
|
|
829
832
|
continue;
|
|
830
833
|
}
|
|
831
834
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -836,12 +839,19 @@ exports.FinishMigrationRequest_StatusEntry = {
|
|
|
836
839
|
return message;
|
|
837
840
|
},
|
|
838
841
|
fromJSON(object) {
|
|
839
|
-
return {
|
|
842
|
+
return {
|
|
843
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
844
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "0",
|
|
845
|
+
};
|
|
840
846
|
},
|
|
841
847
|
toJSON(message) {
|
|
842
848
|
const obj = {};
|
|
843
|
-
message.key !==
|
|
844
|
-
|
|
849
|
+
if (message.key !== "") {
|
|
850
|
+
obj.key = message.key;
|
|
851
|
+
}
|
|
852
|
+
if (message.value !== "0") {
|
|
853
|
+
obj.value = message.value;
|
|
854
|
+
}
|
|
845
855
|
return obj;
|
|
846
856
|
},
|
|
847
857
|
create(base) {
|
|
@@ -851,7 +861,7 @@ exports.FinishMigrationRequest_StatusEntry = {
|
|
|
851
861
|
var _a, _b;
|
|
852
862
|
const message = createBaseFinishMigrationRequest_StatusEntry();
|
|
853
863
|
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
854
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0;
|
|
864
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "0";
|
|
855
865
|
return message;
|
|
856
866
|
},
|
|
857
867
|
};
|
|
@@ -1063,18 +1073,26 @@ exports.GetMigrationStatusResponse = {
|
|
|
1063
1073
|
},
|
|
1064
1074
|
fromJSON(object) {
|
|
1065
1075
|
return {
|
|
1066
|
-
started: isSet(object.started) ? Boolean(object.started) : false,
|
|
1067
|
-
done: isSet(object.done) ? Boolean(object.done) : false,
|
|
1068
|
-
failed: isSet(object.failed) ? Boolean(object.failed) : false,
|
|
1069
|
-
readyForFinish: isSet(object.readyForFinish) ? Boolean(object.readyForFinish) : false,
|
|
1076
|
+
started: isSet(object.started) ? globalThis.Boolean(object.started) : false,
|
|
1077
|
+
done: isSet(object.done) ? globalThis.Boolean(object.done) : false,
|
|
1078
|
+
failed: isSet(object.failed) ? globalThis.Boolean(object.failed) : false,
|
|
1079
|
+
readyForFinish: isSet(object.readyForFinish) ? globalThis.Boolean(object.readyForFinish) : false,
|
|
1070
1080
|
};
|
|
1071
1081
|
},
|
|
1072
1082
|
toJSON(message) {
|
|
1073
1083
|
const obj = {};
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1084
|
+
if (message.started === true) {
|
|
1085
|
+
obj.started = message.started;
|
|
1086
|
+
}
|
|
1087
|
+
if (message.done === true) {
|
|
1088
|
+
obj.done = message.done;
|
|
1089
|
+
}
|
|
1090
|
+
if (message.failed === true) {
|
|
1091
|
+
obj.failed = message.failed;
|
|
1092
|
+
}
|
|
1093
|
+
if (message.readyForFinish === true) {
|
|
1094
|
+
obj.readyForFinish = message.readyForFinish;
|
|
1095
|
+
}
|
|
1078
1096
|
return obj;
|
|
1079
1097
|
},
|
|
1080
1098
|
create(base) {
|
|
@@ -1090,26 +1108,8 @@ exports.GetMigrationStatusResponse = {
|
|
|
1090
1108
|
return message;
|
|
1091
1109
|
},
|
|
1092
1110
|
};
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
return globalThis;
|
|
1096
|
-
}
|
|
1097
|
-
if (typeof self !== "undefined") {
|
|
1098
|
-
return self;
|
|
1099
|
-
}
|
|
1100
|
-
if (typeof window !== "undefined") {
|
|
1101
|
-
return window;
|
|
1102
|
-
}
|
|
1103
|
-
if (typeof global !== "undefined") {
|
|
1104
|
-
return global;
|
|
1105
|
-
}
|
|
1106
|
-
throw "Unable to locate global object";
|
|
1107
|
-
})();
|
|
1108
|
-
function longToNumber(long) {
|
|
1109
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
1110
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1111
|
-
}
|
|
1112
|
-
return long.toNumber();
|
|
1111
|
+
function longToString(long) {
|
|
1112
|
+
return long.toString();
|
|
1113
1113
|
}
|
|
1114
1114
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
1115
1115
|
minimal_1.default.util.Long = long_1.default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { ChannelCredentials, Client, ClientDuplexStream, handleBidiStreamingCall, Metadata } from "@grpc/grpc-js";
|
|
3
|
+
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
4
|
import { DataTransformationRequest, DataTransformationResponse } from "./data_transformation";
|
|
4
5
|
import { FinishMigrationRequest, FinishMigrationResponse, GetMigrationStatusRequest, GetMigrationStatusResponse, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse } from "./migration";
|
|
5
6
|
export declare const protobufPackage = "freym.projections.management";
|
|
@@ -14,7 +14,7 @@ export interface BroadcastResponse {
|
|
|
14
14
|
} | {
|
|
15
15
|
$case: "broadcastNotAck";
|
|
16
16
|
broadcastNotAck: BroadcastResponse_BroadcastNotAck;
|
|
17
|
-
};
|
|
17
|
+
} | undefined;
|
|
18
18
|
}
|
|
19
19
|
export interface BroadcastResponse_BroadcastAck {
|
|
20
20
|
}
|
|
@@ -54,7 +54,7 @@ export declare const BroadcastResponse_BroadcastNotAck: {
|
|
|
54
54
|
fromPartial(object: DeepPartial<BroadcastResponse_BroadcastNotAck>): BroadcastResponse_BroadcastNotAck;
|
|
55
55
|
};
|
|
56
56
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
57
|
-
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 {
|
|
57
|
+
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 {
|
|
58
58
|
$case: string;
|
|
59
59
|
} ? {
|
|
60
60
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -67,18 +67,26 @@ exports.BroadcastRequest = {
|
|
|
67
67
|
},
|
|
68
68
|
fromJSON(object) {
|
|
69
69
|
return {
|
|
70
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
71
|
-
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
72
|
-
broadcast: isSet(object.broadcast) ? Boolean(object.broadcast) : false,
|
|
70
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
71
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
72
|
+
broadcast: isSet(object.broadcast) ? globalThis.Boolean(object.broadcast) : false,
|
|
73
73
|
event: isSet(object.event) ? event_1.Event.fromJSON(object.event) : undefined,
|
|
74
74
|
};
|
|
75
75
|
},
|
|
76
76
|
toJSON(message) {
|
|
77
77
|
const obj = {};
|
|
78
|
-
message.tenantId !==
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
if (message.tenantId !== "") {
|
|
79
|
+
obj.tenantId = message.tenantId;
|
|
80
|
+
}
|
|
81
|
+
if (message.topic !== "") {
|
|
82
|
+
obj.topic = message.topic;
|
|
83
|
+
}
|
|
84
|
+
if (message.broadcast === true) {
|
|
85
|
+
obj.broadcast = message.broadcast;
|
|
86
|
+
}
|
|
87
|
+
if (message.event !== undefined) {
|
|
88
|
+
obj.event = event_1.Event.toJSON(message.event);
|
|
89
|
+
}
|
|
82
90
|
return obj;
|
|
83
91
|
},
|
|
84
92
|
create(base) {
|
|
@@ -156,14 +164,14 @@ exports.BroadcastResponse = {
|
|
|
156
164
|
};
|
|
157
165
|
},
|
|
158
166
|
toJSON(message) {
|
|
159
|
-
var _a, _b
|
|
167
|
+
var _a, _b;
|
|
160
168
|
const obj = {};
|
|
161
|
-
((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "broadcastAck"
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
((
|
|
165
|
-
|
|
166
|
-
|
|
169
|
+
if (((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "broadcastAck") {
|
|
170
|
+
obj.broadcastAck = exports.BroadcastResponse_BroadcastAck.toJSON(message.payload.broadcastAck);
|
|
171
|
+
}
|
|
172
|
+
if (((_b = message.payload) === null || _b === void 0 ? void 0 : _b.$case) === "broadcastNotAck") {
|
|
173
|
+
obj.broadcastNotAck = exports.BroadcastResponse_BroadcastNotAck.toJSON(message.payload.broadcastNotAck);
|
|
174
|
+
}
|
|
167
175
|
return obj;
|
|
168
176
|
},
|
|
169
177
|
create(base) {
|
|
@@ -260,11 +268,13 @@ exports.BroadcastResponse_BroadcastNotAck = {
|
|
|
260
268
|
return message;
|
|
261
269
|
},
|
|
262
270
|
fromJSON(object) {
|
|
263
|
-
return { reason: isSet(object.reason) ? String(object.reason) : "" };
|
|
271
|
+
return { reason: isSet(object.reason) ? globalThis.String(object.reason) : "" };
|
|
264
272
|
},
|
|
265
273
|
toJSON(message) {
|
|
266
274
|
const obj = {};
|
|
267
|
-
message.reason !==
|
|
275
|
+
if (message.reason !== "") {
|
|
276
|
+
obj.reason = message.reason;
|
|
277
|
+
}
|
|
268
278
|
return obj;
|
|
269
279
|
},
|
|
270
280
|
create(base) {
|
|
@@ -25,7 +25,7 @@ export declare const HandledResponse: {
|
|
|
25
25
|
fromPartial(_: DeepPartial<HandledResponse>): HandledResponse;
|
|
26
26
|
};
|
|
27
27
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
28
|
-
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 {
|
|
28
|
+
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 {
|
|
29
29
|
$case: string;
|
|
30
30
|
} ? {
|
|
31
31
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -66,18 +66,26 @@ exports.HandledRequest = {
|
|
|
66
66
|
},
|
|
67
67
|
fromJSON(object) {
|
|
68
68
|
return {
|
|
69
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
70
|
-
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
71
|
-
groupId: isSet(object.groupId) ? String(object.groupId) : "",
|
|
72
|
-
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
69
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
70
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
71
|
+
groupId: isSet(object.groupId) ? globalThis.String(object.groupId) : "",
|
|
72
|
+
eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : "",
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
toJSON(message) {
|
|
76
76
|
const obj = {};
|
|
77
|
-
message.tenantId !==
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
message.
|
|
77
|
+
if (message.tenantId !== "") {
|
|
78
|
+
obj.tenantId = message.tenantId;
|
|
79
|
+
}
|
|
80
|
+
if (message.topic !== "") {
|
|
81
|
+
obj.topic = message.topic;
|
|
82
|
+
}
|
|
83
|
+
if (message.groupId !== "") {
|
|
84
|
+
obj.groupId = message.groupId;
|
|
85
|
+
}
|
|
86
|
+
if (message.eventId !== "") {
|
|
87
|
+
obj.eventId = message.eventId;
|
|
88
|
+
}
|
|
81
89
|
return obj;
|
|
82
90
|
},
|
|
83
91
|
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 { BroadcastRequest, BroadcastResponse } from "./broadcast";
|
|
4
5
|
import { HandledRequest, HandledResponse } from "./handled";
|
|
5
6
|
export declare const protobufPackage = "freym.streams.backchannel";
|
|
@@ -17,7 +17,7 @@ export interface Event {
|
|
|
17
17
|
stream: string;
|
|
18
18
|
correlationId: string;
|
|
19
19
|
causationId: string;
|
|
20
|
-
raisedAt:
|
|
20
|
+
raisedAt: string;
|
|
21
21
|
payload: {
|
|
22
22
|
[key: string]: Data;
|
|
23
23
|
};
|
|
@@ -32,7 +32,7 @@ export interface Data {
|
|
|
32
32
|
metadata?: {
|
|
33
33
|
$case: "gdpr";
|
|
34
34
|
gdpr: Data_GdprMetadata;
|
|
35
|
-
};
|
|
35
|
+
} | undefined;
|
|
36
36
|
}
|
|
37
37
|
export interface Data_GdprMetadata {
|
|
38
38
|
default: string;
|
|
@@ -88,7 +88,7 @@ export declare const Data_GdprMetadata: {
|
|
|
88
88
|
fromPartial(object: DeepPartial<Data_GdprMetadata>): Data_GdprMetadata;
|
|
89
89
|
};
|
|
90
90
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
91
|
-
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 {
|
|
91
|
+
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 {
|
|
92
92
|
$case: string;
|
|
93
93
|
} ? {
|
|
94
94
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|