@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
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import {
|
|
2
|
+
import { ChannelCredentials, Client, ClientDuplexStream, ClientReadableStream, handleBidiStreamingCall, handleServerStreamingCall, Metadata } from "@grpc/grpc-js";
|
|
3
|
+
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
3
4
|
import { PublishEventEnvelope } from "./event";
|
|
4
5
|
import { GetEventRequest } from "./get_event";
|
|
5
6
|
import { GetEventsFromStartRequest } from "./get_events_from_start";
|
|
@@ -23,7 +23,7 @@ export declare const SnapshotResponse: {
|
|
|
23
23
|
fromPartial(_: DeepPartial<SnapshotResponse>): SnapshotResponse;
|
|
24
24
|
};
|
|
25
25
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
-
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 {
|
|
26
|
+
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 {
|
|
27
27
|
$case: string;
|
|
28
28
|
} ? {
|
|
29
29
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -48,14 +48,18 @@ exports.SnapshotRequest = {
|
|
|
48
48
|
},
|
|
49
49
|
fromJSON(object) {
|
|
50
50
|
return {
|
|
51
|
-
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
52
|
-
toTime: isSet(object.toTime) ? String(object.toTime) : "",
|
|
51
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
52
|
+
toTime: isSet(object.toTime) ? globalThis.String(object.toTime) : "",
|
|
53
53
|
};
|
|
54
54
|
},
|
|
55
55
|
toJSON(message) {
|
|
56
56
|
const obj = {};
|
|
57
|
-
message.topic !==
|
|
58
|
-
|
|
57
|
+
if (message.topic !== "") {
|
|
58
|
+
obj.topic = message.topic;
|
|
59
|
+
}
|
|
60
|
+
if (message.toTime !== "") {
|
|
61
|
+
obj.toTime = message.toTime;
|
|
62
|
+
}
|
|
59
63
|
return obj;
|
|
60
64
|
},
|
|
61
65
|
create(base) {
|
|
@@ -20,7 +20,7 @@ export interface SubscribeRequest {
|
|
|
20
20
|
} | {
|
|
21
21
|
$case: "eventNotHandled";
|
|
22
22
|
eventNotHandled: SubscribeRequest_EventNotHandled;
|
|
23
|
-
};
|
|
23
|
+
} | undefined;
|
|
24
24
|
}
|
|
25
25
|
export interface SubscribeRequest_InitAction {
|
|
26
26
|
groupId: string;
|
|
@@ -68,7 +68,7 @@ export interface SubscribeResponse {
|
|
|
68
68
|
} | {
|
|
69
69
|
$case: "subscribeNotAck";
|
|
70
70
|
subscribeNotAck: SubscribeResponse_SubscribeNotAck;
|
|
71
|
-
};
|
|
71
|
+
} | undefined;
|
|
72
72
|
}
|
|
73
73
|
export interface SubscribeResponse_InitAck {
|
|
74
74
|
}
|
|
@@ -177,7 +177,7 @@ export declare const SubscribeResponse_SubscribeNotAck: {
|
|
|
177
177
|
fromPartial(object: DeepPartial<SubscribeResponse_SubscribeNotAck>): SubscribeResponse_SubscribeNotAck;
|
|
178
178
|
};
|
|
179
179
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
180
|
-
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 {
|
|
180
|
+
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 {
|
|
181
181
|
$case: string;
|
|
182
182
|
} ? {
|
|
183
183
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -125,25 +125,26 @@ exports.SubscribeRequest = {
|
|
|
125
125
|
};
|
|
126
126
|
},
|
|
127
127
|
toJSON(message) {
|
|
128
|
-
var _a, _b, _c, _d, _e, _f
|
|
128
|
+
var _a, _b, _c, _d, _e, _f;
|
|
129
129
|
const obj = {};
|
|
130
|
-
((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "init"
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
130
|
+
if (((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "init") {
|
|
131
|
+
obj.init = exports.SubscribeRequest_InitAction.toJSON(message.payload.init);
|
|
132
|
+
}
|
|
133
|
+
if (((_b = message.payload) === null || _b === void 0 ? void 0 : _b.$case) === "subscribe") {
|
|
134
|
+
obj.subscribe = exports.SubscribeRequest_SubscribeAction.toJSON(message.payload.subscribe);
|
|
135
|
+
}
|
|
136
|
+
if (((_c = message.payload) === null || _c === void 0 ? void 0 : _c.$case) === "eventReceived") {
|
|
137
|
+
obj.eventReceived = exports.SubscribeRequest_EventReceived.toJSON(message.payload.eventReceived);
|
|
138
|
+
}
|
|
139
|
+
if (((_d = message.payload) === null || _d === void 0 ? void 0 : _d.$case) === "eventNotReceived") {
|
|
140
|
+
obj.eventNotReceived = exports.SubscribeRequest_EventNotReceived.toJSON(message.payload.eventNotReceived);
|
|
141
|
+
}
|
|
142
|
+
if (((_e = message.payload) === null || _e === void 0 ? void 0 : _e.$case) === "eventHandled") {
|
|
143
|
+
obj.eventHandled = exports.SubscribeRequest_EventHandled.toJSON(message.payload.eventHandled);
|
|
144
|
+
}
|
|
145
|
+
if (((_f = message.payload) === null || _f === void 0 ? void 0 : _f.$case) === "eventNotHandled") {
|
|
146
|
+
obj.eventNotHandled = exports.SubscribeRequest_EventNotHandled.toJSON(message.payload.eventNotHandled);
|
|
147
|
+
}
|
|
147
148
|
return obj;
|
|
148
149
|
},
|
|
149
150
|
create(base) {
|
|
@@ -240,14 +241,18 @@ exports.SubscribeRequest_InitAction = {
|
|
|
240
241
|
},
|
|
241
242
|
fromJSON(object) {
|
|
242
243
|
return {
|
|
243
|
-
groupId: isSet(object.groupId) ? String(object.groupId) : "",
|
|
244
|
-
subscriberId: isSet(object.subscriberId) ? String(object.subscriberId) : "",
|
|
244
|
+
groupId: isSet(object.groupId) ? globalThis.String(object.groupId) : "",
|
|
245
|
+
subscriberId: isSet(object.subscriberId) ? globalThis.String(object.subscriberId) : "",
|
|
245
246
|
};
|
|
246
247
|
},
|
|
247
248
|
toJSON(message) {
|
|
248
249
|
const obj = {};
|
|
249
|
-
message.groupId !==
|
|
250
|
-
|
|
250
|
+
if (message.groupId !== "") {
|
|
251
|
+
obj.groupId = message.groupId;
|
|
252
|
+
}
|
|
253
|
+
if (message.subscriberId !== "") {
|
|
254
|
+
obj.subscriberId = message.subscriberId;
|
|
255
|
+
}
|
|
251
256
|
return obj;
|
|
252
257
|
},
|
|
253
258
|
create(base) {
|
|
@@ -303,23 +308,22 @@ exports.SubscribeRequest_SubscribeAction = {
|
|
|
303
308
|
},
|
|
304
309
|
fromJSON(object) {
|
|
305
310
|
return {
|
|
306
|
-
includedTopics: Array.isArray(object === null || object === void 0 ? void 0 : object.includedTopics)
|
|
307
|
-
|
|
311
|
+
includedTopics: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.includedTopics)
|
|
312
|
+
? object.includedTopics.map((e) => globalThis.String(e))
|
|
313
|
+
: [],
|
|
314
|
+
excludedTopics: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.excludedTopics)
|
|
315
|
+
? object.excludedTopics.map((e) => globalThis.String(e))
|
|
316
|
+
: [],
|
|
308
317
|
};
|
|
309
318
|
},
|
|
310
319
|
toJSON(message) {
|
|
320
|
+
var _a, _b;
|
|
311
321
|
const obj = {};
|
|
312
|
-
if (message.includedTopics) {
|
|
313
|
-
obj.includedTopics = message.includedTopics
|
|
314
|
-
}
|
|
315
|
-
else {
|
|
316
|
-
obj.includedTopics = [];
|
|
322
|
+
if ((_a = message.includedTopics) === null || _a === void 0 ? void 0 : _a.length) {
|
|
323
|
+
obj.includedTopics = message.includedTopics;
|
|
317
324
|
}
|
|
318
|
-
if (message.excludedTopics) {
|
|
319
|
-
obj.excludedTopics = message.excludedTopics
|
|
320
|
-
}
|
|
321
|
-
else {
|
|
322
|
-
obj.excludedTopics = [];
|
|
325
|
+
if ((_b = message.excludedTopics) === null || _b === void 0 ? void 0 : _b.length) {
|
|
326
|
+
obj.excludedTopics = message.excludedTopics;
|
|
323
327
|
}
|
|
324
328
|
return obj;
|
|
325
329
|
},
|
|
@@ -385,16 +389,22 @@ exports.SubscribeRequest_EventReceived = {
|
|
|
385
389
|
},
|
|
386
390
|
fromJSON(object) {
|
|
387
391
|
return {
|
|
388
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
389
|
-
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
390
|
-
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
392
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
393
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
394
|
+
eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : "",
|
|
391
395
|
};
|
|
392
396
|
},
|
|
393
397
|
toJSON(message) {
|
|
394
398
|
const obj = {};
|
|
395
|
-
message.tenantId !==
|
|
396
|
-
|
|
397
|
-
|
|
399
|
+
if (message.tenantId !== "") {
|
|
400
|
+
obj.tenantId = message.tenantId;
|
|
401
|
+
}
|
|
402
|
+
if (message.topic !== "") {
|
|
403
|
+
obj.topic = message.topic;
|
|
404
|
+
}
|
|
405
|
+
if (message.eventId !== "") {
|
|
406
|
+
obj.eventId = message.eventId;
|
|
407
|
+
}
|
|
398
408
|
return obj;
|
|
399
409
|
},
|
|
400
410
|
create(base) {
|
|
@@ -469,18 +479,26 @@ exports.SubscribeRequest_EventNotReceived = {
|
|
|
469
479
|
},
|
|
470
480
|
fromJSON(object) {
|
|
471
481
|
return {
|
|
472
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
473
|
-
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
474
|
-
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
475
|
-
reason: isSet(object.reason) ? String(object.reason) : "",
|
|
482
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
483
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
484
|
+
eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : "",
|
|
485
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
476
486
|
};
|
|
477
487
|
},
|
|
478
488
|
toJSON(message) {
|
|
479
489
|
const obj = {};
|
|
480
|
-
message.tenantId !==
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
message.
|
|
490
|
+
if (message.tenantId !== "") {
|
|
491
|
+
obj.tenantId = message.tenantId;
|
|
492
|
+
}
|
|
493
|
+
if (message.topic !== "") {
|
|
494
|
+
obj.topic = message.topic;
|
|
495
|
+
}
|
|
496
|
+
if (message.eventId !== "") {
|
|
497
|
+
obj.eventId = message.eventId;
|
|
498
|
+
}
|
|
499
|
+
if (message.reason !== "") {
|
|
500
|
+
obj.reason = message.reason;
|
|
501
|
+
}
|
|
484
502
|
return obj;
|
|
485
503
|
},
|
|
486
504
|
create(base) {
|
|
@@ -547,16 +565,22 @@ exports.SubscribeRequest_EventHandled = {
|
|
|
547
565
|
},
|
|
548
566
|
fromJSON(object) {
|
|
549
567
|
return {
|
|
550
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
551
|
-
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
552
|
-
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
568
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
569
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
570
|
+
eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : "",
|
|
553
571
|
};
|
|
554
572
|
},
|
|
555
573
|
toJSON(message) {
|
|
556
574
|
const obj = {};
|
|
557
|
-
message.tenantId !==
|
|
558
|
-
|
|
559
|
-
|
|
575
|
+
if (message.tenantId !== "") {
|
|
576
|
+
obj.tenantId = message.tenantId;
|
|
577
|
+
}
|
|
578
|
+
if (message.topic !== "") {
|
|
579
|
+
obj.topic = message.topic;
|
|
580
|
+
}
|
|
581
|
+
if (message.eventId !== "") {
|
|
582
|
+
obj.eventId = message.eventId;
|
|
583
|
+
}
|
|
560
584
|
return obj;
|
|
561
585
|
},
|
|
562
586
|
create(base) {
|
|
@@ -631,18 +655,26 @@ exports.SubscribeRequest_EventNotHandled = {
|
|
|
631
655
|
},
|
|
632
656
|
fromJSON(object) {
|
|
633
657
|
return {
|
|
634
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
635
|
-
topic: isSet(object.topic) ? String(object.topic) : "",
|
|
636
|
-
eventId: isSet(object.eventId) ? String(object.eventId) : "",
|
|
637
|
-
reason: isSet(object.reason) ? String(object.reason) : "",
|
|
658
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
659
|
+
topic: isSet(object.topic) ? globalThis.String(object.topic) : "",
|
|
660
|
+
eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : "",
|
|
661
|
+
reason: isSet(object.reason) ? globalThis.String(object.reason) : "",
|
|
638
662
|
};
|
|
639
663
|
},
|
|
640
664
|
toJSON(message) {
|
|
641
665
|
const obj = {};
|
|
642
|
-
message.tenantId !==
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
message.
|
|
666
|
+
if (message.tenantId !== "") {
|
|
667
|
+
obj.tenantId = message.tenantId;
|
|
668
|
+
}
|
|
669
|
+
if (message.topic !== "") {
|
|
670
|
+
obj.topic = message.topic;
|
|
671
|
+
}
|
|
672
|
+
if (message.eventId !== "") {
|
|
673
|
+
obj.eventId = message.eventId;
|
|
674
|
+
}
|
|
675
|
+
if (message.reason !== "") {
|
|
676
|
+
obj.reason = message.reason;
|
|
677
|
+
}
|
|
646
678
|
return obj;
|
|
647
679
|
},
|
|
648
680
|
create(base) {
|
|
@@ -756,21 +788,23 @@ exports.SubscribeResponse = {
|
|
|
756
788
|
};
|
|
757
789
|
},
|
|
758
790
|
toJSON(message) {
|
|
759
|
-
var _a, _b, _c, _d, _e
|
|
791
|
+
var _a, _b, _c, _d, _e;
|
|
760
792
|
const obj = {};
|
|
761
|
-
((_a = message.data) === null || _a === void 0 ? void 0 : _a.$case) === "event"
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
793
|
+
if (((_a = message.data) === null || _a === void 0 ? void 0 : _a.$case) === "event") {
|
|
794
|
+
obj.event = event_1.PublishEventEnvelope.toJSON(message.data.event);
|
|
795
|
+
}
|
|
796
|
+
if (((_b = message.data) === null || _b === void 0 ? void 0 : _b.$case) === "initAck") {
|
|
797
|
+
obj.initAck = exports.SubscribeResponse_InitAck.toJSON(message.data.initAck);
|
|
798
|
+
}
|
|
799
|
+
if (((_c = message.data) === null || _c === void 0 ? void 0 : _c.$case) === "initNotAck") {
|
|
800
|
+
obj.initNotAck = exports.SubscribeResponse_InitNotAck.toJSON(message.data.initNotAck);
|
|
801
|
+
}
|
|
802
|
+
if (((_d = message.data) === null || _d === void 0 ? void 0 : _d.$case) === "subscribeAck") {
|
|
803
|
+
obj.subscribeAck = exports.SubscribeResponse_SubscribeAck.toJSON(message.data.subscribeAck);
|
|
804
|
+
}
|
|
805
|
+
if (((_e = message.data) === null || _e === void 0 ? void 0 : _e.$case) === "subscribeNotAck") {
|
|
806
|
+
obj.subscribeNotAck = exports.SubscribeResponse_SubscribeNotAck.toJSON(message.data.subscribeNotAck);
|
|
807
|
+
}
|
|
774
808
|
return obj;
|
|
775
809
|
},
|
|
776
810
|
create(base) {
|
|
@@ -879,11 +913,13 @@ exports.SubscribeResponse_InitNotAck = {
|
|
|
879
913
|
return message;
|
|
880
914
|
},
|
|
881
915
|
fromJSON(object) {
|
|
882
|
-
return { reason: isSet(object.reason) ? String(object.reason) : "" };
|
|
916
|
+
return { reason: isSet(object.reason) ? globalThis.String(object.reason) : "" };
|
|
883
917
|
},
|
|
884
918
|
toJSON(message) {
|
|
885
919
|
const obj = {};
|
|
886
|
-
message.reason !==
|
|
920
|
+
if (message.reason !== "") {
|
|
921
|
+
obj.reason = message.reason;
|
|
922
|
+
}
|
|
887
923
|
return obj;
|
|
888
924
|
},
|
|
889
925
|
create(base) {
|
|
@@ -965,11 +1001,13 @@ exports.SubscribeResponse_SubscribeNotAck = {
|
|
|
965
1001
|
return message;
|
|
966
1002
|
},
|
|
967
1003
|
fromJSON(object) {
|
|
968
|
-
return { reason: isSet(object.reason) ? String(object.reason) : "" };
|
|
1004
|
+
return { reason: isSet(object.reason) ? globalThis.String(object.reason) : "" };
|
|
969
1005
|
},
|
|
970
1006
|
toJSON(message) {
|
|
971
1007
|
const obj = {};
|
|
972
|
-
message.reason !==
|
|
1008
|
+
if (message.reason !== "") {
|
|
1009
|
+
obj.reason = message.reason;
|
|
1010
|
+
}
|
|
973
1011
|
return obj;
|
|
974
1012
|
},
|
|
975
1013
|
create(base) {
|
|
@@ -68,7 +68,7 @@ export declare const DropLeaseResponse: {
|
|
|
68
68
|
fromPartial(_: DeepPartial<DropLeaseResponse>): DropLeaseResponse;
|
|
69
69
|
};
|
|
70
70
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
71
|
-
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 {
|
|
71
|
+
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 {
|
|
72
72
|
$case: string;
|
|
73
73
|
} ? {
|
|
74
74
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -57,16 +57,22 @@ exports.CreateLeaseRequest = {
|
|
|
57
57
|
},
|
|
58
58
|
fromJSON(object) {
|
|
59
59
|
return {
|
|
60
|
-
ip: isSet(object.ip) ? String(object.ip) : "",
|
|
61
|
-
app: isSet(object.app) ? String(object.app) : "",
|
|
62
|
-
ttl: isSet(object.ttl) ? Number(object.ttl) : 0,
|
|
60
|
+
ip: isSet(object.ip) ? globalThis.String(object.ip) : "",
|
|
61
|
+
app: isSet(object.app) ? globalThis.String(object.app) : "",
|
|
62
|
+
ttl: isSet(object.ttl) ? globalThis.Number(object.ttl) : 0,
|
|
63
63
|
};
|
|
64
64
|
},
|
|
65
65
|
toJSON(message) {
|
|
66
66
|
const obj = {};
|
|
67
|
-
message.ip !==
|
|
68
|
-
|
|
69
|
-
|
|
67
|
+
if (message.ip !== "") {
|
|
68
|
+
obj.ip = message.ip;
|
|
69
|
+
}
|
|
70
|
+
if (message.app !== "") {
|
|
71
|
+
obj.app = message.app;
|
|
72
|
+
}
|
|
73
|
+
if (message.ttl !== 0) {
|
|
74
|
+
obj.ttl = Math.round(message.ttl);
|
|
75
|
+
}
|
|
70
76
|
return obj;
|
|
71
77
|
},
|
|
72
78
|
create(base) {
|
|
@@ -113,11 +119,13 @@ exports.CreateLeaseResponse = {
|
|
|
113
119
|
return message;
|
|
114
120
|
},
|
|
115
121
|
fromJSON(object) {
|
|
116
|
-
return { leaseId: isSet(object.leaseId) ? String(object.leaseId) : "" };
|
|
122
|
+
return { leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "" };
|
|
117
123
|
},
|
|
118
124
|
toJSON(message) {
|
|
119
125
|
const obj = {};
|
|
120
|
-
message.leaseId !==
|
|
126
|
+
if (message.leaseId !== "") {
|
|
127
|
+
obj.leaseId = message.leaseId;
|
|
128
|
+
}
|
|
121
129
|
return obj;
|
|
122
130
|
},
|
|
123
131
|
create(base) {
|
|
@@ -172,14 +180,18 @@ exports.KeepLeaseRequest = {
|
|
|
172
180
|
},
|
|
173
181
|
fromJSON(object) {
|
|
174
182
|
return {
|
|
175
|
-
leaseId: isSet(object.leaseId) ? String(object.leaseId) : "",
|
|
176
|
-
ttl: isSet(object.ttl) ? Number(object.ttl) : 0,
|
|
183
|
+
leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
|
|
184
|
+
ttl: isSet(object.ttl) ? globalThis.Number(object.ttl) : 0,
|
|
177
185
|
};
|
|
178
186
|
},
|
|
179
187
|
toJSON(message) {
|
|
180
188
|
const obj = {};
|
|
181
|
-
message.leaseId !==
|
|
182
|
-
|
|
189
|
+
if (message.leaseId !== "") {
|
|
190
|
+
obj.leaseId = message.leaseId;
|
|
191
|
+
}
|
|
192
|
+
if (message.ttl !== 0) {
|
|
193
|
+
obj.ttl = Math.round(message.ttl);
|
|
194
|
+
}
|
|
183
195
|
return obj;
|
|
184
196
|
},
|
|
185
197
|
create(base) {
|
|
@@ -262,11 +274,13 @@ exports.DropLeaseRequest = {
|
|
|
262
274
|
return message;
|
|
263
275
|
},
|
|
264
276
|
fromJSON(object) {
|
|
265
|
-
return { leaseId: isSet(object.leaseId) ? String(object.leaseId) : "" };
|
|
277
|
+
return { leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "" };
|
|
266
278
|
},
|
|
267
279
|
toJSON(message) {
|
|
268
280
|
const obj = {};
|
|
269
|
-
message.leaseId !==
|
|
281
|
+
if (message.leaseId !== "") {
|
|
282
|
+
obj.leaseId = message.leaseId;
|
|
283
|
+
}
|
|
270
284
|
return obj;
|
|
271
285
|
},
|
|
272
286
|
create(base) {
|
|
@@ -95,7 +95,7 @@ export declare const GlobalUnlockResponse: {
|
|
|
95
95
|
fromPartial(_: DeepPartial<GlobalUnlockResponse>): GlobalUnlockResponse;
|
|
96
96
|
};
|
|
97
97
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
98
|
-
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 {
|
|
98
|
+
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 {
|
|
99
99
|
$case: string;
|
|
100
100
|
} ? {
|
|
101
101
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -66,18 +66,26 @@ exports.LocalLockRequest = {
|
|
|
66
66
|
},
|
|
67
67
|
fromJSON(object) {
|
|
68
68
|
return {
|
|
69
|
-
leaseId: isSet(object.leaseId) ? String(object.leaseId) : "",
|
|
70
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
71
|
-
globalConcern: isSet(object.globalConcern) ? String(object.globalConcern) : "",
|
|
72
|
-
localConcern: isSet(object.localConcern) ? String(object.localConcern) : "",
|
|
69
|
+
leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
|
|
70
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
71
|
+
globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
|
|
72
|
+
localConcern: isSet(object.localConcern) ? globalThis.String(object.localConcern) : "",
|
|
73
73
|
};
|
|
74
74
|
},
|
|
75
75
|
toJSON(message) {
|
|
76
76
|
const obj = {};
|
|
77
|
-
message.leaseId !==
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
message.
|
|
77
|
+
if (message.leaseId !== "") {
|
|
78
|
+
obj.leaseId = message.leaseId;
|
|
79
|
+
}
|
|
80
|
+
if (message.tenantId !== "") {
|
|
81
|
+
obj.tenantId = message.tenantId;
|
|
82
|
+
}
|
|
83
|
+
if (message.globalConcern !== "") {
|
|
84
|
+
obj.globalConcern = message.globalConcern;
|
|
85
|
+
}
|
|
86
|
+
if (message.localConcern !== "") {
|
|
87
|
+
obj.localConcern = message.localConcern;
|
|
88
|
+
}
|
|
81
89
|
return obj;
|
|
82
90
|
},
|
|
83
91
|
create(base) {
|
|
@@ -190,18 +198,26 @@ exports.LocalUnlockRequest = {
|
|
|
190
198
|
},
|
|
191
199
|
fromJSON(object) {
|
|
192
200
|
return {
|
|
193
|
-
leaseId: isSet(object.leaseId) ? String(object.leaseId) : "",
|
|
194
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
195
|
-
globalConcern: isSet(object.globalConcern) ? String(object.globalConcern) : "",
|
|
196
|
-
localConcern: isSet(object.localConcern) ? String(object.localConcern) : "",
|
|
201
|
+
leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
|
|
202
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
203
|
+
globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
|
|
204
|
+
localConcern: isSet(object.localConcern) ? globalThis.String(object.localConcern) : "",
|
|
197
205
|
};
|
|
198
206
|
},
|
|
199
207
|
toJSON(message) {
|
|
200
208
|
const obj = {};
|
|
201
|
-
message.leaseId !==
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
message.
|
|
209
|
+
if (message.leaseId !== "") {
|
|
210
|
+
obj.leaseId = message.leaseId;
|
|
211
|
+
}
|
|
212
|
+
if (message.tenantId !== "") {
|
|
213
|
+
obj.tenantId = message.tenantId;
|
|
214
|
+
}
|
|
215
|
+
if (message.globalConcern !== "") {
|
|
216
|
+
obj.globalConcern = message.globalConcern;
|
|
217
|
+
}
|
|
218
|
+
if (message.localConcern !== "") {
|
|
219
|
+
obj.localConcern = message.localConcern;
|
|
220
|
+
}
|
|
205
221
|
return obj;
|
|
206
222
|
},
|
|
207
223
|
create(base) {
|
|
@@ -305,16 +321,22 @@ exports.GlobalLockRequest = {
|
|
|
305
321
|
},
|
|
306
322
|
fromJSON(object) {
|
|
307
323
|
return {
|
|
308
|
-
leaseId: isSet(object.leaseId) ? String(object.leaseId) : "",
|
|
309
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
310
|
-
globalConcern: isSet(object.globalConcern) ? String(object.globalConcern) : "",
|
|
324
|
+
leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
|
|
325
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
326
|
+
globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
|
|
311
327
|
};
|
|
312
328
|
},
|
|
313
329
|
toJSON(message) {
|
|
314
330
|
const obj = {};
|
|
315
|
-
message.leaseId !==
|
|
316
|
-
|
|
317
|
-
|
|
331
|
+
if (message.leaseId !== "") {
|
|
332
|
+
obj.leaseId = message.leaseId;
|
|
333
|
+
}
|
|
334
|
+
if (message.tenantId !== "") {
|
|
335
|
+
obj.tenantId = message.tenantId;
|
|
336
|
+
}
|
|
337
|
+
if (message.globalConcern !== "") {
|
|
338
|
+
obj.globalConcern = message.globalConcern;
|
|
339
|
+
}
|
|
318
340
|
return obj;
|
|
319
341
|
},
|
|
320
342
|
create(base) {
|
|
@@ -417,16 +439,22 @@ exports.GlobalUnlockRequest = {
|
|
|
417
439
|
},
|
|
418
440
|
fromJSON(object) {
|
|
419
441
|
return {
|
|
420
|
-
leaseId: isSet(object.leaseId) ? String(object.leaseId) : "",
|
|
421
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
422
|
-
globalConcern: isSet(object.globalConcern) ? String(object.globalConcern) : "",
|
|
442
|
+
leaseId: isSet(object.leaseId) ? globalThis.String(object.leaseId) : "",
|
|
443
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
444
|
+
globalConcern: isSet(object.globalConcern) ? globalThis.String(object.globalConcern) : "",
|
|
423
445
|
};
|
|
424
446
|
},
|
|
425
447
|
toJSON(message) {
|
|
426
448
|
const obj = {};
|
|
427
|
-
message.leaseId !==
|
|
428
|
-
|
|
429
|
-
|
|
449
|
+
if (message.leaseId !== "") {
|
|
450
|
+
obj.leaseId = message.leaseId;
|
|
451
|
+
}
|
|
452
|
+
if (message.tenantId !== "") {
|
|
453
|
+
obj.tenantId = message.tenantId;
|
|
454
|
+
}
|
|
455
|
+
if (message.globalConcern !== "") {
|
|
456
|
+
obj.globalConcern = message.globalConcern;
|
|
457
|
+
}
|
|
430
458
|
return obj;
|
|
431
459
|
},
|
|
432
460
|
create(base) {
|
|
@@ -23,7 +23,7 @@ export declare const GetPeerNodesResponse: {
|
|
|
23
23
|
fromPartial(object: DeepPartial<GetPeerNodesResponse>): GetPeerNodesResponse;
|
|
24
24
|
};
|
|
25
25
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
26
|
-
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 {
|
|
26
|
+
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 {
|
|
27
27
|
$case: string;
|
|
28
28
|
} ? {
|
|
29
29
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|