@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
|
@@ -79,9 +79,9 @@ exports.UpsertProjectionDataRequest = {
|
|
|
79
79
|
},
|
|
80
80
|
fromJSON(object) {
|
|
81
81
|
return {
|
|
82
|
-
projection: isSet(object.projection) ? String(object.projection) : "",
|
|
82
|
+
projection: isSet(object.projection) ? globalThis.String(object.projection) : "",
|
|
83
83
|
auth: isSet(object.auth) ? shared_1.AuthData.fromJSON(object.auth) : undefined,
|
|
84
|
-
dataId: isSet(object.dataId) ? String(object.dataId) : "",
|
|
84
|
+
dataId: isSet(object.dataId) ? globalThis.String(object.dataId) : "",
|
|
85
85
|
payload: isObject(object.payload)
|
|
86
86
|
? Object.entries(object.payload).reduce((acc, [key, value]) => {
|
|
87
87
|
acc[key] = String(value);
|
|
@@ -93,17 +93,27 @@ exports.UpsertProjectionDataRequest = {
|
|
|
93
93
|
},
|
|
94
94
|
toJSON(message) {
|
|
95
95
|
const obj = {};
|
|
96
|
-
message.projection !==
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
if (message.projection !== "") {
|
|
97
|
+
obj.projection = message.projection;
|
|
98
|
+
}
|
|
99
|
+
if (message.auth !== undefined) {
|
|
100
|
+
obj.auth = shared_1.AuthData.toJSON(message.auth);
|
|
101
|
+
}
|
|
102
|
+
if (message.dataId !== "") {
|
|
103
|
+
obj.dataId = message.dataId;
|
|
104
|
+
}
|
|
100
105
|
if (message.payload) {
|
|
101
|
-
Object.entries(message.payload)
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
const entries = Object.entries(message.payload);
|
|
107
|
+
if (entries.length > 0) {
|
|
108
|
+
obj.payload = {};
|
|
109
|
+
entries.forEach(([k, v]) => {
|
|
110
|
+
obj.payload[k] = v;
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
if (message.eventMetadata !== undefined) {
|
|
115
|
+
obj.eventMetadata = shared_1.EventMetadata.toJSON(message.eventMetadata);
|
|
104
116
|
}
|
|
105
|
-
message.eventMetadata !== undefined &&
|
|
106
|
-
(obj.eventMetadata = message.eventMetadata ? shared_1.EventMetadata.toJSON(message.eventMetadata) : undefined);
|
|
107
117
|
return obj;
|
|
108
118
|
},
|
|
109
119
|
create(base) {
|
|
@@ -117,7 +127,7 @@ exports.UpsertProjectionDataRequest = {
|
|
|
117
127
|
message.dataId = (_b = object.dataId) !== null && _b !== void 0 ? _b : "";
|
|
118
128
|
message.payload = Object.entries((_c = object.payload) !== null && _c !== void 0 ? _c : {}).reduce((acc, [key, value]) => {
|
|
119
129
|
if (value !== undefined) {
|
|
120
|
-
acc[key] = String(value);
|
|
130
|
+
acc[key] = globalThis.String(value);
|
|
121
131
|
}
|
|
122
132
|
return acc;
|
|
123
133
|
}, {});
|
|
@@ -168,12 +178,19 @@ exports.UpsertProjectionDataRequest_PayloadEntry = {
|
|
|
168
178
|
return message;
|
|
169
179
|
},
|
|
170
180
|
fromJSON(object) {
|
|
171
|
-
return {
|
|
181
|
+
return {
|
|
182
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
183
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
184
|
+
};
|
|
172
185
|
},
|
|
173
186
|
toJSON(message) {
|
|
174
187
|
const obj = {};
|
|
175
|
-
message.key !==
|
|
176
|
-
|
|
188
|
+
if (message.key !== "") {
|
|
189
|
+
obj.key = message.key;
|
|
190
|
+
}
|
|
191
|
+
if (message.value !== "") {
|
|
192
|
+
obj.value = message.value;
|
|
193
|
+
}
|
|
177
194
|
return obj;
|
|
178
195
|
},
|
|
179
196
|
create(base) {
|
|
@@ -259,9 +276,9 @@ exports.UpsertProjectionDataResponse = {
|
|
|
259
276
|
return acc;
|
|
260
277
|
}, {})
|
|
261
278
|
: {},
|
|
262
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
263
|
-
validationErrors: Array.isArray(object === null || object === void 0 ? void 0 : object.validationErrors)
|
|
264
|
-
? object.validationErrors.map((e) => String(e))
|
|
279
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
280
|
+
validationErrors: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.validationErrors)
|
|
281
|
+
? object.validationErrors.map((e) => globalThis.String(e))
|
|
265
282
|
: [],
|
|
266
283
|
fieldValidationErrors: isObject(object.fieldValidationErrors)
|
|
267
284
|
? Object.entries(object.fieldValidationErrors).reduce((acc, [key, value]) => {
|
|
@@ -272,25 +289,31 @@ exports.UpsertProjectionDataResponse = {
|
|
|
272
289
|
};
|
|
273
290
|
},
|
|
274
291
|
toJSON(message) {
|
|
292
|
+
var _a;
|
|
275
293
|
const obj = {};
|
|
276
|
-
obj.newData = {};
|
|
277
294
|
if (message.newData) {
|
|
278
|
-
Object.entries(message.newData)
|
|
279
|
-
|
|
280
|
-
|
|
295
|
+
const entries = Object.entries(message.newData);
|
|
296
|
+
if (entries.length > 0) {
|
|
297
|
+
obj.newData = {};
|
|
298
|
+
entries.forEach(([k, v]) => {
|
|
299
|
+
obj.newData[k] = v;
|
|
300
|
+
});
|
|
301
|
+
}
|
|
281
302
|
}
|
|
282
|
-
message.id !==
|
|
283
|
-
|
|
284
|
-
obj.validationErrors = message.validationErrors.map((e) => e);
|
|
303
|
+
if (message.id !== "") {
|
|
304
|
+
obj.id = message.id;
|
|
285
305
|
}
|
|
286
|
-
|
|
287
|
-
obj.validationErrors =
|
|
306
|
+
if ((_a = message.validationErrors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
307
|
+
obj.validationErrors = message.validationErrors;
|
|
288
308
|
}
|
|
289
|
-
obj.fieldValidationErrors = {};
|
|
290
309
|
if (message.fieldValidationErrors) {
|
|
291
|
-
Object.entries(message.fieldValidationErrors)
|
|
292
|
-
|
|
293
|
-
|
|
310
|
+
const entries = Object.entries(message.fieldValidationErrors);
|
|
311
|
+
if (entries.length > 0) {
|
|
312
|
+
obj.fieldValidationErrors = {};
|
|
313
|
+
entries.forEach(([k, v]) => {
|
|
314
|
+
obj.fieldValidationErrors[k] = v;
|
|
315
|
+
});
|
|
316
|
+
}
|
|
294
317
|
}
|
|
295
318
|
return obj;
|
|
296
319
|
},
|
|
@@ -302,7 +325,7 @@ exports.UpsertProjectionDataResponse = {
|
|
|
302
325
|
const message = createBaseUpsertProjectionDataResponse();
|
|
303
326
|
message.newData = Object.entries((_a = object.newData) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
304
327
|
if (value !== undefined) {
|
|
305
|
-
acc[key] = String(value);
|
|
328
|
+
acc[key] = globalThis.String(value);
|
|
306
329
|
}
|
|
307
330
|
return acc;
|
|
308
331
|
}, {});
|
|
@@ -310,7 +333,7 @@ exports.UpsertProjectionDataResponse = {
|
|
|
310
333
|
message.validationErrors = ((_c = object.validationErrors) === null || _c === void 0 ? void 0 : _c.map((e) => e)) || [];
|
|
311
334
|
message.fieldValidationErrors = Object.entries((_d = object.fieldValidationErrors) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
|
|
312
335
|
if (value !== undefined) {
|
|
313
|
-
acc[key] = String(value);
|
|
336
|
+
acc[key] = globalThis.String(value);
|
|
314
337
|
}
|
|
315
338
|
return acc;
|
|
316
339
|
}, {});
|
|
@@ -358,12 +381,19 @@ exports.UpsertProjectionDataResponse_NewDataEntry = {
|
|
|
358
381
|
return message;
|
|
359
382
|
},
|
|
360
383
|
fromJSON(object) {
|
|
361
|
-
return {
|
|
384
|
+
return {
|
|
385
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
386
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
387
|
+
};
|
|
362
388
|
},
|
|
363
389
|
toJSON(message) {
|
|
364
390
|
const obj = {};
|
|
365
|
-
message.key !==
|
|
366
|
-
|
|
391
|
+
if (message.key !== "") {
|
|
392
|
+
obj.key = message.key;
|
|
393
|
+
}
|
|
394
|
+
if (message.value !== "") {
|
|
395
|
+
obj.value = message.value;
|
|
396
|
+
}
|
|
367
397
|
return obj;
|
|
368
398
|
},
|
|
369
399
|
create(base) {
|
|
@@ -418,12 +448,19 @@ exports.UpsertProjectionDataResponse_FieldValidationErrorsEntry = {
|
|
|
418
448
|
return message;
|
|
419
449
|
},
|
|
420
450
|
fromJSON(object) {
|
|
421
|
-
return {
|
|
451
|
+
return {
|
|
452
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
453
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
454
|
+
};
|
|
422
455
|
},
|
|
423
456
|
toJSON(message) {
|
|
424
457
|
const obj = {};
|
|
425
|
-
message.key !==
|
|
426
|
-
|
|
458
|
+
if (message.key !== "") {
|
|
459
|
+
obj.key = message.key;
|
|
460
|
+
}
|
|
461
|
+
if (message.value !== "") {
|
|
462
|
+
obj.value = message.value;
|
|
463
|
+
}
|
|
427
464
|
return obj;
|
|
428
465
|
},
|
|
429
466
|
create(base) {
|
|
@@ -7,7 +7,7 @@ export interface DataTransformationRequest {
|
|
|
7
7
|
} | {
|
|
8
8
|
$case: "data";
|
|
9
9
|
data: TransformedData;
|
|
10
|
-
};
|
|
10
|
+
} | undefined;
|
|
11
11
|
}
|
|
12
12
|
export interface DataTransformationResponse {
|
|
13
13
|
payload?: {
|
|
@@ -19,16 +19,16 @@ export interface DataTransformationResponse {
|
|
|
19
19
|
} | {
|
|
20
20
|
$case: "end";
|
|
21
21
|
end: TransformEnd;
|
|
22
|
-
};
|
|
22
|
+
} | undefined;
|
|
23
23
|
}
|
|
24
24
|
export interface TransformationStatus {
|
|
25
25
|
status: {
|
|
26
|
-
[key: string]:
|
|
26
|
+
[key: string]: string;
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
29
|
export interface TransformationStatus_StatusEntry {
|
|
30
30
|
key: string;
|
|
31
|
-
value:
|
|
31
|
+
value: string;
|
|
32
32
|
}
|
|
33
33
|
export interface TransformData {
|
|
34
34
|
crudTypes: string[];
|
|
@@ -140,7 +140,7 @@ export declare const TransformedData_DataEntry: {
|
|
|
140
140
|
fromPartial(object: DeepPartial<TransformedData_DataEntry>): TransformedData_DataEntry;
|
|
141
141
|
};
|
|
142
142
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
143
|
-
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 {
|
|
143
|
+
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 {
|
|
144
144
|
$case: string;
|
|
145
145
|
} ? {
|
|
146
146
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
@@ -60,12 +60,14 @@ exports.DataTransformationRequest = {
|
|
|
60
60
|
};
|
|
61
61
|
},
|
|
62
62
|
toJSON(message) {
|
|
63
|
-
var _a, _b
|
|
63
|
+
var _a, _b;
|
|
64
64
|
const obj = {};
|
|
65
|
-
((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "init"
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
if (((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "init") {
|
|
66
|
+
obj.init = exports.TransformData.toJSON(message.payload.init);
|
|
67
|
+
}
|
|
68
|
+
if (((_b = message.payload) === null || _b === void 0 ? void 0 : _b.$case) === "data") {
|
|
69
|
+
obj.data = exports.TransformedData.toJSON(message.payload.data);
|
|
70
|
+
}
|
|
69
71
|
return obj;
|
|
70
72
|
},
|
|
71
73
|
create(base) {
|
|
@@ -147,14 +149,17 @@ exports.DataTransformationResponse = {
|
|
|
147
149
|
};
|
|
148
150
|
},
|
|
149
151
|
toJSON(message) {
|
|
150
|
-
var _a, _b, _c
|
|
152
|
+
var _a, _b, _c;
|
|
151
153
|
const obj = {};
|
|
152
|
-
((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "status"
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
154
|
+
if (((_a = message.payload) === null || _a === void 0 ? void 0 : _a.$case) === "status") {
|
|
155
|
+
obj.status = exports.TransformationStatus.toJSON(message.payload.status);
|
|
156
|
+
}
|
|
157
|
+
if (((_b = message.payload) === null || _b === void 0 ? void 0 : _b.$case) === "data") {
|
|
158
|
+
obj.data = exports.DataToTransform.toJSON(message.payload.data);
|
|
159
|
+
}
|
|
160
|
+
if (((_c = message.payload) === null || _c === void 0 ? void 0 : _c.$case) === "end") {
|
|
161
|
+
obj.end = exports.TransformEnd.toJSON(message.payload.end);
|
|
162
|
+
}
|
|
158
163
|
return obj;
|
|
159
164
|
},
|
|
160
165
|
create(base) {
|
|
@@ -213,7 +218,7 @@ exports.TransformationStatus = {
|
|
|
213
218
|
return {
|
|
214
219
|
status: isObject(object.status)
|
|
215
220
|
? Object.entries(object.status).reduce((acc, [key, value]) => {
|
|
216
|
-
acc[key] =
|
|
221
|
+
acc[key] = String(value);
|
|
217
222
|
return acc;
|
|
218
223
|
}, {})
|
|
219
224
|
: {},
|
|
@@ -221,11 +226,14 @@ exports.TransformationStatus = {
|
|
|
221
226
|
},
|
|
222
227
|
toJSON(message) {
|
|
223
228
|
const obj = {};
|
|
224
|
-
obj.status = {};
|
|
225
229
|
if (message.status) {
|
|
226
|
-
Object.entries(message.status)
|
|
227
|
-
|
|
228
|
-
|
|
230
|
+
const entries = Object.entries(message.status);
|
|
231
|
+
if (entries.length > 0) {
|
|
232
|
+
obj.status = {};
|
|
233
|
+
entries.forEach(([k, v]) => {
|
|
234
|
+
obj.status[k] = v;
|
|
235
|
+
});
|
|
236
|
+
}
|
|
229
237
|
}
|
|
230
238
|
return obj;
|
|
231
239
|
},
|
|
@@ -237,7 +245,7 @@ exports.TransformationStatus = {
|
|
|
237
245
|
const message = createBaseTransformationStatus();
|
|
238
246
|
message.status = Object.entries((_a = object.status) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
239
247
|
if (value !== undefined) {
|
|
240
|
-
acc[key] =
|
|
248
|
+
acc[key] = globalThis.String(value);
|
|
241
249
|
}
|
|
242
250
|
return acc;
|
|
243
251
|
}, {});
|
|
@@ -245,14 +253,14 @@ exports.TransformationStatus = {
|
|
|
245
253
|
},
|
|
246
254
|
};
|
|
247
255
|
function createBaseTransformationStatus_StatusEntry() {
|
|
248
|
-
return { key: "", value: 0 };
|
|
256
|
+
return { key: "", value: "0" };
|
|
249
257
|
}
|
|
250
258
|
exports.TransformationStatus_StatusEntry = {
|
|
251
259
|
encode(message, writer = minimal_1.default.Writer.create()) {
|
|
252
260
|
if (message.key !== "") {
|
|
253
261
|
writer.uint32(10).string(message.key);
|
|
254
262
|
}
|
|
255
|
-
if (message.value !== 0) {
|
|
263
|
+
if (message.value !== "0") {
|
|
256
264
|
writer.uint32(16).int64(message.value);
|
|
257
265
|
}
|
|
258
266
|
return writer;
|
|
@@ -274,7 +282,7 @@ exports.TransformationStatus_StatusEntry = {
|
|
|
274
282
|
if (tag !== 16) {
|
|
275
283
|
break;
|
|
276
284
|
}
|
|
277
|
-
message.value =
|
|
285
|
+
message.value = longToString(reader.int64());
|
|
278
286
|
continue;
|
|
279
287
|
}
|
|
280
288
|
if ((tag & 7) === 4 || tag === 0) {
|
|
@@ -285,12 +293,19 @@ exports.TransformationStatus_StatusEntry = {
|
|
|
285
293
|
return message;
|
|
286
294
|
},
|
|
287
295
|
fromJSON(object) {
|
|
288
|
-
return {
|
|
296
|
+
return {
|
|
297
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
298
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "0",
|
|
299
|
+
};
|
|
289
300
|
},
|
|
290
301
|
toJSON(message) {
|
|
291
302
|
const obj = {};
|
|
292
|
-
message.key !==
|
|
293
|
-
|
|
303
|
+
if (message.key !== "") {
|
|
304
|
+
obj.key = message.key;
|
|
305
|
+
}
|
|
306
|
+
if (message.value !== "0") {
|
|
307
|
+
obj.value = message.value;
|
|
308
|
+
}
|
|
294
309
|
return obj;
|
|
295
310
|
},
|
|
296
311
|
create(base) {
|
|
@@ -300,7 +315,7 @@ exports.TransformationStatus_StatusEntry = {
|
|
|
300
315
|
var _a, _b;
|
|
301
316
|
const message = createBaseTransformationStatus_StatusEntry();
|
|
302
317
|
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
303
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : 0;
|
|
318
|
+
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "0";
|
|
304
319
|
return message;
|
|
305
320
|
},
|
|
306
321
|
};
|
|
@@ -336,15 +351,17 @@ exports.TransformData = {
|
|
|
336
351
|
return message;
|
|
337
352
|
},
|
|
338
353
|
fromJSON(object) {
|
|
339
|
-
return {
|
|
354
|
+
return {
|
|
355
|
+
crudTypes: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.crudTypes)
|
|
356
|
+
? object.crudTypes.map((e) => globalThis.String(e))
|
|
357
|
+
: [],
|
|
358
|
+
};
|
|
340
359
|
},
|
|
341
360
|
toJSON(message) {
|
|
361
|
+
var _a;
|
|
342
362
|
const obj = {};
|
|
343
|
-
if (message.crudTypes) {
|
|
344
|
-
obj.crudTypes = message.crudTypes
|
|
345
|
-
}
|
|
346
|
-
else {
|
|
347
|
-
obj.crudTypes = [];
|
|
363
|
+
if ((_a = message.crudTypes) === null || _a === void 0 ? void 0 : _a.length) {
|
|
364
|
+
obj.crudTypes = message.crudTypes;
|
|
348
365
|
}
|
|
349
366
|
return obj;
|
|
350
367
|
},
|
|
@@ -458,9 +475,9 @@ exports.DataToTransform = {
|
|
|
458
475
|
},
|
|
459
476
|
fromJSON(object) {
|
|
460
477
|
return {
|
|
461
|
-
crudType: isSet(object.crudType) ? String(object.crudType) : "",
|
|
462
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
463
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
478
|
+
crudType: isSet(object.crudType) ? globalThis.String(object.crudType) : "",
|
|
479
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
480
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
464
481
|
data: isObject(object.data)
|
|
465
482
|
? Object.entries(object.data).reduce((acc, [key, value]) => {
|
|
466
483
|
acc[key] = String(value);
|
|
@@ -471,14 +488,23 @@ exports.DataToTransform = {
|
|
|
471
488
|
},
|
|
472
489
|
toJSON(message) {
|
|
473
490
|
const obj = {};
|
|
474
|
-
message.crudType !==
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
491
|
+
if (message.crudType !== "") {
|
|
492
|
+
obj.crudType = message.crudType;
|
|
493
|
+
}
|
|
494
|
+
if (message.tenantId !== "") {
|
|
495
|
+
obj.tenantId = message.tenantId;
|
|
496
|
+
}
|
|
497
|
+
if (message.id !== "") {
|
|
498
|
+
obj.id = message.id;
|
|
499
|
+
}
|
|
478
500
|
if (message.data) {
|
|
479
|
-
Object.entries(message.data)
|
|
480
|
-
|
|
481
|
-
|
|
501
|
+
const entries = Object.entries(message.data);
|
|
502
|
+
if (entries.length > 0) {
|
|
503
|
+
obj.data = {};
|
|
504
|
+
entries.forEach(([k, v]) => {
|
|
505
|
+
obj.data[k] = v;
|
|
506
|
+
});
|
|
507
|
+
}
|
|
482
508
|
}
|
|
483
509
|
return obj;
|
|
484
510
|
},
|
|
@@ -493,7 +519,7 @@ exports.DataToTransform = {
|
|
|
493
519
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
494
520
|
message.data = Object.entries((_d = object.data) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
|
|
495
521
|
if (value !== undefined) {
|
|
496
|
-
acc[key] = String(value);
|
|
522
|
+
acc[key] = globalThis.String(value);
|
|
497
523
|
}
|
|
498
524
|
return acc;
|
|
499
525
|
}, {});
|
|
@@ -541,12 +567,19 @@ exports.DataToTransform_DataEntry = {
|
|
|
541
567
|
return message;
|
|
542
568
|
},
|
|
543
569
|
fromJSON(object) {
|
|
544
|
-
return {
|
|
570
|
+
return {
|
|
571
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
572
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
573
|
+
};
|
|
545
574
|
},
|
|
546
575
|
toJSON(message) {
|
|
547
576
|
const obj = {};
|
|
548
|
-
message.key !==
|
|
549
|
-
|
|
577
|
+
if (message.key !== "") {
|
|
578
|
+
obj.key = message.key;
|
|
579
|
+
}
|
|
580
|
+
if (message.value !== "") {
|
|
581
|
+
obj.value = message.value;
|
|
582
|
+
}
|
|
550
583
|
return obj;
|
|
551
584
|
},
|
|
552
585
|
create(base) {
|
|
@@ -623,9 +656,9 @@ exports.TransformedData = {
|
|
|
623
656
|
},
|
|
624
657
|
fromJSON(object) {
|
|
625
658
|
return {
|
|
626
|
-
crudType: isSet(object.crudType) ? String(object.crudType) : "",
|
|
627
|
-
tenantId: isSet(object.tenantId) ? String(object.tenantId) : "",
|
|
628
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
659
|
+
crudType: isSet(object.crudType) ? globalThis.String(object.crudType) : "",
|
|
660
|
+
tenantId: isSet(object.tenantId) ? globalThis.String(object.tenantId) : "",
|
|
661
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
629
662
|
data: isObject(object.data)
|
|
630
663
|
? Object.entries(object.data).reduce((acc, [key, value]) => {
|
|
631
664
|
acc[key] = String(value);
|
|
@@ -636,14 +669,23 @@ exports.TransformedData = {
|
|
|
636
669
|
},
|
|
637
670
|
toJSON(message) {
|
|
638
671
|
const obj = {};
|
|
639
|
-
message.crudType !==
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
672
|
+
if (message.crudType !== "") {
|
|
673
|
+
obj.crudType = message.crudType;
|
|
674
|
+
}
|
|
675
|
+
if (message.tenantId !== "") {
|
|
676
|
+
obj.tenantId = message.tenantId;
|
|
677
|
+
}
|
|
678
|
+
if (message.id !== "") {
|
|
679
|
+
obj.id = message.id;
|
|
680
|
+
}
|
|
643
681
|
if (message.data) {
|
|
644
|
-
Object.entries(message.data)
|
|
645
|
-
|
|
646
|
-
|
|
682
|
+
const entries = Object.entries(message.data);
|
|
683
|
+
if (entries.length > 0) {
|
|
684
|
+
obj.data = {};
|
|
685
|
+
entries.forEach(([k, v]) => {
|
|
686
|
+
obj.data[k] = v;
|
|
687
|
+
});
|
|
688
|
+
}
|
|
647
689
|
}
|
|
648
690
|
return obj;
|
|
649
691
|
},
|
|
@@ -658,7 +700,7 @@ exports.TransformedData = {
|
|
|
658
700
|
message.id = (_c = object.id) !== null && _c !== void 0 ? _c : "";
|
|
659
701
|
message.data = Object.entries((_d = object.data) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
|
|
660
702
|
if (value !== undefined) {
|
|
661
|
-
acc[key] = String(value);
|
|
703
|
+
acc[key] = globalThis.String(value);
|
|
662
704
|
}
|
|
663
705
|
return acc;
|
|
664
706
|
}, {});
|
|
@@ -706,12 +748,19 @@ exports.TransformedData_DataEntry = {
|
|
|
706
748
|
return message;
|
|
707
749
|
},
|
|
708
750
|
fromJSON(object) {
|
|
709
|
-
return {
|
|
751
|
+
return {
|
|
752
|
+
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
753
|
+
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
754
|
+
};
|
|
710
755
|
},
|
|
711
756
|
toJSON(message) {
|
|
712
757
|
const obj = {};
|
|
713
|
-
message.key !==
|
|
714
|
-
|
|
758
|
+
if (message.key !== "") {
|
|
759
|
+
obj.key = message.key;
|
|
760
|
+
}
|
|
761
|
+
if (message.value !== "") {
|
|
762
|
+
obj.value = message.value;
|
|
763
|
+
}
|
|
715
764
|
return obj;
|
|
716
765
|
},
|
|
717
766
|
create(base) {
|
|
@@ -725,26 +774,8 @@ exports.TransformedData_DataEntry = {
|
|
|
725
774
|
return message;
|
|
726
775
|
},
|
|
727
776
|
};
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
return globalThis;
|
|
731
|
-
}
|
|
732
|
-
if (typeof self !== "undefined") {
|
|
733
|
-
return self;
|
|
734
|
-
}
|
|
735
|
-
if (typeof window !== "undefined") {
|
|
736
|
-
return window;
|
|
737
|
-
}
|
|
738
|
-
if (typeof global !== "undefined") {
|
|
739
|
-
return global;
|
|
740
|
-
}
|
|
741
|
-
throw "Unable to locate global object";
|
|
742
|
-
})();
|
|
743
|
-
function longToNumber(long) {
|
|
744
|
-
if (long.gt(Number.MAX_SAFE_INTEGER)) {
|
|
745
|
-
throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
746
|
-
}
|
|
747
|
-
return long.toNumber();
|
|
777
|
+
function longToString(long) {
|
|
778
|
+
return long.toString();
|
|
748
779
|
}
|
|
749
780
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
750
781
|
minimal_1.default.util.Long = long_1.default;
|
|
@@ -44,12 +44,12 @@ export interface RegisterMigrationResponse {
|
|
|
44
44
|
}
|
|
45
45
|
export interface FinishMigrationRequest {
|
|
46
46
|
status: {
|
|
47
|
-
[key: string]:
|
|
47
|
+
[key: string]: string;
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
50
|
export interface FinishMigrationRequest_StatusEntry {
|
|
51
51
|
key: string;
|
|
52
|
-
value:
|
|
52
|
+
value: string;
|
|
53
53
|
}
|
|
54
54
|
export interface FinishMigrationResponse {
|
|
55
55
|
}
|
|
@@ -194,7 +194,7 @@ export declare const GetMigrationStatusResponse: {
|
|
|
194
194
|
fromPartial(object: DeepPartial<GetMigrationStatusResponse>): GetMigrationStatusResponse;
|
|
195
195
|
};
|
|
196
196
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
197
|
-
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 {
|
|
197
|
+
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 {
|
|
198
198
|
$case: string;
|
|
199
199
|
} ? {
|
|
200
200
|
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|