@fraym/proto 0.28.0 → 0.28.2
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.js +2 -2
- package/freym/auth/management/get_users.js +2 -2
- package/freym/auth/management/migration.js +2 -2
- package/freym/auth/management/service.d.ts +2 -2
- package/freym/auth/management/update_user.js +2 -2
- package/freym/crud/delivery/get_entries.js +8 -8
- package/freym/crud/delivery/service.d.ts +2 -2
- package/freym/crud/management/migration.js +2 -2
- package/freym/crud/management/service.d.ts +2 -2
- package/freym/migrations/management/register.js +4 -4
- package/freym/migrations/management/service.d.ts +2 -2
- package/freym/projections/delivery/get_projection_data.js +6 -6
- package/freym/projections/delivery/get_view_data.js +4 -4
- package/freym/projections/delivery/service.d.ts +2 -2
- package/freym/projections/delivery/shared.js +2 -2
- package/freym/projections/management/migration.js +12 -12
- package/freym/projections/management/service.d.ts +2 -2
- package/freym/streams/management/event.js +4 -4
- package/freym/streams/management/paginate.d.ts +4 -0
- package/freym/streams/management/paginate.js +70 -10
- package/freym/streams/management/service.d.ts +2 -2
- package/freym/streams/management/stream.js +2 -2
- package/freym/sync/management/service.d.ts +2 -2
- package/package.json +2 -2
|
@@ -39,7 +39,7 @@ exports.CreateUserRequest = {
|
|
|
39
39
|
for (const v of message.assignedRoleIds) {
|
|
40
40
|
writer.uint32(50).string(v);
|
|
41
41
|
}
|
|
42
|
-
if (message.active
|
|
42
|
+
if (message.active !== false) {
|
|
43
43
|
writer.uint32(56).bool(message.active);
|
|
44
44
|
}
|
|
45
45
|
if (message.blockedUntil !== "0") {
|
|
@@ -145,7 +145,7 @@ exports.CreateUserRequest = {
|
|
|
145
145
|
if ((_a = message.assignedRoleIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
146
146
|
obj.assignedRoleIds = message.assignedRoleIds;
|
|
147
147
|
}
|
|
148
|
-
if (message.active
|
|
148
|
+
if (message.active !== false) {
|
|
149
149
|
obj.active = message.active;
|
|
150
150
|
}
|
|
151
151
|
if (message.blockedUntil !== "0") {
|
|
@@ -140,7 +140,7 @@ exports.User = {
|
|
|
140
140
|
for (const v of message.assignedRoleIds) {
|
|
141
141
|
writer.uint32(42).string(v);
|
|
142
142
|
}
|
|
143
|
-
if (message.active
|
|
143
|
+
if (message.active !== false) {
|
|
144
144
|
writer.uint32(48).bool(message.active);
|
|
145
145
|
}
|
|
146
146
|
if (message.failedAttempts !== "0") {
|
|
@@ -256,7 +256,7 @@ exports.User = {
|
|
|
256
256
|
if ((_a = message.assignedRoleIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
257
257
|
obj.assignedRoleIds = message.assignedRoleIds;
|
|
258
258
|
}
|
|
259
|
-
if (message.active
|
|
259
|
+
if (message.active !== false) {
|
|
260
260
|
obj.active = message.active;
|
|
261
261
|
}
|
|
262
262
|
if (message.failedAttempts !== "0") {
|
|
@@ -431,7 +431,7 @@ function createBaseGetMigrationStatusResponse() {
|
|
|
431
431
|
}
|
|
432
432
|
exports.GetMigrationStatusResponse = {
|
|
433
433
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
434
|
-
if (message.done
|
|
434
|
+
if (message.done !== false) {
|
|
435
435
|
writer.uint32(8).bool(message.done);
|
|
436
436
|
}
|
|
437
437
|
return writer;
|
|
@@ -462,7 +462,7 @@ exports.GetMigrationStatusResponse = {
|
|
|
462
462
|
},
|
|
463
463
|
toJSON(message) {
|
|
464
464
|
const obj = {};
|
|
465
|
-
if (message.done
|
|
465
|
+
if (message.done !== false) {
|
|
466
466
|
obj.done = message.done;
|
|
467
467
|
}
|
|
468
468
|
return obj;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { CreateUserRequest, CreateUserResponse } from "./create_user";
|
|
5
4
|
import { DeleteRoleRequest, DeleteRoleResponse } from "./delete_role";
|
|
6
5
|
import { DeleteUserRequest, DeleteUserResponse } from "./delete_user";
|
|
@@ -176,4 +175,5 @@ export interface ServiceClient extends Client {
|
|
|
176
175
|
export declare const ServiceClient: {
|
|
177
176
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
178
177
|
service: typeof ServiceService;
|
|
178
|
+
serviceName: string;
|
|
179
179
|
};
|
|
@@ -43,7 +43,7 @@ exports.UpdateUserRequest = {
|
|
|
43
43
|
for (const v of message.assignedRoleIds) {
|
|
44
44
|
writer.uint32(58).string(v);
|
|
45
45
|
}
|
|
46
|
-
if (message.active
|
|
46
|
+
if (message.active !== false) {
|
|
47
47
|
writer.uint32(64).bool(message.active);
|
|
48
48
|
}
|
|
49
49
|
if (message.blockedUntil !== "0") {
|
|
@@ -159,7 +159,7 @@ exports.UpdateUserRequest = {
|
|
|
159
159
|
if ((_a = message.assignedRoleIds) === null || _a === void 0 ? void 0 : _a.length) {
|
|
160
160
|
obj.assignedRoleIds = message.assignedRoleIds;
|
|
161
161
|
}
|
|
162
|
-
if (message.active
|
|
162
|
+
if (message.active !== false) {
|
|
163
163
|
obj.active = message.active;
|
|
164
164
|
}
|
|
165
165
|
if (message.blockedUntil !== "0") {
|
|
@@ -33,13 +33,13 @@ exports.GetEntryRequest = {
|
|
|
33
33
|
if (message.filter !== undefined) {
|
|
34
34
|
shared_1.DataFilter.encode(message.filter, writer.uint32(34).fork()).ldelim();
|
|
35
35
|
}
|
|
36
|
-
if (message.returnEmptyDataIfNotFound
|
|
36
|
+
if (message.returnEmptyDataIfNotFound !== false) {
|
|
37
37
|
writer.uint32(40).bool(message.returnEmptyDataIfNotFound);
|
|
38
38
|
}
|
|
39
39
|
if (message.wait !== undefined) {
|
|
40
40
|
exports.DataWait.encode(message.wait, writer.uint32(50).fork()).ldelim();
|
|
41
41
|
}
|
|
42
|
-
if (message.useStrongConsistency
|
|
42
|
+
if (message.useStrongConsistency !== false) {
|
|
43
43
|
writer.uint32(56).bool(message.useStrongConsistency);
|
|
44
44
|
}
|
|
45
45
|
return writer;
|
|
@@ -130,13 +130,13 @@ exports.GetEntryRequest = {
|
|
|
130
130
|
if (message.filter !== undefined) {
|
|
131
131
|
obj.filter = shared_1.DataFilter.toJSON(message.filter);
|
|
132
132
|
}
|
|
133
|
-
if (message.returnEmptyDataIfNotFound
|
|
133
|
+
if (message.returnEmptyDataIfNotFound !== false) {
|
|
134
134
|
obj.returnEmptyDataIfNotFound = message.returnEmptyDataIfNotFound;
|
|
135
135
|
}
|
|
136
136
|
if (message.wait !== undefined) {
|
|
137
137
|
obj.wait = exports.DataWait.toJSON(message.wait);
|
|
138
138
|
}
|
|
139
|
-
if (message.useStrongConsistency
|
|
139
|
+
if (message.useStrongConsistency !== false) {
|
|
140
140
|
obj.useStrongConsistency = message.useStrongConsistency;
|
|
141
141
|
}
|
|
142
142
|
return obj;
|
|
@@ -190,7 +190,7 @@ exports.GetEntryListRequest = {
|
|
|
190
190
|
for (const v of message.order) {
|
|
191
191
|
exports.DataOrder.encode(v, writer.uint32(66).fork()).ldelim();
|
|
192
192
|
}
|
|
193
|
-
if (message.useStrongConsistency
|
|
193
|
+
if (message.useStrongConsistency !== false) {
|
|
194
194
|
writer.uint32(72).bool(message.useStrongConsistency);
|
|
195
195
|
}
|
|
196
196
|
return writer;
|
|
@@ -286,7 +286,7 @@ exports.GetEntryListRequest = {
|
|
|
286
286
|
if ((_a = message.order) === null || _a === void 0 ? void 0 : _a.length) {
|
|
287
287
|
obj.order = message.order.map((e) => exports.DataOrder.toJSON(e));
|
|
288
288
|
}
|
|
289
|
-
if (message.useStrongConsistency
|
|
289
|
+
if (message.useStrongConsistency !== false) {
|
|
290
290
|
obj.useStrongConsistency = message.useStrongConsistency;
|
|
291
291
|
}
|
|
292
292
|
return obj;
|
|
@@ -386,7 +386,7 @@ exports.DataOrder = {
|
|
|
386
386
|
if (message.field !== "") {
|
|
387
387
|
writer.uint32(10).string(message.field);
|
|
388
388
|
}
|
|
389
|
-
if (message.descending
|
|
389
|
+
if (message.descending !== false) {
|
|
390
390
|
writer.uint32(16).bool(message.descending);
|
|
391
391
|
}
|
|
392
392
|
return writer;
|
|
@@ -429,7 +429,7 @@ exports.DataOrder = {
|
|
|
429
429
|
if (message.field !== "") {
|
|
430
430
|
obj.field = message.field;
|
|
431
431
|
}
|
|
432
|
-
if (message.descending
|
|
432
|
+
if (message.descending !== false) {
|
|
433
433
|
obj.descending = message.descending;
|
|
434
434
|
}
|
|
435
435
|
return obj;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { CloneEntryRequest, CloneEntryResponse } from "./clone_entry";
|
|
5
4
|
import { CreateEntryRequest, CreateEntryResponse } from "./create_entry";
|
|
6
5
|
import { DeleteEntriesRequest, DeleteEntriesResponse } from "./delete_entries";
|
|
@@ -95,4 +94,5 @@ export interface ServiceClient extends Client {
|
|
|
95
94
|
export declare const ServiceClient: {
|
|
96
95
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
97
96
|
service: typeof ServiceService;
|
|
97
|
+
serviceName: string;
|
|
98
98
|
};
|
|
@@ -1020,7 +1020,7 @@ function createBaseGetMigrationStatusResponse() {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
exports.GetMigrationStatusResponse = {
|
|
1022
1022
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1023
|
-
if (message.done
|
|
1023
|
+
if (message.done !== false) {
|
|
1024
1024
|
writer.uint32(8).bool(message.done);
|
|
1025
1025
|
}
|
|
1026
1026
|
return writer;
|
|
@@ -1051,7 +1051,7 @@ exports.GetMigrationStatusResponse = {
|
|
|
1051
1051
|
},
|
|
1052
1052
|
toJSON(message) {
|
|
1053
1053
|
const obj = {};
|
|
1054
|
-
if (message.done
|
|
1054
|
+
if (message.done !== false) {
|
|
1055
1055
|
obj.done = message.done;
|
|
1056
1056
|
}
|
|
1057
1057
|
return obj;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { ApplyMigrationRequest, ApplyMigrationResponse, CleanupMigrationRequest, CleanupMigrationResponse, GetMigrationStatusRequest, GetMigrationStatusResponse, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse } from "./migration";
|
|
5
4
|
export declare const protobufPackage = "freym.crud.management";
|
|
6
5
|
export type ServiceService = typeof ServiceService;
|
|
@@ -78,4 +77,5 @@ export interface ServiceClient extends Client {
|
|
|
78
77
|
export declare const ServiceClient: {
|
|
79
78
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
80
79
|
service: typeof ServiceService;
|
|
80
|
+
serviceName: string;
|
|
81
81
|
};
|
|
@@ -21,10 +21,10 @@ function createBaseRegisterRequest() {
|
|
|
21
21
|
}
|
|
22
22
|
exports.RegisterRequest = {
|
|
23
23
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
24
|
-
if (message.migrateAuth
|
|
24
|
+
if (message.migrateAuth !== false) {
|
|
25
25
|
writer.uint32(8).bool(message.migrateAuth);
|
|
26
26
|
}
|
|
27
|
-
if (message.dangerouslyRemoveGdprFields
|
|
27
|
+
if (message.dangerouslyRemoveGdprFields !== false) {
|
|
28
28
|
writer.uint32(16).bool(message.dangerouslyRemoveGdprFields);
|
|
29
29
|
}
|
|
30
30
|
for (const v of message.permissions) {
|
|
@@ -149,10 +149,10 @@ exports.RegisterRequest = {
|
|
|
149
149
|
toJSON(message) {
|
|
150
150
|
var _a, _b, _c, _d, _e, _f;
|
|
151
151
|
const obj = {};
|
|
152
|
-
if (message.migrateAuth
|
|
152
|
+
if (message.migrateAuth !== false) {
|
|
153
153
|
obj.migrateAuth = message.migrateAuth;
|
|
154
154
|
}
|
|
155
|
-
if (message.dangerouslyRemoveGdprFields
|
|
155
|
+
if (message.dangerouslyRemoveGdprFields !== false) {
|
|
156
156
|
obj.dangerouslyRemoveGdprFields = message.dangerouslyRemoveGdprFields;
|
|
157
157
|
}
|
|
158
158
|
if ((_a = message.permissions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, ClientDuplexStream, handleBidiStreamingCall, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, ClientDuplexStream, type ClientOptions, type ClientUnaryCall, handleBidiStreamingCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { ApplyRequest, ApplyResponse } from "./apply";
|
|
5
4
|
import { CleanupRequest, CleanupResponse } from "./cleanup";
|
|
6
5
|
import { RegisterRequest, RegisterResponse } from "./register";
|
|
@@ -96,4 +95,5 @@ export interface ServiceClient extends Client {
|
|
|
96
95
|
export declare const ServiceClient: {
|
|
97
96
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
98
97
|
service: typeof ServiceService;
|
|
98
|
+
serviceName: string;
|
|
99
99
|
};
|
|
@@ -33,13 +33,13 @@ exports.GetProjectionDataRequest = {
|
|
|
33
33
|
if (message.filter !== undefined) {
|
|
34
34
|
shared_1.DataFilter.encode(message.filter, writer.uint32(34).fork()).ldelim();
|
|
35
35
|
}
|
|
36
|
-
if (message.returnEmptyDataIfNotFound
|
|
36
|
+
if (message.returnEmptyDataIfNotFound !== false) {
|
|
37
37
|
writer.uint32(40).bool(message.returnEmptyDataIfNotFound);
|
|
38
38
|
}
|
|
39
39
|
if (message.wait !== undefined) {
|
|
40
40
|
exports.DataWait.encode(message.wait, writer.uint32(50).fork()).ldelim();
|
|
41
41
|
}
|
|
42
|
-
if (message.useStrongConsistency
|
|
42
|
+
if (message.useStrongConsistency !== false) {
|
|
43
43
|
writer.uint32(56).bool(message.useStrongConsistency);
|
|
44
44
|
}
|
|
45
45
|
return writer;
|
|
@@ -130,13 +130,13 @@ exports.GetProjectionDataRequest = {
|
|
|
130
130
|
if (message.filter !== undefined) {
|
|
131
131
|
obj.filter = shared_1.DataFilter.toJSON(message.filter);
|
|
132
132
|
}
|
|
133
|
-
if (message.returnEmptyDataIfNotFound
|
|
133
|
+
if (message.returnEmptyDataIfNotFound !== false) {
|
|
134
134
|
obj.returnEmptyDataIfNotFound = message.returnEmptyDataIfNotFound;
|
|
135
135
|
}
|
|
136
136
|
if (message.wait !== undefined) {
|
|
137
137
|
obj.wait = exports.DataWait.toJSON(message.wait);
|
|
138
138
|
}
|
|
139
|
-
if (message.useStrongConsistency
|
|
139
|
+
if (message.useStrongConsistency !== false) {
|
|
140
140
|
obj.useStrongConsistency = message.useStrongConsistency;
|
|
141
141
|
}
|
|
142
142
|
return obj;
|
|
@@ -190,7 +190,7 @@ exports.GetProjectionDataListRequest = {
|
|
|
190
190
|
for (const v of message.order) {
|
|
191
191
|
shared_1.DataOrder.encode(v, writer.uint32(50).fork()).ldelim();
|
|
192
192
|
}
|
|
193
|
-
if (message.useStrongConsistency
|
|
193
|
+
if (message.useStrongConsistency !== false) {
|
|
194
194
|
writer.uint32(56).bool(message.useStrongConsistency);
|
|
195
195
|
}
|
|
196
196
|
return writer;
|
|
@@ -286,7 +286,7 @@ exports.GetProjectionDataListRequest = {
|
|
|
286
286
|
if ((_a = message.order) === null || _a === void 0 ? void 0 : _a.length) {
|
|
287
287
|
obj.order = message.order.map((e) => shared_1.DataOrder.toJSON(e));
|
|
288
288
|
}
|
|
289
|
-
if (message.useStrongConsistency
|
|
289
|
+
if (message.useStrongConsistency !== false) {
|
|
290
290
|
obj.useStrongConsistency = message.useStrongConsistency;
|
|
291
291
|
}
|
|
292
292
|
return obj;
|
|
@@ -22,7 +22,7 @@ exports.GetViewDataRequest = {
|
|
|
22
22
|
if (message.filter !== undefined) {
|
|
23
23
|
shared_1.DataFilter.encode(message.filter, writer.uint32(26).fork()).ldelim();
|
|
24
24
|
}
|
|
25
|
-
if (message.useStrongConsistency
|
|
25
|
+
if (message.useStrongConsistency !== false) {
|
|
26
26
|
writer.uint32(32).bool(message.useStrongConsistency);
|
|
27
27
|
}
|
|
28
28
|
return writer;
|
|
@@ -87,7 +87,7 @@ exports.GetViewDataRequest = {
|
|
|
87
87
|
if (message.filter !== undefined) {
|
|
88
88
|
obj.filter = shared_1.DataFilter.toJSON(message.filter);
|
|
89
89
|
}
|
|
90
|
-
if (message.useStrongConsistency
|
|
90
|
+
if (message.useStrongConsistency !== false) {
|
|
91
91
|
obj.useStrongConsistency = message.useStrongConsistency;
|
|
92
92
|
}
|
|
93
93
|
return obj;
|
|
@@ -138,7 +138,7 @@ exports.GetViewDataListRequest = {
|
|
|
138
138
|
for (const v of message.order) {
|
|
139
139
|
shared_1.DataOrder.encode(v, writer.uint32(50).fork()).ldelim();
|
|
140
140
|
}
|
|
141
|
-
if (message.useStrongConsistency
|
|
141
|
+
if (message.useStrongConsistency !== false) {
|
|
142
142
|
writer.uint32(56).bool(message.useStrongConsistency);
|
|
143
143
|
}
|
|
144
144
|
return writer;
|
|
@@ -234,7 +234,7 @@ exports.GetViewDataListRequest = {
|
|
|
234
234
|
if ((_a = message.order) === null || _a === void 0 ? void 0 : _a.length) {
|
|
235
235
|
obj.order = message.order.map((e) => shared_1.DataOrder.toJSON(e));
|
|
236
236
|
}
|
|
237
|
-
if (message.useStrongConsistency
|
|
237
|
+
if (message.useStrongConsistency !== false) {
|
|
238
238
|
obj.useStrongConsistency = message.useStrongConsistency;
|
|
239
239
|
}
|
|
240
240
|
return obj;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { DeleteProjectionDataRequest, DeleteProjectionDataResponse } from "./delete_projection_data";
|
|
5
4
|
import { GetProjectionDataListRequest, GetProjectionDataListResponse, GetProjectionDataRequest, GetProjectionDataResponse } from "./get_projection_data";
|
|
6
5
|
import { GetViewDataListRequest, GetViewDataListResponse, GetViewDataRequest, GetViewDataResponse } from "./get_view_data";
|
|
@@ -94,4 +93,5 @@ export interface ServiceClient extends Client {
|
|
|
94
93
|
export declare const ServiceClient: {
|
|
95
94
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
96
95
|
service: typeof ServiceService;
|
|
96
|
+
serviceName: string;
|
|
97
97
|
};
|
|
@@ -500,7 +500,7 @@ exports.DataOrder = {
|
|
|
500
500
|
if (message.field !== "") {
|
|
501
501
|
writer.uint32(10).string(message.field);
|
|
502
502
|
}
|
|
503
|
-
if (message.descending
|
|
503
|
+
if (message.descending !== false) {
|
|
504
504
|
writer.uint32(16).bool(message.descending);
|
|
505
505
|
}
|
|
506
506
|
return writer;
|
|
@@ -543,7 +543,7 @@ exports.DataOrder = {
|
|
|
543
543
|
if (message.field !== "") {
|
|
544
544
|
obj.field = message.field;
|
|
545
545
|
}
|
|
546
|
-
if (message.descending
|
|
546
|
+
if (message.descending !== false) {
|
|
547
547
|
obj.descending = message.descending;
|
|
548
548
|
}
|
|
549
549
|
return obj;
|
|
@@ -659,7 +659,7 @@ function createBaseRegisterMigrationRequest() {
|
|
|
659
659
|
}
|
|
660
660
|
exports.RegisterMigrationRequest = {
|
|
661
661
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
662
|
-
if (message.dangerouslyRemoveGdprFields
|
|
662
|
+
if (message.dangerouslyRemoveGdprFields !== false) {
|
|
663
663
|
writer.uint32(8).bool(message.dangerouslyRemoveGdprFields);
|
|
664
664
|
}
|
|
665
665
|
for (const v of message.projectionTypes) {
|
|
@@ -763,7 +763,7 @@ exports.RegisterMigrationRequest = {
|
|
|
763
763
|
toJSON(message) {
|
|
764
764
|
var _a, _b, _c, _d, _e;
|
|
765
765
|
const obj = {};
|
|
766
|
-
if (message.dangerouslyRemoveGdprFields
|
|
766
|
+
if (message.dangerouslyRemoveGdprFields !== false) {
|
|
767
767
|
obj.dangerouslyRemoveGdprFields = message.dangerouslyRemoveGdprFields;
|
|
768
768
|
}
|
|
769
769
|
if ((_a = message.projectionTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
@@ -1261,19 +1261,19 @@ function createBaseGetMigrationStatusResponse() {
|
|
|
1261
1261
|
}
|
|
1262
1262
|
exports.GetMigrationStatusResponse = {
|
|
1263
1263
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
1264
|
-
if (message.started
|
|
1264
|
+
if (message.started !== false) {
|
|
1265
1265
|
writer.uint32(8).bool(message.started);
|
|
1266
1266
|
}
|
|
1267
|
-
if (message.done
|
|
1267
|
+
if (message.done !== false) {
|
|
1268
1268
|
writer.uint32(16).bool(message.done);
|
|
1269
1269
|
}
|
|
1270
|
-
if (message.failed
|
|
1270
|
+
if (message.failed !== false) {
|
|
1271
1271
|
writer.uint32(24).bool(message.failed);
|
|
1272
1272
|
}
|
|
1273
|
-
if (message.readyForFinish
|
|
1273
|
+
if (message.readyForFinish !== false) {
|
|
1274
1274
|
writer.uint32(32).bool(message.readyForFinish);
|
|
1275
1275
|
}
|
|
1276
|
-
if (message.finished
|
|
1276
|
+
if (message.finished !== false) {
|
|
1277
1277
|
writer.uint32(40).bool(message.finished);
|
|
1278
1278
|
}
|
|
1279
1279
|
return writer;
|
|
@@ -1334,19 +1334,19 @@ exports.GetMigrationStatusResponse = {
|
|
|
1334
1334
|
},
|
|
1335
1335
|
toJSON(message) {
|
|
1336
1336
|
const obj = {};
|
|
1337
|
-
if (message.started
|
|
1337
|
+
if (message.started !== false) {
|
|
1338
1338
|
obj.started = message.started;
|
|
1339
1339
|
}
|
|
1340
|
-
if (message.done
|
|
1340
|
+
if (message.done !== false) {
|
|
1341
1341
|
obj.done = message.done;
|
|
1342
1342
|
}
|
|
1343
|
-
if (message.failed
|
|
1343
|
+
if (message.failed !== false) {
|
|
1344
1344
|
obj.failed = message.failed;
|
|
1345
1345
|
}
|
|
1346
|
-
if (message.readyForFinish
|
|
1346
|
+
if (message.readyForFinish !== false) {
|
|
1347
1347
|
obj.readyForFinish = message.readyForFinish;
|
|
1348
1348
|
}
|
|
1349
|
-
if (message.finished
|
|
1349
|
+
if (message.finished !== false) {
|
|
1350
1350
|
obj.finished = message.finished;
|
|
1351
1351
|
}
|
|
1352
1352
|
return obj;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, type ClientUnaryCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { ApplyMigrationRequest, ApplyMigrationResponse, CleanupMigrationRequest, CleanupMigrationResponse, GetMigrationStatusRequest, GetMigrationStatusResponse, RegisterMigrationRequest, RegisterMigrationResponse, RollbackMigrationRequest, RollbackMigrationResponse } from "./migration";
|
|
5
4
|
export declare const protobufPackage = "freym.projections.management";
|
|
6
5
|
export type ServiceService = typeof ServiceService;
|
|
@@ -78,4 +77,5 @@ export interface ServiceClient extends Client {
|
|
|
78
77
|
export declare const ServiceClient: {
|
|
79
78
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
80
79
|
service: typeof ServiceService;
|
|
80
|
+
serviceName: string;
|
|
81
81
|
};
|
|
@@ -524,7 +524,7 @@ function createBaseEventOptions() {
|
|
|
524
524
|
}
|
|
525
525
|
exports.EventOptions = {
|
|
526
526
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
527
|
-
if (message.broadcast
|
|
527
|
+
if (message.broadcast !== false) {
|
|
528
528
|
writer.uint32(8).bool(message.broadcast);
|
|
529
529
|
}
|
|
530
530
|
return writer;
|
|
@@ -555,7 +555,7 @@ exports.EventOptions = {
|
|
|
555
555
|
},
|
|
556
556
|
toJSON(message) {
|
|
557
557
|
const obj = {};
|
|
558
|
-
if (message.broadcast
|
|
558
|
+
if (message.broadcast !== false) {
|
|
559
559
|
obj.broadcast = message.broadcast;
|
|
560
560
|
}
|
|
561
561
|
return obj;
|
|
@@ -731,7 +731,7 @@ exports.EventGdprValue = {
|
|
|
731
731
|
if (message.default !== "") {
|
|
732
732
|
writer.uint32(18).string(message.default);
|
|
733
733
|
}
|
|
734
|
-
if (message.isInvalidated
|
|
734
|
+
if (message.isInvalidated !== false) {
|
|
735
735
|
writer.uint32(24).bool(message.isInvalidated);
|
|
736
736
|
}
|
|
737
737
|
return writer;
|
|
@@ -784,7 +784,7 @@ exports.EventGdprValue = {
|
|
|
784
784
|
if (message.default !== "") {
|
|
785
785
|
obj.default = message.default;
|
|
786
786
|
}
|
|
787
|
-
if (message.isInvalidated
|
|
787
|
+
if (message.isInvalidated !== false) {
|
|
788
788
|
obj.isInvalidated = message.isInvalidated;
|
|
789
789
|
}
|
|
790
790
|
return obj;
|
|
@@ -7,9 +7,11 @@ export interface PaginateStreamRequest {
|
|
|
7
7
|
stream: string;
|
|
8
8
|
page: string;
|
|
9
9
|
perPage: string;
|
|
10
|
+
snapshotEventId: string;
|
|
10
11
|
}
|
|
11
12
|
export interface PaginateStreamResponse {
|
|
12
13
|
events: Event[];
|
|
14
|
+
snapshotEventId: string;
|
|
13
15
|
}
|
|
14
16
|
export interface PaginateStreamAfterEventIdRequest {
|
|
15
17
|
tenantId: string;
|
|
@@ -18,9 +20,11 @@ export interface PaginateStreamAfterEventIdRequest {
|
|
|
18
20
|
eventId: string;
|
|
19
21
|
page: string;
|
|
20
22
|
perPage: string;
|
|
23
|
+
snapshotEventId: string;
|
|
21
24
|
}
|
|
22
25
|
export interface PaginateStreamAfterEventIdResponse {
|
|
23
26
|
events: Event[];
|
|
27
|
+
snapshotEventId: string;
|
|
24
28
|
}
|
|
25
29
|
export interface PaginateEventsRequest {
|
|
26
30
|
tenantId: string;
|
|
@@ -9,7 +9,7 @@ const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
|
9
9
|
const event_1 = require("./event");
|
|
10
10
|
exports.protobufPackage = "freym.streams.management";
|
|
11
11
|
function createBasePaginateStreamRequest() {
|
|
12
|
-
return { tenantId: "", topic: "", stream: "", page: "0", perPage: "0" };
|
|
12
|
+
return { tenantId: "", topic: "", stream: "", page: "0", perPage: "0", snapshotEventId: "" };
|
|
13
13
|
}
|
|
14
14
|
exports.PaginateStreamRequest = {
|
|
15
15
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -28,6 +28,9 @@ exports.PaginateStreamRequest = {
|
|
|
28
28
|
if (message.perPage !== "0") {
|
|
29
29
|
writer.uint32(40).int64(message.perPage);
|
|
30
30
|
}
|
|
31
|
+
if (message.snapshotEventId !== "") {
|
|
32
|
+
writer.uint32(50).string(message.snapshotEventId);
|
|
33
|
+
}
|
|
31
34
|
return writer;
|
|
32
35
|
},
|
|
33
36
|
decode(input, length) {
|
|
@@ -67,6 +70,12 @@ exports.PaginateStreamRequest = {
|
|
|
67
70
|
}
|
|
68
71
|
message.perPage = longToString(reader.int64());
|
|
69
72
|
continue;
|
|
73
|
+
case 6:
|
|
74
|
+
if (tag !== 50) {
|
|
75
|
+
break;
|
|
76
|
+
}
|
|
77
|
+
message.snapshotEventId = reader.string();
|
|
78
|
+
continue;
|
|
70
79
|
}
|
|
71
80
|
if ((tag & 7) === 4 || tag === 0) {
|
|
72
81
|
break;
|
|
@@ -82,6 +91,7 @@ exports.PaginateStreamRequest = {
|
|
|
82
91
|
stream: isSet(object.stream) ? globalThis.String(object.stream) : "",
|
|
83
92
|
page: isSet(object.page) ? globalThis.String(object.page) : "0",
|
|
84
93
|
perPage: isSet(object.perPage) ? globalThis.String(object.perPage) : "0",
|
|
94
|
+
snapshotEventId: isSet(object.snapshotEventId) ? globalThis.String(object.snapshotEventId) : "",
|
|
85
95
|
};
|
|
86
96
|
},
|
|
87
97
|
toJSON(message) {
|
|
@@ -101,30 +111,37 @@ exports.PaginateStreamRequest = {
|
|
|
101
111
|
if (message.perPage !== "0") {
|
|
102
112
|
obj.perPage = message.perPage;
|
|
103
113
|
}
|
|
114
|
+
if (message.snapshotEventId !== "") {
|
|
115
|
+
obj.snapshotEventId = message.snapshotEventId;
|
|
116
|
+
}
|
|
104
117
|
return obj;
|
|
105
118
|
},
|
|
106
119
|
create(base) {
|
|
107
120
|
return exports.PaginateStreamRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
108
121
|
},
|
|
109
122
|
fromPartial(object) {
|
|
110
|
-
var _a, _b, _c, _d, _e;
|
|
123
|
+
var _a, _b, _c, _d, _e, _f;
|
|
111
124
|
const message = createBasePaginateStreamRequest();
|
|
112
125
|
message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
|
|
113
126
|
message.topic = (_b = object.topic) !== null && _b !== void 0 ? _b : "";
|
|
114
127
|
message.stream = (_c = object.stream) !== null && _c !== void 0 ? _c : "";
|
|
115
128
|
message.page = (_d = object.page) !== null && _d !== void 0 ? _d : "0";
|
|
116
129
|
message.perPage = (_e = object.perPage) !== null && _e !== void 0 ? _e : "0";
|
|
130
|
+
message.snapshotEventId = (_f = object.snapshotEventId) !== null && _f !== void 0 ? _f : "";
|
|
117
131
|
return message;
|
|
118
132
|
},
|
|
119
133
|
};
|
|
120
134
|
function createBasePaginateStreamResponse() {
|
|
121
|
-
return { events: [] };
|
|
135
|
+
return { events: [], snapshotEventId: "" };
|
|
122
136
|
}
|
|
123
137
|
exports.PaginateStreamResponse = {
|
|
124
138
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
125
139
|
for (const v of message.events) {
|
|
126
140
|
event_1.Event.encode(v, writer.uint32(10).fork()).ldelim();
|
|
127
141
|
}
|
|
142
|
+
if (message.snapshotEventId !== "") {
|
|
143
|
+
writer.uint32(18).string(message.snapshotEventId);
|
|
144
|
+
}
|
|
128
145
|
return writer;
|
|
129
146
|
},
|
|
130
147
|
decode(input, length) {
|
|
@@ -140,6 +157,12 @@ exports.PaginateStreamResponse = {
|
|
|
140
157
|
}
|
|
141
158
|
message.events.push(event_1.Event.decode(reader, reader.uint32()));
|
|
142
159
|
continue;
|
|
160
|
+
case 2:
|
|
161
|
+
if (tag !== 18) {
|
|
162
|
+
break;
|
|
163
|
+
}
|
|
164
|
+
message.snapshotEventId = reader.string();
|
|
165
|
+
continue;
|
|
143
166
|
}
|
|
144
167
|
if ((tag & 7) === 4 || tag === 0) {
|
|
145
168
|
break;
|
|
@@ -149,7 +172,10 @@ exports.PaginateStreamResponse = {
|
|
|
149
172
|
return message;
|
|
150
173
|
},
|
|
151
174
|
fromJSON(object) {
|
|
152
|
-
return {
|
|
175
|
+
return {
|
|
176
|
+
events: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.events) ? object.events.map((e) => event_1.Event.fromJSON(e)) : [],
|
|
177
|
+
snapshotEventId: isSet(object.snapshotEventId) ? globalThis.String(object.snapshotEventId) : "",
|
|
178
|
+
};
|
|
153
179
|
},
|
|
154
180
|
toJSON(message) {
|
|
155
181
|
var _a;
|
|
@@ -157,20 +183,24 @@ exports.PaginateStreamResponse = {
|
|
|
157
183
|
if ((_a = message.events) === null || _a === void 0 ? void 0 : _a.length) {
|
|
158
184
|
obj.events = message.events.map((e) => event_1.Event.toJSON(e));
|
|
159
185
|
}
|
|
186
|
+
if (message.snapshotEventId !== "") {
|
|
187
|
+
obj.snapshotEventId = message.snapshotEventId;
|
|
188
|
+
}
|
|
160
189
|
return obj;
|
|
161
190
|
},
|
|
162
191
|
create(base) {
|
|
163
192
|
return exports.PaginateStreamResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
164
193
|
},
|
|
165
194
|
fromPartial(object) {
|
|
166
|
-
var _a;
|
|
195
|
+
var _a, _b;
|
|
167
196
|
const message = createBasePaginateStreamResponse();
|
|
168
197
|
message.events = ((_a = object.events) === null || _a === void 0 ? void 0 : _a.map((e) => event_1.Event.fromPartial(e))) || [];
|
|
198
|
+
message.snapshotEventId = (_b = object.snapshotEventId) !== null && _b !== void 0 ? _b : "";
|
|
169
199
|
return message;
|
|
170
200
|
},
|
|
171
201
|
};
|
|
172
202
|
function createBasePaginateStreamAfterEventIdRequest() {
|
|
173
|
-
return { tenantId: "", topic: "", stream: "", eventId: "", page: "0", perPage: "0" };
|
|
203
|
+
return { tenantId: "", topic: "", stream: "", eventId: "", page: "0", perPage: "0", snapshotEventId: "" };
|
|
174
204
|
}
|
|
175
205
|
exports.PaginateStreamAfterEventIdRequest = {
|
|
176
206
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -192,6 +222,9 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
192
222
|
if (message.perPage !== "0") {
|
|
193
223
|
writer.uint32(48).int64(message.perPage);
|
|
194
224
|
}
|
|
225
|
+
if (message.snapshotEventId !== "") {
|
|
226
|
+
writer.uint32(58).string(message.snapshotEventId);
|
|
227
|
+
}
|
|
195
228
|
return writer;
|
|
196
229
|
},
|
|
197
230
|
decode(input, length) {
|
|
@@ -237,6 +270,12 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
237
270
|
}
|
|
238
271
|
message.perPage = longToString(reader.int64());
|
|
239
272
|
continue;
|
|
273
|
+
case 7:
|
|
274
|
+
if (tag !== 58) {
|
|
275
|
+
break;
|
|
276
|
+
}
|
|
277
|
+
message.snapshotEventId = reader.string();
|
|
278
|
+
continue;
|
|
240
279
|
}
|
|
241
280
|
if ((tag & 7) === 4 || tag === 0) {
|
|
242
281
|
break;
|
|
@@ -253,6 +292,7 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
253
292
|
eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : "",
|
|
254
293
|
page: isSet(object.page) ? globalThis.String(object.page) : "0",
|
|
255
294
|
perPage: isSet(object.perPage) ? globalThis.String(object.perPage) : "0",
|
|
295
|
+
snapshotEventId: isSet(object.snapshotEventId) ? globalThis.String(object.snapshotEventId) : "",
|
|
256
296
|
};
|
|
257
297
|
},
|
|
258
298
|
toJSON(message) {
|
|
@@ -275,13 +315,16 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
275
315
|
if (message.perPage !== "0") {
|
|
276
316
|
obj.perPage = message.perPage;
|
|
277
317
|
}
|
|
318
|
+
if (message.snapshotEventId !== "") {
|
|
319
|
+
obj.snapshotEventId = message.snapshotEventId;
|
|
320
|
+
}
|
|
278
321
|
return obj;
|
|
279
322
|
},
|
|
280
323
|
create(base) {
|
|
281
324
|
return exports.PaginateStreamAfterEventIdRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
282
325
|
},
|
|
283
326
|
fromPartial(object) {
|
|
284
|
-
var _a, _b, _c, _d, _e, _f;
|
|
327
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
285
328
|
const message = createBasePaginateStreamAfterEventIdRequest();
|
|
286
329
|
message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
|
|
287
330
|
message.topic = (_b = object.topic) !== null && _b !== void 0 ? _b : "";
|
|
@@ -289,17 +332,21 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
289
332
|
message.eventId = (_d = object.eventId) !== null && _d !== void 0 ? _d : "";
|
|
290
333
|
message.page = (_e = object.page) !== null && _e !== void 0 ? _e : "0";
|
|
291
334
|
message.perPage = (_f = object.perPage) !== null && _f !== void 0 ? _f : "0";
|
|
335
|
+
message.snapshotEventId = (_g = object.snapshotEventId) !== null && _g !== void 0 ? _g : "";
|
|
292
336
|
return message;
|
|
293
337
|
},
|
|
294
338
|
};
|
|
295
339
|
function createBasePaginateStreamAfterEventIdResponse() {
|
|
296
|
-
return { events: [] };
|
|
340
|
+
return { events: [], snapshotEventId: "" };
|
|
297
341
|
}
|
|
298
342
|
exports.PaginateStreamAfterEventIdResponse = {
|
|
299
343
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
300
344
|
for (const v of message.events) {
|
|
301
345
|
event_1.Event.encode(v, writer.uint32(10).fork()).ldelim();
|
|
302
346
|
}
|
|
347
|
+
if (message.snapshotEventId !== "") {
|
|
348
|
+
writer.uint32(18).string(message.snapshotEventId);
|
|
349
|
+
}
|
|
303
350
|
return writer;
|
|
304
351
|
},
|
|
305
352
|
decode(input, length) {
|
|
@@ -315,6 +362,12 @@ exports.PaginateStreamAfterEventIdResponse = {
|
|
|
315
362
|
}
|
|
316
363
|
message.events.push(event_1.Event.decode(reader, reader.uint32()));
|
|
317
364
|
continue;
|
|
365
|
+
case 2:
|
|
366
|
+
if (tag !== 18) {
|
|
367
|
+
break;
|
|
368
|
+
}
|
|
369
|
+
message.snapshotEventId = reader.string();
|
|
370
|
+
continue;
|
|
318
371
|
}
|
|
319
372
|
if ((tag & 7) === 4 || tag === 0) {
|
|
320
373
|
break;
|
|
@@ -324,7 +377,10 @@ exports.PaginateStreamAfterEventIdResponse = {
|
|
|
324
377
|
return message;
|
|
325
378
|
},
|
|
326
379
|
fromJSON(object) {
|
|
327
|
-
return {
|
|
380
|
+
return {
|
|
381
|
+
events: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.events) ? object.events.map((e) => event_1.Event.fromJSON(e)) : [],
|
|
382
|
+
snapshotEventId: isSet(object.snapshotEventId) ? globalThis.String(object.snapshotEventId) : "",
|
|
383
|
+
};
|
|
328
384
|
},
|
|
329
385
|
toJSON(message) {
|
|
330
386
|
var _a;
|
|
@@ -332,15 +388,19 @@ exports.PaginateStreamAfterEventIdResponse = {
|
|
|
332
388
|
if ((_a = message.events) === null || _a === void 0 ? void 0 : _a.length) {
|
|
333
389
|
obj.events = message.events.map((e) => event_1.Event.toJSON(e));
|
|
334
390
|
}
|
|
391
|
+
if (message.snapshotEventId !== "") {
|
|
392
|
+
obj.snapshotEventId = message.snapshotEventId;
|
|
393
|
+
}
|
|
335
394
|
return obj;
|
|
336
395
|
},
|
|
337
396
|
create(base) {
|
|
338
397
|
return exports.PaginateStreamAfterEventIdResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
339
398
|
},
|
|
340
399
|
fromPartial(object) {
|
|
341
|
-
var _a;
|
|
400
|
+
var _a, _b;
|
|
342
401
|
const message = createBasePaginateStreamAfterEventIdResponse();
|
|
343
402
|
message.events = ((_a = object.events) === null || _a === void 0 ? void 0 : _a.map((e) => event_1.Event.fromPartial(e))) || [];
|
|
403
|
+
message.snapshotEventId = (_b = object.snapshotEventId) !== null && _b !== void 0 ? _b : "";
|
|
344
404
|
return message;
|
|
345
405
|
},
|
|
346
406
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, ClientDuplexStream, handleBidiStreamingCall, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, ClientDuplexStream, type ClientOptions, type ClientUnaryCall, handleBidiStreamingCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { BackchannelEventRequest, BackchannelEventResponse } from "./backchannel";
|
|
5
4
|
import { Event, GetEventRequest, GetLastEventByTypesRequest, GetLastEventRequest } from "./event";
|
|
6
5
|
import { IntroduceGdprOnEventFieldRequest, IntroduceGdprOnEventFieldResponse, InvalidateGdprRequest, InvalidateGdprResponse } from "./gdpr";
|
|
@@ -202,4 +201,5 @@ export interface ServiceClient extends Client {
|
|
|
202
201
|
export declare const ServiceClient: {
|
|
203
202
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
204
203
|
service: typeof ServiceService;
|
|
204
|
+
serviceName: string;
|
|
205
205
|
};
|
|
@@ -92,7 +92,7 @@ function createBaseIsStreamEmptyResponse() {
|
|
|
92
92
|
}
|
|
93
93
|
exports.IsStreamEmptyResponse = {
|
|
94
94
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
95
|
-
if (message.isEmpty
|
|
95
|
+
if (message.isEmpty !== false) {
|
|
96
96
|
writer.uint32(8).bool(message.isEmpty);
|
|
97
97
|
}
|
|
98
98
|
return writer;
|
|
@@ -123,7 +123,7 @@ exports.IsStreamEmptyResponse = {
|
|
|
123
123
|
},
|
|
124
124
|
toJSON(message) {
|
|
125
125
|
const obj = {};
|
|
126
|
-
if (message.isEmpty
|
|
126
|
+
if (message.isEmpty !== false) {
|
|
127
127
|
obj.isEmpty = message.isEmpty;
|
|
128
128
|
}
|
|
129
129
|
return obj;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { ChannelCredentials, Client, ClientReadableStream, handleServerStreamingCall, Metadata } from "@grpc/grpc-js";
|
|
3
|
-
import type { CallOptions, ClientOptions, ClientUnaryCall, handleUnaryCall, ServiceError, UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
2
|
+
import { type CallOptions, ChannelCredentials, Client, type ClientOptions, ClientReadableStream, type ClientUnaryCall, handleServerStreamingCall, type handleUnaryCall, Metadata, type ServiceError, type UntypedServiceImplementation } from "@grpc/grpc-js";
|
|
4
3
|
import { CreateLeaseRequest, CreateLeaseResponse, DropLeaseRequest, DropLeaseResponse, KeepLeaseRequest, KeepLeaseResponse } from "./lease";
|
|
5
4
|
import { GlobalLockRequest, GlobalLockResponse, GlobalUnlockRequest, GlobalUnlockResponse, LocalLockRequest, LocalLockResponse, LocalUnlockRequest, LocalUnlockResponse } from "./lock";
|
|
6
5
|
import { GetPeerNodesRequest, GetPeerNodesResponse } from "./peer_nodes";
|
|
@@ -118,4 +117,5 @@ export interface ServiceClient extends Client {
|
|
|
118
117
|
export declare const ServiceClient: {
|
|
119
118
|
new (address: string, credentials: ChannelCredentials, options?: Partial<ClientOptions>): ServiceClient;
|
|
120
119
|
service: typeof ServiceService;
|
|
120
|
+
serviceName: string;
|
|
121
121
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraym/proto",
|
|
3
|
-
"version": "0.28.
|
|
3
|
+
"version": "0.28.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"homepage": "https://github.com/fraym/proto",
|
|
6
6
|
"repository": {
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "echo \"Error: no test specified\" && exit 0",
|
|
13
13
|
"build": "npm run clean && tsc",
|
|
14
14
|
"clean": "rm -rf freym",
|
|
15
|
-
"np:publish": "np",
|
|
15
|
+
"np:publish": "np --any-branch",
|
|
16
16
|
"prepublishOnly": "npm run proto && npm run build",
|
|
17
17
|
"proto": "./proto.sh"
|
|
18
18
|
},
|