@fraym/proto 0.27.0 → 0.28.1
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/clone_entry.d.ts +15 -0
- package/freym/crud/delivery/clone_entry.js +104 -4
- 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 +2 -0
- package/freym/streams/management/paginate.js +32 -4
- 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") {
|
|
@@ -6,8 +6,15 @@ export interface CloneEntryRequest {
|
|
|
6
6
|
auth: AuthData | undefined;
|
|
7
7
|
id: string;
|
|
8
8
|
newId: string;
|
|
9
|
+
data: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
9
12
|
eventMetadata: EventMetadata | undefined;
|
|
10
13
|
}
|
|
14
|
+
export interface CloneEntryRequest_DataEntry {
|
|
15
|
+
key: string;
|
|
16
|
+
value: string;
|
|
17
|
+
}
|
|
11
18
|
export interface CloneEntryResponse {
|
|
12
19
|
newData: {
|
|
13
20
|
[key: string]: string;
|
|
@@ -33,6 +40,14 @@ export declare const CloneEntryRequest: {
|
|
|
33
40
|
create(base?: DeepPartial<CloneEntryRequest>): CloneEntryRequest;
|
|
34
41
|
fromPartial(object: DeepPartial<CloneEntryRequest>): CloneEntryRequest;
|
|
35
42
|
};
|
|
43
|
+
export declare const CloneEntryRequest_DataEntry: {
|
|
44
|
+
encode(message: CloneEntryRequest_DataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): CloneEntryRequest_DataEntry;
|
|
46
|
+
fromJSON(object: any): CloneEntryRequest_DataEntry;
|
|
47
|
+
toJSON(message: CloneEntryRequest_DataEntry): unknown;
|
|
48
|
+
create(base?: DeepPartial<CloneEntryRequest_DataEntry>): CloneEntryRequest_DataEntry;
|
|
49
|
+
fromPartial(object: DeepPartial<CloneEntryRequest_DataEntry>): CloneEntryRequest_DataEntry;
|
|
50
|
+
};
|
|
36
51
|
export declare const CloneEntryResponse: {
|
|
37
52
|
encode(message: CloneEntryResponse, writer?: _m0.Writer): _m0.Writer;
|
|
38
53
|
decode(input: _m0.Reader | Uint8Array, length?: number): CloneEntryResponse;
|
|
@@ -3,12 +3,12 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.CloneEntryResponse_FieldValidationErrorsEntry = exports.CloneEntryResponse_NewDataEntry = exports.CloneEntryResponse = exports.CloneEntryRequest = exports.protobufPackage = void 0;
|
|
6
|
+
exports.CloneEntryResponse_FieldValidationErrorsEntry = exports.CloneEntryResponse_NewDataEntry = exports.CloneEntryResponse = exports.CloneEntryRequest_DataEntry = exports.CloneEntryRequest = exports.protobufPackage = void 0;
|
|
7
7
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
8
8
|
const shared_1 = require("./shared");
|
|
9
9
|
exports.protobufPackage = "freym.crud.delivery";
|
|
10
10
|
function createBaseCloneEntryRequest() {
|
|
11
|
-
return { type: "", auth: undefined, id: "", newId: "", eventMetadata: undefined };
|
|
11
|
+
return { type: "", auth: undefined, id: "", newId: "", data: {}, eventMetadata: undefined };
|
|
12
12
|
}
|
|
13
13
|
exports.CloneEntryRequest = {
|
|
14
14
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -24,8 +24,11 @@ exports.CloneEntryRequest = {
|
|
|
24
24
|
if (message.newId !== "") {
|
|
25
25
|
writer.uint32(34).string(message.newId);
|
|
26
26
|
}
|
|
27
|
+
Object.entries(message.data).forEach(([key, value]) => {
|
|
28
|
+
exports.CloneEntryRequest_DataEntry.encode({ key: key, value }, writer.uint32(42).fork()).ldelim();
|
|
29
|
+
});
|
|
27
30
|
if (message.eventMetadata !== undefined) {
|
|
28
|
-
shared_1.EventMetadata.encode(message.eventMetadata, writer.uint32(
|
|
31
|
+
shared_1.EventMetadata.encode(message.eventMetadata, writer.uint32(50).fork()).ldelim();
|
|
29
32
|
}
|
|
30
33
|
return writer;
|
|
31
34
|
},
|
|
@@ -64,6 +67,15 @@ exports.CloneEntryRequest = {
|
|
|
64
67
|
if (tag !== 42) {
|
|
65
68
|
break;
|
|
66
69
|
}
|
|
70
|
+
const entry5 = exports.CloneEntryRequest_DataEntry.decode(reader, reader.uint32());
|
|
71
|
+
if (entry5.value !== undefined) {
|
|
72
|
+
message.data[entry5.key] = entry5.value;
|
|
73
|
+
}
|
|
74
|
+
continue;
|
|
75
|
+
case 6:
|
|
76
|
+
if (tag !== 50) {
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
67
79
|
message.eventMetadata = shared_1.EventMetadata.decode(reader, reader.uint32());
|
|
68
80
|
continue;
|
|
69
81
|
}
|
|
@@ -80,6 +92,12 @@ exports.CloneEntryRequest = {
|
|
|
80
92
|
auth: isSet(object.auth) ? shared_1.AuthData.fromJSON(object.auth) : undefined,
|
|
81
93
|
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
82
94
|
newId: isSet(object.newId) ? globalThis.String(object.newId) : "",
|
|
95
|
+
data: isObject(object.data)
|
|
96
|
+
? Object.entries(object.data).reduce((acc, [key, value]) => {
|
|
97
|
+
acc[key] = String(value);
|
|
98
|
+
return acc;
|
|
99
|
+
}, {})
|
|
100
|
+
: {},
|
|
83
101
|
eventMetadata: isSet(object.eventMetadata) ? shared_1.EventMetadata.fromJSON(object.eventMetadata) : undefined,
|
|
84
102
|
};
|
|
85
103
|
},
|
|
@@ -97,6 +115,15 @@ exports.CloneEntryRequest = {
|
|
|
97
115
|
if (message.newId !== "") {
|
|
98
116
|
obj.newId = message.newId;
|
|
99
117
|
}
|
|
118
|
+
if (message.data) {
|
|
119
|
+
const entries = Object.entries(message.data);
|
|
120
|
+
if (entries.length > 0) {
|
|
121
|
+
obj.data = {};
|
|
122
|
+
entries.forEach(([k, v]) => {
|
|
123
|
+
obj.data[k] = v;
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
}
|
|
100
127
|
if (message.eventMetadata !== undefined) {
|
|
101
128
|
obj.eventMetadata = shared_1.EventMetadata.toJSON(message.eventMetadata);
|
|
102
129
|
}
|
|
@@ -106,18 +133,91 @@ exports.CloneEntryRequest = {
|
|
|
106
133
|
return exports.CloneEntryRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
107
134
|
},
|
|
108
135
|
fromPartial(object) {
|
|
109
|
-
var _a, _b, _c;
|
|
136
|
+
var _a, _b, _c, _d;
|
|
110
137
|
const message = createBaseCloneEntryRequest();
|
|
111
138
|
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : "";
|
|
112
139
|
message.auth = (object.auth !== undefined && object.auth !== null) ? shared_1.AuthData.fromPartial(object.auth) : undefined;
|
|
113
140
|
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
114
141
|
message.newId = (_c = object.newId) !== null && _c !== void 0 ? _c : "";
|
|
142
|
+
message.data = Object.entries((_d = object.data) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
|
|
143
|
+
if (value !== undefined) {
|
|
144
|
+
acc[key] = globalThis.String(value);
|
|
145
|
+
}
|
|
146
|
+
return acc;
|
|
147
|
+
}, {});
|
|
115
148
|
message.eventMetadata = (object.eventMetadata !== undefined && object.eventMetadata !== null)
|
|
116
149
|
? shared_1.EventMetadata.fromPartial(object.eventMetadata)
|
|
117
150
|
: undefined;
|
|
118
151
|
return message;
|
|
119
152
|
},
|
|
120
153
|
};
|
|
154
|
+
function createBaseCloneEntryRequest_DataEntry() {
|
|
155
|
+
return { key: "", value: "" };
|
|
156
|
+
}
|
|
157
|
+
exports.CloneEntryRequest_DataEntry = {
|
|
158
|
+
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
159
|
+
if (message.key !== "") {
|
|
160
|
+
writer.uint32(10).string(message.key);
|
|
161
|
+
}
|
|
162
|
+
if (message.value !== "") {
|
|
163
|
+
writer.uint32(18).string(message.value);
|
|
164
|
+
}
|
|
165
|
+
return writer;
|
|
166
|
+
},
|
|
167
|
+
decode(input, length) {
|
|
168
|
+
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
|
|
169
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
170
|
+
const message = createBaseCloneEntryRequest_DataEntry();
|
|
171
|
+
while (reader.pos < end) {
|
|
172
|
+
const tag = reader.uint32();
|
|
173
|
+
switch (tag >>> 3) {
|
|
174
|
+
case 1:
|
|
175
|
+
if (tag !== 10) {
|
|
176
|
+
break;
|
|
177
|
+
}
|
|
178
|
+
message.key = reader.string();
|
|
179
|
+
continue;
|
|
180
|
+
case 2:
|
|
181
|
+
if (tag !== 18) {
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
message.value = reader.string();
|
|
185
|
+
continue;
|
|
186
|
+
}
|
|
187
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
188
|
+
break;
|
|
189
|
+
}
|
|
190
|
+
reader.skipType(tag & 7);
|
|
191
|
+
}
|
|
192
|
+
return message;
|
|
193
|
+
},
|
|
194
|
+
fromJSON(object) {
|
|
195
|
+
return {
|
|
196
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
197
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
198
|
+
};
|
|
199
|
+
},
|
|
200
|
+
toJSON(message) {
|
|
201
|
+
const obj = {};
|
|
202
|
+
if (message.key !== "") {
|
|
203
|
+
obj.key = message.key;
|
|
204
|
+
}
|
|
205
|
+
if (message.value !== "") {
|
|
206
|
+
obj.value = message.value;
|
|
207
|
+
}
|
|
208
|
+
return obj;
|
|
209
|
+
},
|
|
210
|
+
create(base) {
|
|
211
|
+
return exports.CloneEntryRequest_DataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
212
|
+
},
|
|
213
|
+
fromPartial(object) {
|
|
214
|
+
var _a, _b;
|
|
215
|
+
const message = createBaseCloneEntryRequest_DataEntry();
|
|
216
|
+
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
217
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
218
|
+
return message;
|
|
219
|
+
},
|
|
220
|
+
};
|
|
121
221
|
function createBaseCloneEntryResponse() {
|
|
122
222
|
return { newData: {}, validationErrors: [], fieldValidationErrors: {} };
|
|
123
223
|
}
|
|
@@ -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,6 +7,7 @@ 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[];
|
|
@@ -18,6 +19,7 @@ export interface PaginateStreamAfterEventIdRequest {
|
|
|
18
19
|
eventId: string;
|
|
19
20
|
page: string;
|
|
20
21
|
perPage: string;
|
|
22
|
+
snapshotEventId: string;
|
|
21
23
|
}
|
|
22
24
|
export interface PaginateStreamAfterEventIdResponse {
|
|
23
25
|
events: Event[];
|
|
@@ -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,19 +111,23 @@ 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
|
};
|
|
@@ -170,7 +184,7 @@ exports.PaginateStreamResponse = {
|
|
|
170
184
|
},
|
|
171
185
|
};
|
|
172
186
|
function createBasePaginateStreamAfterEventIdRequest() {
|
|
173
|
-
return { tenantId: "", topic: "", stream: "", eventId: "", page: "0", perPage: "0" };
|
|
187
|
+
return { tenantId: "", topic: "", stream: "", eventId: "", page: "0", perPage: "0", snapshotEventId: "" };
|
|
174
188
|
}
|
|
175
189
|
exports.PaginateStreamAfterEventIdRequest = {
|
|
176
190
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
@@ -192,6 +206,9 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
192
206
|
if (message.perPage !== "0") {
|
|
193
207
|
writer.uint32(48).int64(message.perPage);
|
|
194
208
|
}
|
|
209
|
+
if (message.snapshotEventId !== "") {
|
|
210
|
+
writer.uint32(58).string(message.snapshotEventId);
|
|
211
|
+
}
|
|
195
212
|
return writer;
|
|
196
213
|
},
|
|
197
214
|
decode(input, length) {
|
|
@@ -237,6 +254,12 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
237
254
|
}
|
|
238
255
|
message.perPage = longToString(reader.int64());
|
|
239
256
|
continue;
|
|
257
|
+
case 7:
|
|
258
|
+
if (tag !== 58) {
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
message.snapshotEventId = reader.string();
|
|
262
|
+
continue;
|
|
240
263
|
}
|
|
241
264
|
if ((tag & 7) === 4 || tag === 0) {
|
|
242
265
|
break;
|
|
@@ -253,6 +276,7 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
253
276
|
eventId: isSet(object.eventId) ? globalThis.String(object.eventId) : "",
|
|
254
277
|
page: isSet(object.page) ? globalThis.String(object.page) : "0",
|
|
255
278
|
perPage: isSet(object.perPage) ? globalThis.String(object.perPage) : "0",
|
|
279
|
+
snapshotEventId: isSet(object.snapshotEventId) ? globalThis.String(object.snapshotEventId) : "",
|
|
256
280
|
};
|
|
257
281
|
},
|
|
258
282
|
toJSON(message) {
|
|
@@ -275,13 +299,16 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
275
299
|
if (message.perPage !== "0") {
|
|
276
300
|
obj.perPage = message.perPage;
|
|
277
301
|
}
|
|
302
|
+
if (message.snapshotEventId !== "") {
|
|
303
|
+
obj.snapshotEventId = message.snapshotEventId;
|
|
304
|
+
}
|
|
278
305
|
return obj;
|
|
279
306
|
},
|
|
280
307
|
create(base) {
|
|
281
308
|
return exports.PaginateStreamAfterEventIdRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
282
309
|
},
|
|
283
310
|
fromPartial(object) {
|
|
284
|
-
var _a, _b, _c, _d, _e, _f;
|
|
311
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
285
312
|
const message = createBasePaginateStreamAfterEventIdRequest();
|
|
286
313
|
message.tenantId = (_a = object.tenantId) !== null && _a !== void 0 ? _a : "";
|
|
287
314
|
message.topic = (_b = object.topic) !== null && _b !== void 0 ? _b : "";
|
|
@@ -289,6 +316,7 @@ exports.PaginateStreamAfterEventIdRequest = {
|
|
|
289
316
|
message.eventId = (_d = object.eventId) !== null && _d !== void 0 ? _d : "";
|
|
290
317
|
message.page = (_e = object.page) !== null && _e !== void 0 ? _e : "0";
|
|
291
318
|
message.perPage = (_f = object.perPage) !== null && _f !== void 0 ? _f : "0";
|
|
319
|
+
message.snapshotEventId = (_g = object.snapshotEventId) !== null && _g !== void 0 ? _g : "";
|
|
292
320
|
return message;
|
|
293
321
|
},
|
|
294
322
|
};
|
|
@@ -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.
|
|
3
|
+
"version": "0.28.1",
|
|
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
|
},
|