@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
|
@@ -93,25 +93,36 @@ exports.GetProjectionDataRequest = {
|
|
|
93
93
|
},
|
|
94
94
|
fromJSON(object) {
|
|
95
95
|
return {
|
|
96
|
-
projection: isSet(object.projection) ? String(object.projection) : "",
|
|
96
|
+
projection: isSet(object.projection) ? globalThis.String(object.projection) : "",
|
|
97
97
|
auth: isSet(object.auth) ? shared_1.AuthData.fromJSON(object.auth) : undefined,
|
|
98
|
-
dataId: isSet(object.dataId) ? String(object.dataId) : "",
|
|
98
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
99
99
|
filter: isSet(object.filter) ? shared_1.DataFilter.fromJSON(object.filter) : undefined,
|
|
100
100
|
returnEmptyDataIfNotFound: isSet(object.returnEmptyDataIfNotFound)
|
|
101
|
-
? Boolean(object.returnEmptyDataIfNotFound)
|
|
101
|
+
? globalThis.Boolean(object.returnEmptyDataIfNotFound)
|
|
102
102
|
: false,
|
|
103
103
|
wait: isSet(object.wait) ? exports.DataWait.fromJSON(object.wait) : undefined,
|
|
104
104
|
};
|
|
105
105
|
},
|
|
106
106
|
toJSON(message) {
|
|
107
107
|
const obj = {};
|
|
108
|
-
message.projection !==
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
message.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
108
|
+
if (message.projection !== "") {
|
|
109
|
+
obj.projection = message.projection;
|
|
110
|
+
}
|
|
111
|
+
if (message.auth !== undefined) {
|
|
112
|
+
obj.auth = shared_1.AuthData.toJSON(message.auth);
|
|
113
|
+
}
|
|
114
|
+
if (message.dataId !== "") {
|
|
115
|
+
obj.dataId = message.dataId;
|
|
116
|
+
}
|
|
117
|
+
if (message.filter !== undefined) {
|
|
118
|
+
obj.filter = shared_1.DataFilter.toJSON(message.filter);
|
|
119
|
+
}
|
|
120
|
+
if (message.returnEmptyDataIfNotFound === true) {
|
|
121
|
+
obj.returnEmptyDataIfNotFound = message.returnEmptyDataIfNotFound;
|
|
122
|
+
}
|
|
123
|
+
if (message.wait !== undefined) {
|
|
124
|
+
obj.wait = exports.DataWait.toJSON(message.wait);
|
|
125
|
+
}
|
|
115
126
|
return obj;
|
|
116
127
|
},
|
|
117
128
|
create(base) {
|
|
@@ -132,7 +143,7 @@ exports.GetProjectionDataRequest = {
|
|
|
132
143
|
},
|
|
133
144
|
};
|
|
134
145
|
function createBaseGetProjectionDataListRequest() {
|
|
135
|
-
return { projection: "", auth: undefined, limit: 0, page: 0, filter: undefined, order: [] };
|
|
146
|
+
return { projection: "", auth: undefined, limit: "0", page: "0", filter: undefined, order: [] };
|
|
136
147
|
}
|
|
137
148
|
exports.GetProjectionDataListRequest = {
|
|
138
149
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -142,10 +153,10 @@ exports.GetProjectionDataListRequest = {
|
|
|
142
153
|
if (message.auth !== undefined) {
|
|
143
154
|
shared_1.AuthData.encode(message.auth, writer.uint32(18).fork()).ldelim();
|
|
144
155
|
}
|
|
145
|
-
if (message.limit !== 0) {
|
|
156
|
+
if (message.limit !== "0") {
|
|
146
157
|
writer.uint32(24).int64(message.limit);
|
|
147
158
|
}
|
|
148
|
-
if (message.page !== 0) {
|
|
159
|
+
if (message.page !== "0") {
|
|
149
160
|
writer.uint32(32).int64(message.page);
|
|
150
161
|
}
|
|
151
162
|
if (message.filter !== undefined) {
|
|
@@ -179,13 +190,13 @@ exports.GetProjectionDataListRequest = {
|
|
|
179
190
|
if (tag !== 24) {
|
|
180
191
|
break;
|
|
181
192
|
}
|
|
182
|
-
message.limit =
|
|
193
|
+
message.limit = longToString(reader.int64());
|
|
183
194
|
continue;
|
|
184
195
|
case 4:
|
|
185
196
|
if (tag !== 32) {
|
|
186
197
|
break;
|
|
187
198
|
}
|
|
188
|
-
message.page =
|
|
199
|
+
message.page = longToString(reader.int64());
|
|
189
200
|
continue;
|
|
190
201
|
case 5:
|
|
191
202
|
if (tag !== 42) {
|
|
@@ -209,26 +220,34 @@ exports.GetProjectionDataListRequest = {
|
|
|
209
220
|
},
|
|
210
221
|
fromJSON(object) {
|
|
211
222
|
return {
|
|
212
|
-
projection: isSet(object.projection) ? String(object.projection) : "",
|
|
223
|
+
projection: isSet(object.projection) ? globalThis.String(object.projection) : "",
|
|
213
224
|
auth: isSet(object.auth) ? shared_1.AuthData.fromJSON(object.auth) : undefined,
|
|
214
|
-
limit: isSet(object.limit) ?
|
|
215
|
-
page: isSet(object.page) ?
|
|
225
|
+
limit: isSet(object.limit) ? globalThis.String(object.limit) : "0",
|
|
226
|
+
page: isSet(object.page) ? globalThis.String(object.page) : "0",
|
|
216
227
|
filter: isSet(object.filter) ? shared_1.DataFilter.fromJSON(object.filter) : undefined,
|
|
217
|
-
order: Array.isArray(object === null || object === void 0 ? void 0 : object.order) ? object.order.map((e) => exports.DataOrder.fromJSON(e)) : [],
|
|
228
|
+
order: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.order) ? object.order.map((e) => exports.DataOrder.fromJSON(e)) : [],
|
|
218
229
|
};
|
|
219
230
|
},
|
|
220
231
|
toJSON(message) {
|
|
232
|
+
var _a;
|
|
221
233
|
const obj = {};
|
|
222
|
-
message.projection !==
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
message.
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
234
|
+
if (message.projection !== "") {
|
|
235
|
+
obj.projection = message.projection;
|
|
236
|
+
}
|
|
237
|
+
if (message.auth !== undefined) {
|
|
238
|
+
obj.auth = shared_1.AuthData.toJSON(message.auth);
|
|
239
|
+
}
|
|
240
|
+
if (message.limit !== "0") {
|
|
241
|
+
obj.limit = message.limit;
|
|
242
|
+
}
|
|
243
|
+
if (message.page !== "0") {
|
|
244
|
+
obj.page = message.page;
|
|
245
|
+
}
|
|
246
|
+
if (message.filter !== undefined) {
|
|
247
|
+
obj.filter = shared_1.DataFilter.toJSON(message.filter);
|
|
229
248
|
}
|
|
230
|
-
|
|
231
|
-
obj.order =
|
|
249
|
+
if ((_a = message.order) === null || _a === void 0 ? void 0 : _a.length) {
|
|
250
|
+
obj.order = message.order.map((e) => exports.DataOrder.toJSON(e));
|
|
232
251
|
}
|
|
233
252
|
return obj;
|
|
234
253
|
},
|
|
@@ -240,8 +259,8 @@ exports.GetProjectionDataListRequest = {
|
|
|
240
259
|
const message = createBaseGetProjectionDataListRequest();
|
|
241
260
|
message.projection = (_a = object.projection) !== null && _a !== void 0 ? _a : "";
|
|
242
261
|
message.auth = (object.auth !== undefined && object.auth !== null) ? shared_1.AuthData.fromPartial(object.auth) : undefined;
|
|
243
|
-
message.limit = (_b = object.limit) !== null && _b !== void 0 ? _b : 0;
|
|
244
|
-
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : 0;
|
|
262
|
+
message.limit = (_b = object.limit) !== null && _b !== void 0 ? _b : "0";
|
|
263
|
+
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : "0";
|
|
245
264
|
message.filter = (object.filter !== undefined && object.filter !== null)
|
|
246
265
|
? shared_1.DataFilter.fromPartial(object.filter)
|
|
247
266
|
: undefined;
|
|
@@ -250,14 +269,14 @@ exports.GetProjectionDataListRequest = {
|
|
|
250
269
|
},
|
|
251
270
|
};
|
|
252
271
|
function createBaseDataWait() {
|
|
253
|
-
return { conditionFilter: undefined, timeout: 0 };
|
|
272
|
+
return { conditionFilter: undefined, timeout: "0" };
|
|
254
273
|
}
|
|
255
274
|
exports.DataWait = {
|
|
256
275
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
257
276
|
if (message.conditionFilter !== undefined) {
|
|
258
277
|
shared_1.DataFilter.encode(message.conditionFilter, writer.uint32(10).fork()).ldelim();
|
|
259
278
|
}
|
|
260
|
-
if (message.timeout !== 0) {
|
|
279
|
+
if (message.timeout !== "0") {
|
|
261
280
|
writer.uint32(16).int64(message.timeout);
|
|
262
281
|
}
|
|
263
282
|
return writer;
|
|
@@ -279,7 +298,7 @@ exports.DataWait = {
|
|
|
279
298
|
if (tag !== 16) {
|
|
280
299
|
break;
|
|
281
300
|
}
|
|
282
|
-
message.timeout =
|
|
301
|
+
message.timeout = longToString(reader.int64());
|
|
283
302
|
continue;
|
|
284
303
|
}
|
|
285
304
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -292,14 +311,17 @@ exports.DataWait = {
|
|
|
292
311
|
fromJSON(object) {
|
|
293
312
|
return {
|
|
294
313
|
conditionFilter: isSet(object.conditionFilter) ? shared_1.DataFilter.fromJSON(object.conditionFilter) : undefined,
|
|
295
|
-
timeout: isSet(object.timeout) ?
|
|
314
|
+
timeout: isSet(object.timeout) ? globalThis.String(object.timeout) : "0",
|
|
296
315
|
};
|
|
297
316
|
},
|
|
298
317
|
toJSON(message) {
|
|
299
318
|
const obj = {};
|
|
300
|
-
message.conditionFilter !== undefined
|
|
301
|
-
|
|
302
|
-
|
|
319
|
+
if (message.conditionFilter !== undefined) {
|
|
320
|
+
obj.conditionFilter = shared_1.DataFilter.toJSON(message.conditionFilter);
|
|
321
|
+
}
|
|
322
|
+
if (message.timeout !== "0") {
|
|
323
|
+
obj.timeout = message.timeout;
|
|
324
|
+
}
|
|
303
325
|
return obj;
|
|
304
326
|
},
|
|
305
327
|
create(base) {
|
|
@@ -311,7 +333,7 @@ exports.DataWait = {
|
|
|
311
333
|
message.conditionFilter = (object.conditionFilter !== undefined && object.conditionFilter !== null)
|
|
312
334
|
? shared_1.DataFilter.fromPartial(object.conditionFilter)
|
|
313
335
|
: undefined;
|
|
314
|
-
message.timeout = (_a = object.timeout) !== null && _a !== void 0 ? _a : 0;
|
|
336
|
+
message.timeout = (_a = object.timeout) !== null && _a !== void 0 ? _a : "0";
|
|
315
337
|
return message;
|
|
316
338
|
},
|
|
317
339
|
};
|
|
@@ -357,14 +379,18 @@ exports.DataOrder = {
|
|
|
357
379
|
},
|
|
358
380
|
fromJSON(object) {
|
|
359
381
|
return {
|
|
360
|
-
field: isSet(object.field) ? String(object.field) : "",
|
|
361
|
-
descending: isSet(object.descending) ? Boolean(object.descending) : false,
|
|
382
|
+
field: isSet(object.field) ? globalThis.String(object.field) : "",
|
|
383
|
+
descending: isSet(object.descending) ? globalThis.Boolean(object.descending) : false,
|
|
362
384
|
};
|
|
363
385
|
},
|
|
364
386
|
toJSON(message) {
|
|
365
387
|
const obj = {};
|
|
366
|
-
message.field !==
|
|
367
|
-
|
|
388
|
+
if (message.field !== "") {
|
|
389
|
+
obj.field = message.field;
|
|
390
|
+
}
|
|
391
|
+
if (message.descending === true) {
|
|
392
|
+
obj.descending = message.descending;
|
|
393
|
+
}
|
|
368
394
|
return obj;
|
|
369
395
|
},
|
|
370
396
|
create(base) {
|
|
@@ -424,11 +450,14 @@ exports.ProjectionData = {
|
|
|
424
450
|
},
|
|
425
451
|
toJSON(message) {
|
|
426
452
|
const obj = {};
|
|
427
|
-
obj.data = {};
|
|
428
453
|
if (message.data) {
|
|
429
|
-
Object.entries(message.data)
|
|
430
|
-
|
|
431
|
-
|
|
454
|
+
const entries = Object.entries(message.data);
|
|
455
|
+
if (entries.length > 0) {
|
|
456
|
+
obj.data = {};
|
|
457
|
+
entries.forEach(([k, v]) => {
|
|
458
|
+
obj.data[k] = v;
|
|
459
|
+
});
|
|
460
|
+
}
|
|
432
461
|
}
|
|
433
462
|
return obj;
|
|
434
463
|
},
|
|
@@ -440,7 +469,7 @@ exports.ProjectionData = {
|
|
|
440
469
|
const message = createBaseProjectionData();
|
|
441
470
|
message.data = Object.entries((_a = object.data) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
442
471
|
if (value !== undefined) {
|
|
443
|
-
acc[key] = String(value);
|
|
472
|
+
acc[key] = globalThis.String(value);
|
|
444
473
|
}
|
|
445
474
|
return acc;
|
|
446
475
|
}, {});
|
|
@@ -488,12 +517,19 @@ exports.ProjectionData_DataEntry = {
|
|
|
488
517
|
return message;
|
|
489
518
|
},
|
|
490
519
|
fromJSON(object) {
|
|
491
|
-
return {
|
|
520
|
+
return {
|
|
521
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
522
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
523
|
+
};
|
|
492
524
|
},
|
|
493
525
|
toJSON(message) {
|
|
494
526
|
const obj = {};
|
|
495
|
-
message.key !==
|
|
496
|
-
|
|
527
|
+
if (message.key !== "") {
|
|
528
|
+
obj.key = message.key;
|
|
529
|
+
}
|
|
530
|
+
if (message.value !== "") {
|
|
531
|
+
obj.value = message.value;
|
|
532
|
+
}
|
|
497
533
|
return obj;
|
|
498
534
|
},
|
|
499
535
|
create(base) {
|
|
@@ -543,7 +579,9 @@ exports.GetProjectionDataResponse = {
|
|
|
543
579
|
},
|
|
544
580
|
toJSON(message) {
|
|
545
581
|
const obj = {};
|
|
546
|
-
message.result !== undefined
|
|
582
|
+
if (message.result !== undefined) {
|
|
583
|
+
obj.result = exports.ProjectionData.toJSON(message.result);
|
|
584
|
+
}
|
|
547
585
|
return obj;
|
|
548
586
|
},
|
|
549
587
|
create(base) {
|
|
@@ -558,20 +596,20 @@ exports.GetProjectionDataResponse = {
|
|
|
558
596
|
},
|
|
559
597
|
};
|
|
560
598
|
function createBaseGetProjectionDataListResponse() {
|
|
561
|
-
return { result: [], limit: 0, page: 0, total: 0 };
|
|
599
|
+
return { result: [], limit: "0", page: "0", total: "0" };
|
|
562
600
|
}
|
|
563
601
|
exports.GetProjectionDataListResponse = {
|
|
564
602
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
565
603
|
for (const v of message.result) {
|
|
566
604
|
exports.ProjectionData.encode(v, writer.uint32(10).fork()).ldelim();
|
|
567
605
|
}
|
|
568
|
-
if (message.limit !== 0) {
|
|
606
|
+
if (message.limit !== "0") {
|
|
569
607
|
writer.uint32(16).int64(message.limit);
|
|
570
608
|
}
|
|
571
|
-
if (message.page !== 0) {
|
|
609
|
+
if (message.page !== "0") {
|
|
572
610
|
writer.uint32(24).int64(message.page);
|
|
573
611
|
}
|
|
574
|
-
if (message.total !== 0) {
|
|
612
|
+
if (message.total !== "0") {
|
|
575
613
|
writer.uint32(32).int64(message.total);
|
|
576
614
|
}
|
|
577
615
|
return writer;
|
|
@@ -593,19 +631,19 @@ exports.GetProjectionDataListResponse = {
|
|
|
593
631
|
if (tag !== 16) {
|
|
594
632
|
break;
|
|
595
633
|
}
|
|
596
|
-
message.limit =
|
|
634
|
+
message.limit = longToString(reader.int64());
|
|
597
635
|
continue;
|
|
598
636
|
case 3:
|
|
599
637
|
if (tag !== 24) {
|
|
600
638
|
break;
|
|
601
639
|
}
|
|
602
|
-
message.page =
|
|
640
|
+
message.page = longToString(reader.int64());
|
|
603
641
|
continue;
|
|
604
642
|
case 4:
|
|
605
643
|
if (tag !== 32) {
|
|
606
644
|
break;
|
|
607
645
|
}
|
|
608
|
-
message.total =
|
|
646
|
+
message.total = longToString(reader.int64());
|
|
609
647
|
continue;
|
|
610
648
|
}
|
|
611
649
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -617,23 +655,27 @@ exports.GetProjectionDataListResponse = {
|
|
|
617
655
|
},
|
|
618
656
|
fromJSON(object) {
|
|
619
657
|
return {
|
|
620
|
-
result: Array.isArray(object === null || object === void 0 ? void 0 : object.result) ? object.result.map((e) => exports.ProjectionData.fromJSON(e)) : [],
|
|
621
|
-
limit: isSet(object.limit) ?
|
|
622
|
-
page: isSet(object.page) ?
|
|
623
|
-
total: isSet(object.total) ?
|
|
658
|
+
result: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.result) ? object.result.map((e) => exports.ProjectionData.fromJSON(e)) : [],
|
|
659
|
+
limit: isSet(object.limit) ? globalThis.String(object.limit) : "0",
|
|
660
|
+
page: isSet(object.page) ? globalThis.String(object.page) : "0",
|
|
661
|
+
total: isSet(object.total) ? globalThis.String(object.total) : "0",
|
|
624
662
|
};
|
|
625
663
|
},
|
|
626
664
|
toJSON(message) {
|
|
665
|
+
var _a;
|
|
627
666
|
const obj = {};
|
|
628
|
-
if (message.result) {
|
|
629
|
-
obj.result = message.result.map((e) =>
|
|
667
|
+
if ((_a = message.result) === null || _a === void 0 ? void 0 : _a.length) {
|
|
668
|
+
obj.result = message.result.map((e) => exports.ProjectionData.toJSON(e));
|
|
669
|
+
}
|
|
670
|
+
if (message.limit !== "0") {
|
|
671
|
+
obj.limit = message.limit;
|
|
672
|
+
}
|
|
673
|
+
if (message.page !== "0") {
|
|
674
|
+
obj.page = message.page;
|
|
630
675
|
}
|
|
631
|
-
|
|
632
|
-
obj.
|
|
676
|
+
if (message.total !== "0") {
|
|
677
|
+
obj.total = message.total;
|
|
633
678
|
}
|
|
634
|
-
message.limit !== undefined && (obj.limit = Math.round(message.limit));
|
|
635
|
-
message.page !== undefined && (obj.page = Math.round(message.page));
|
|
636
|
-
message.total !== undefined && (obj.total = Math.round(message.total));
|
|
637
679
|
return obj;
|
|
638
680
|
},
|
|
639
681
|
create(base) {
|
|
@@ -643,32 +685,14 @@ exports.GetProjectionDataListResponse = {
|
|
|
643
685
|
var _a, _b, _c, _d;
|
|
644
686
|
const message = createBaseGetProjectionDataListResponse();
|
|
645
687
|
message.result = ((_a = object.result) === null || _a === void 0 ? void 0 : _a.map((e) => exports.ProjectionData.fromPartial(e))) || [];
|
|
646
|
-
message.limit = (_b = object.limit) !== null && _b !== void 0 ? _b : 0;
|
|
647
|
-
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : 0;
|
|
648
|
-
message.total = (_d = object.total) !== null && _d !== void 0 ? _d : 0;
|
|
688
|
+
message.limit = (_b = object.limit) !== null && _b !== void 0 ? _b : "0";
|
|
689
|
+
message.page = (_c = object.page) !== null && _c !== void 0 ? _c : "0";
|
|
690
|
+
message.total = (_d = object.total) !== null && _d !== void 0 ? _d : "0";
|
|
649
691
|
return message;
|
|
650
692
|
},
|
|
651
693
|
};
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
return globalThis;
|
|
655
|
-
}
|
|
656
|
-
if (typeof self !== "undefined") {
|
|
657
|
-
return self;
|
|
658
|
-
}
|
|
659
|
-
if (typeof window !== "undefined") {
|
|
660
|
-
return window;
|
|
661
|
-
}
|
|
662
|
-
if (typeof global !== "undefined") {
|
|
663
|
-
return global;
|
|
664
|
-
}
|
|
665
|
-
throw "Unable to locate global object";
|
|
666
|
-
})();
|
|
667
|
-
function longToNumber(long) {
|
|
668
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
669
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
670
|
-
}
|
|
671
|
-
return long.toNumber();
|
|
694
|
+
function longToString(long) {
|
|
695
|
+
return long.toString();
|
|
672
696
|
}
|
|
673
697
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
674
698
|
minimal_1.default.util.Long = long_1.default;
|
|
@@ -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 { DeleteProjectionDataRequest, DeleteProjectionDataResponse } from "./delete_projection_data";
|
|
4
5
|
import { GetProjectionDataListRequest, GetProjectionDataListResponse, GetProjectionDataRequest, GetProjectionDataResponse } from "./get_projection_data";
|
|
5
6
|
import { UpsertProjectionDataRequest, UpsertProjectionDataResponse } from "./upsert_projection_data";
|
|
@@ -80,7 +80,7 @@ export declare const EventMetadata: {
|
|
|
80
80
|
fromPartial(object: DeepPartial<EventMetadata>): EventMetadata;
|
|
81
81
|
};
|
|
82
82
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
83
|
-
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 {
|
|
83
|
+
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 {
|
|
84
84
|
$case: string;
|
|
85
85
|
} ? {
|
|
86
86
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -60,8 +60,8 @@ exports.AuthData = {
|
|
|
60
60
|
},
|
|
61
61
|
fromJSON(object) {
|
|
62
62
|
return {
|
|
63
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
64
|
-
scopes: Array.isArray(object === null || object === void 0 ? void 0 : object.scopes) ? object.scopes.map((e) => String(e)) : [],
|
|
63
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
64
|
+
scopes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.scopes) ? object.scopes.map((e) => globalThis.String(e)) : [],
|
|
65
65
|
data: isObject(object.data)
|
|
66
66
|
? Object.entries(object.data).reduce((acc, [key, value]) => {
|
|
67
67
|
acc[key] = String(value);
|
|
@@ -71,19 +71,22 @@ exports.AuthData = {
|
|
|
71
71
|
};
|
|
72
72
|
},
|
|
73
73
|
toJSON(message) {
|
|
74
|
+
var _a;
|
|
74
75
|
const obj = {};
|
|
75
|
-
message.tenantId !==
|
|
76
|
-
|
|
77
|
-
obj.scopes = message.scopes.map((e) => e);
|
|
76
|
+
if (message.tenantId !== "") {
|
|
77
|
+
obj.tenantId = message.tenantId;
|
|
78
78
|
}
|
|
79
|
-
|
|
80
|
-
obj.scopes =
|
|
79
|
+
if ((_a = message.scopes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
80
|
+
obj.scopes = message.scopes;
|
|
81
81
|
}
|
|
82
|
-
obj.data = {};
|
|
83
82
|
if (message.data) {
|
|
84
|
-
Object.entries(message.data)
|
|
85
|
-
|
|
86
|
-
|
|
83
|
+
const entries = Object.entries(message.data);
|
|
84
|
+
if (entries.length > 0) {
|
|
85
|
+
obj.data = {};
|
|
86
|
+
entries.forEach(([k, v]) => {
|
|
87
|
+
obj.data[k] = v;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
87
90
|
}
|
|
88
91
|
return obj;
|
|
89
92
|
},
|
|
@@ -97,7 +100,7 @@ exports.AuthData = {
|
|
|
97
100
|
message.scopes = ((_b = object.scopes) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
98
101
|
message.data = Object.entries((_c = object.data) !== null && _c !== void 0 ? _c : {}).reduce((acc, [key, value]) => {
|
|
99
102
|
if (value !== undefined) {
|
|
100
|
-
acc[key] = String(value);
|
|
103
|
+
acc[key] = globalThis.String(value);
|
|
101
104
|
}
|
|
102
105
|
return acc;
|
|
103
106
|
}, {});
|
|
@@ -145,12 +148,19 @@ exports.AuthData_DataEntry = {
|
|
|
145
148
|
return message;
|
|
146
149
|
},
|
|
147
150
|
fromJSON(object) {
|
|
148
|
-
return {
|
|
151
|
+
return {
|
|
152
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
153
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
154
|
+
};
|
|
149
155
|
},
|
|
150
156
|
toJSON(message) {
|
|
151
157
|
const obj = {};
|
|
152
|
-
message.key !==
|
|
153
|
-
|
|
158
|
+
if (message.key !== "") {
|
|
159
|
+
obj.key = message.key;
|
|
160
|
+
}
|
|
161
|
+
if (message.value !== "") {
|
|
162
|
+
obj.value = message.value;
|
|
163
|
+
}
|
|
154
164
|
return obj;
|
|
155
165
|
},
|
|
156
166
|
create(base) {
|
|
@@ -224,29 +234,27 @@ exports.DataFilter = {
|
|
|
224
234
|
return acc;
|
|
225
235
|
}, {})
|
|
226
236
|
: {},
|
|
227
|
-
and: Array.isArray(object === null || object === void 0 ? void 0 : object.and) ? object.and.map((e) => exports.DataFilter.fromJSON(e)) : [],
|
|
228
|
-
or: Array.isArray(object === null || object === void 0 ? void 0 : object.or) ? object.or.map((e) => exports.DataFilter.fromJSON(e)) : [],
|
|
237
|
+
and: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.and) ? object.and.map((e) => exports.DataFilter.fromJSON(e)) : [],
|
|
238
|
+
or: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.or) ? object.or.map((e) => exports.DataFilter.fromJSON(e)) : [],
|
|
229
239
|
};
|
|
230
240
|
},
|
|
231
241
|
toJSON(message) {
|
|
242
|
+
var _a, _b;
|
|
232
243
|
const obj = {};
|
|
233
|
-
obj.fields = {};
|
|
234
244
|
if (message.fields) {
|
|
235
|
-
Object.entries(message.fields)
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
else {
|
|
243
|
-
obj.and = [];
|
|
245
|
+
const entries = Object.entries(message.fields);
|
|
246
|
+
if (entries.length > 0) {
|
|
247
|
+
obj.fields = {};
|
|
248
|
+
entries.forEach(([k, v]) => {
|
|
249
|
+
obj.fields[k] = exports.DataFieldFilter.toJSON(v);
|
|
250
|
+
});
|
|
251
|
+
}
|
|
244
252
|
}
|
|
245
|
-
if (message.
|
|
246
|
-
obj.
|
|
253
|
+
if ((_a = message.and) === null || _a === void 0 ? void 0 : _a.length) {
|
|
254
|
+
obj.and = message.and.map((e) => exports.DataFilter.toJSON(e));
|
|
247
255
|
}
|
|
248
|
-
|
|
249
|
-
obj.or =
|
|
256
|
+
if ((_b = message.or) === null || _b === void 0 ? void 0 : _b.length) {
|
|
257
|
+
obj.or = message.or.map((e) => exports.DataFilter.toJSON(e));
|
|
250
258
|
}
|
|
251
259
|
return obj;
|
|
252
260
|
},
|
|
@@ -309,14 +317,18 @@ exports.DataFilter_FieldsEntry = {
|
|
|
309
317
|
},
|
|
310
318
|
fromJSON(object) {
|
|
311
319
|
return {
|
|
312
|
-
key: isSet(object.key) ? String(object.key) : "",
|
|
320
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
313
321
|
value: isSet(object.value) ? exports.DataFieldFilter.fromJSON(object.value) : undefined,
|
|
314
322
|
};
|
|
315
323
|
},
|
|
316
324
|
toJSON(message) {
|
|
317
325
|
const obj = {};
|
|
318
|
-
message.key !==
|
|
319
|
-
|
|
326
|
+
if (message.key !== "") {
|
|
327
|
+
obj.key = message.key;
|
|
328
|
+
}
|
|
329
|
+
if (message.value !== undefined) {
|
|
330
|
+
obj.value = exports.DataFieldFilter.toJSON(message.value);
|
|
331
|
+
}
|
|
320
332
|
return obj;
|
|
321
333
|
},
|
|
322
334
|
create(base) {
|
|
@@ -383,16 +395,22 @@ exports.DataFieldFilter = {
|
|
|
383
395
|
},
|
|
384
396
|
fromJSON(object) {
|
|
385
397
|
return {
|
|
386
|
-
type: isSet(object.type) ? String(object.type) : "",
|
|
387
|
-
operation: isSet(object.operation) ? String(object.operation) : "",
|
|
388
|
-
value: isSet(object.value) ? String(object.value) : "",
|
|
398
|
+
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
399
|
+
operation: isSet(object.operation) ? globalThis.String(object.operation) : "",
|
|
400
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
389
401
|
};
|
|
390
402
|
},
|
|
391
403
|
toJSON(message) {
|
|
392
404
|
const obj = {};
|
|
393
|
-
message.type !==
|
|
394
|
-
|
|
395
|
-
|
|
405
|
+
if (message.type !== "") {
|
|
406
|
+
obj.type = message.type;
|
|
407
|
+
}
|
|
408
|
+
if (message.operation !== "") {
|
|
409
|
+
obj.operation = message.operation;
|
|
410
|
+
}
|
|
411
|
+
if (message.value !== "") {
|
|
412
|
+
obj.value = message.value;
|
|
413
|
+
}
|
|
396
414
|
return obj;
|
|
397
415
|
},
|
|
398
416
|
create(base) {
|
|
@@ -449,14 +467,18 @@ exports.EventMetadata = {
|
|
|
449
467
|
},
|
|
450
468
|
fromJSON(object) {
|
|
451
469
|
return {
|
|
452
|
-
causationId: isSet(object.causationId) ? String(object.causationId) : "",
|
|
453
|
-
correlationId: isSet(object.correlationId) ? String(object.correlationId) : "",
|
|
470
|
+
causationId: isSet(object.causationId) ? globalThis.String(object.causationId) : "",
|
|
471
|
+
correlationId: isSet(object.correlationId) ? globalThis.String(object.correlationId) : "",
|
|
454
472
|
};
|
|
455
473
|
},
|
|
456
474
|
toJSON(message) {
|
|
457
475
|
const obj = {};
|
|
458
|
-
message.causationId !==
|
|
459
|
-
|
|
476
|
+
if (message.causationId !== "") {
|
|
477
|
+
obj.causationId = message.causationId;
|
|
478
|
+
}
|
|
479
|
+
if (message.correlationId !== "") {
|
|
480
|
+
obj.correlationId = message.correlationId;
|
|
481
|
+
}
|
|
460
482
|
return obj;
|
|
461
483
|
},
|
|
462
484
|
create(base) {
|
|
@@ -73,7 +73,7 @@ export declare const UpsertProjectionDataResponse_FieldValidationErrorsEntry: {
|
|
|
73
73
|
fromPartial(object: DeepPartial<UpsertProjectionDataResponse_FieldValidationErrorsEntry>): UpsertProjectionDataResponse_FieldValidationErrorsEntry;
|
|
74
74
|
};
|
|
75
75
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
76
|
-
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 {
|
|
76
|
+
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 {
|
|
77
77
|
$case: string;
|
|
78
78
|
} ? {
|
|
79
79
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|