@fraym/proto 0.29.0 → 0.30.0-alpha.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/package.json +12 -18
- package/freym/auth/management/migration.d.ts +0 -68
- package/freym/auth/management/migration.js +0 -509
- package/freym/auth/management/role_delete.d.ts +0 -31
- package/freym/auth/management/role_delete.js +0 -132
- package/freym/auth/management/role_upsert.d.ts +0 -33
- package/freym/auth/management/role_upsert.js +0 -165
- package/freym/auth/management/roles_get.d.ts +0 -35
- package/freym/auth/management/roles_get.js +0 -186
- package/freym/auth/management/service.d.ts +0 -165
- package/freym/auth/management/service.js +0 -115
- package/freym/auth/management/shared.d.ts +0 -33
- package/freym/auth/management/shared.js +0 -176
- package/freym/auth/management/user_create.d.ts +0 -39
- package/freym/auth/management/user_create.js +0 -269
- package/freym/auth/management/user_delete.d.ts +0 -31
- package/freym/auth/management/user_delete.js +0 -132
- package/freym/auth/management/user_update.d.ts +0 -38
- package/freym/auth/management/user_update.js +0 -251
- package/freym/auth/management/users_get.d.ts +0 -41
- package/freym/auth/management/users_get.js +0 -300
- package/freym/auth/management.d.ts +0 -10
- package/freym/auth/management.js +0 -43
- package/freym/crud/delivery/clone.d.ts +0 -58
- package/freym/crud/delivery/clone.js +0 -494
- package/freym/crud/delivery/create.d.ts +0 -57
- package/freym/crud/delivery/create.js +0 -479
- package/freym/crud/delivery/delete.d.ts +0 -34
- package/freym/crud/delivery/delete.js +0 -183
- package/freym/crud/delivery/get_data.d.ts +0 -74
- package/freym/crud/delivery/get_data.js +0 -762
- package/freym/crud/delivery/service.d.ts +0 -97
- package/freym/crud/delivery/service.js +0 -67
- package/freym/crud/delivery/shared.d.ts +0 -60
- package/freym/crud/delivery/shared.js +0 -542
- package/freym/crud/delivery/update.d.ts +0 -57
- package/freym/crud/delivery/update.js +0 -479
- package/freym/crud/delivery.d.ts +0 -7
- package/freym/crud/delivery.js +0 -43
- package/freym/crud/management/migration.d.ts +0 -98
- package/freym/crud/management/migration.js +0 -945
- package/freym/crud/management/service.d.ts +0 -67
- package/freym/crud/management/service.js +0 -45
- package/freym/crud/management.d.ts +0 -2
- package/freym/crud/management.js +0 -21
- package/freym/index.d.ts +0 -0
- package/freym/index.js +0 -1
- package/freym/migrations/management/confirm.d.ts +0 -28
- package/freym/migrations/management/confirm.js +0 -97
- package/freym/migrations/management/create.d.ts +0 -88
- package/freym/migrations/management/create.js +0 -858
- package/freym/migrations/management/deployment.d.ts +0 -34
- package/freym/migrations/management/deployment.js +0 -186
- package/freym/migrations/management/rollback.d.ts +0 -28
- package/freym/migrations/management/rollback.js +0 -97
- package/freym/migrations/management/service.d.ts +0 -70
- package/freym/migrations/management/service.js +0 -48
- package/freym/migrations/management.d.ts +0 -5
- package/freym/migrations/management.js +0 -27
- package/freym/projections/delivery/delete.d.ts +0 -34
- package/freym/projections/delivery/delete.js +0 -183
- package/freym/projections/delivery/get_data.d.ts +0 -58
- package/freym/projections/delivery/get_data.js +0 -548
- package/freym/projections/delivery/get_view_data.d.ts +0 -50
- package/freym/projections/delivery/get_view_data.js +0 -422
- package/freym/projections/delivery/service.d.ts +0 -96
- package/freym/projections/delivery/service.js +0 -66
- package/freym/projections/delivery/shared.d.ts +0 -76
- package/freym/projections/delivery/shared.js +0 -753
- package/freym/projections/delivery/upsert.d.ts +0 -58
- package/freym/projections/delivery/upsert.js +0 -494
- package/freym/projections/delivery.d.ts +0 -6
- package/freym/projections/delivery.js +0 -36
- package/freym/projections/management/migration.d.ts +0 -107
- package/freym/projections/management/migration.js +0 -1089
- package/freym/projections/management/service.d.ts +0 -67
- package/freym/projections/management/service.js +0 -45
- package/freym/projections/management.d.ts +0 -2
- package/freym/projections/management.js +0 -23
- package/freym/streams/management/backchannel.d.ts +0 -35
- package/freym/streams/management/backchannel.js +0 -134
- package/freym/streams/management/event.d.ts +0 -80
- package/freym/streams/management/event.js +0 -849
- package/freym/streams/management/gdpr.d.ts +0 -43
- package/freym/streams/management/gdpr.js +0 -310
- package/freym/streams/management/paginate.d.ts +0 -72
- package/freym/streams/management/paginate.js +0 -709
- package/freym/streams/management/publish.d.ts +0 -59
- package/freym/streams/management/publish.js +0 -536
- package/freym/streams/management/service.d.ts +0 -204
- package/freym/streams/management/service.js +0 -142
- package/freym/streams/management/snapshot.d.ts +0 -34
- package/freym/streams/management/snapshot.js +0 -186
- package/freym/streams/management/stream.d.ts +0 -31
- package/freym/streams/management/stream.js +0 -144
- package/freym/streams/management/subscribe.d.ts +0 -70
- package/freym/streams/management/subscribe.js +0 -550
- package/freym/streams/management.d.ts +0 -9
- package/freym/streams/management.js +0 -54
- package/freym/sync/management/lease.d.ts +0 -62
- package/freym/sync/management/lease.js +0 -574
- package/freym/sync/management/lock.d.ts +0 -59
- package/freym/sync/management/lock.js +0 -522
- package/freym/sync/management/peer_nodes.d.ts +0 -29
- package/freym/sync/management/peer_nodes.js +0 -117
- package/freym/sync/management/service.d.ts +0 -120
- package/freym/sync/management/service.js +0 -83
- package/freym/sync/management.d.ts +0 -4
- package/freym/sync/management.js +0 -27
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { AuthData, EventMetadata } from "./shared";
|
|
3
|
-
export declare const protobufPackage = "freym.crud.delivery";
|
|
4
|
-
export interface CloneRequest {
|
|
5
|
-
type: string;
|
|
6
|
-
auth: AuthData | undefined;
|
|
7
|
-
id: string;
|
|
8
|
-
newId: string;
|
|
9
|
-
data: {
|
|
10
|
-
[key: string]: string;
|
|
11
|
-
};
|
|
12
|
-
eventMetadata: EventMetadata | undefined;
|
|
13
|
-
}
|
|
14
|
-
export interface CloneRequest_DataEntry {
|
|
15
|
-
key: string;
|
|
16
|
-
value: string;
|
|
17
|
-
}
|
|
18
|
-
export interface CloneResponse {
|
|
19
|
-
newData: {
|
|
20
|
-
[key: string]: string;
|
|
21
|
-
};
|
|
22
|
-
validationErrors: string[];
|
|
23
|
-
fieldValidationErrors: {
|
|
24
|
-
[key: string]: string;
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
export interface CloneResponse_NewDataEntry {
|
|
28
|
-
key: string;
|
|
29
|
-
value: string;
|
|
30
|
-
}
|
|
31
|
-
export interface CloneResponse_FieldValidationErrorsEntry {
|
|
32
|
-
key: string;
|
|
33
|
-
value: string;
|
|
34
|
-
}
|
|
35
|
-
export declare const CloneRequest: MessageFns<CloneRequest>;
|
|
36
|
-
export declare const CloneRequest_DataEntry: MessageFns<CloneRequest_DataEntry>;
|
|
37
|
-
export declare const CloneResponse: MessageFns<CloneResponse>;
|
|
38
|
-
export declare const CloneResponse_NewDataEntry: MessageFns<CloneResponse_NewDataEntry>;
|
|
39
|
-
export declare const CloneResponse_FieldValidationErrorsEntry: MessageFns<CloneResponse_FieldValidationErrorsEntry>;
|
|
40
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
41
|
-
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 {
|
|
42
|
-
$case: string;
|
|
43
|
-
} ? {
|
|
44
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
45
|
-
} & {
|
|
46
|
-
$case: T["$case"];
|
|
47
|
-
} : T extends {} ? {
|
|
48
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
49
|
-
} : Partial<T>;
|
|
50
|
-
export interface MessageFns<T> {
|
|
51
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
52
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
53
|
-
fromJSON(object: any): T;
|
|
54
|
-
toJSON(message: T): unknown;
|
|
55
|
-
create(base?: DeepPartial<T>): T;
|
|
56
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
57
|
-
}
|
|
58
|
-
export {};
|
|
@@ -1,494 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CloneResponse_FieldValidationErrorsEntry = exports.CloneResponse_NewDataEntry = exports.CloneResponse = exports.CloneRequest_DataEntry = exports.CloneRequest = exports.protobufPackage = void 0;
|
|
4
|
-
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
5
|
-
const shared_1 = require("./shared");
|
|
6
|
-
exports.protobufPackage = "freym.crud.delivery";
|
|
7
|
-
function createBaseCloneRequest() {
|
|
8
|
-
return { type: "", auth: undefined, id: "", newId: "", data: {}, eventMetadata: undefined };
|
|
9
|
-
}
|
|
10
|
-
exports.CloneRequest = {
|
|
11
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
12
|
-
if (message.type !== "") {
|
|
13
|
-
writer.uint32(10).string(message.type);
|
|
14
|
-
}
|
|
15
|
-
if (message.auth !== undefined) {
|
|
16
|
-
shared_1.AuthData.encode(message.auth, writer.uint32(18).fork()).join();
|
|
17
|
-
}
|
|
18
|
-
if (message.id !== "") {
|
|
19
|
-
writer.uint32(26).string(message.id);
|
|
20
|
-
}
|
|
21
|
-
if (message.newId !== "") {
|
|
22
|
-
writer.uint32(34).string(message.newId);
|
|
23
|
-
}
|
|
24
|
-
Object.entries(message.data).forEach(([key, value]) => {
|
|
25
|
-
exports.CloneRequest_DataEntry.encode({ key: key, value }, writer.uint32(42).fork()).join();
|
|
26
|
-
});
|
|
27
|
-
if (message.eventMetadata !== undefined) {
|
|
28
|
-
shared_1.EventMetadata.encode(message.eventMetadata, writer.uint32(50).fork()).join();
|
|
29
|
-
}
|
|
30
|
-
return writer;
|
|
31
|
-
},
|
|
32
|
-
decode(input, length) {
|
|
33
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
34
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
35
|
-
const message = createBaseCloneRequest();
|
|
36
|
-
while (reader.pos < end) {
|
|
37
|
-
const tag = reader.uint32();
|
|
38
|
-
switch (tag >>> 3) {
|
|
39
|
-
case 1: {
|
|
40
|
-
if (tag !== 10) {
|
|
41
|
-
break;
|
|
42
|
-
}
|
|
43
|
-
message.type = reader.string();
|
|
44
|
-
continue;
|
|
45
|
-
}
|
|
46
|
-
case 2: {
|
|
47
|
-
if (tag !== 18) {
|
|
48
|
-
break;
|
|
49
|
-
}
|
|
50
|
-
message.auth = shared_1.AuthData.decode(reader, reader.uint32());
|
|
51
|
-
continue;
|
|
52
|
-
}
|
|
53
|
-
case 3: {
|
|
54
|
-
if (tag !== 26) {
|
|
55
|
-
break;
|
|
56
|
-
}
|
|
57
|
-
message.id = reader.string();
|
|
58
|
-
continue;
|
|
59
|
-
}
|
|
60
|
-
case 4: {
|
|
61
|
-
if (tag !== 34) {
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
message.newId = reader.string();
|
|
65
|
-
continue;
|
|
66
|
-
}
|
|
67
|
-
case 5: {
|
|
68
|
-
if (tag !== 42) {
|
|
69
|
-
break;
|
|
70
|
-
}
|
|
71
|
-
const entry5 = exports.CloneRequest_DataEntry.decode(reader, reader.uint32());
|
|
72
|
-
if (entry5.value !== undefined) {
|
|
73
|
-
message.data[entry5.key] = entry5.value;
|
|
74
|
-
}
|
|
75
|
-
continue;
|
|
76
|
-
}
|
|
77
|
-
case 6: {
|
|
78
|
-
if (tag !== 50) {
|
|
79
|
-
break;
|
|
80
|
-
}
|
|
81
|
-
message.eventMetadata = shared_1.EventMetadata.decode(reader, reader.uint32());
|
|
82
|
-
continue;
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
86
|
-
break;
|
|
87
|
-
}
|
|
88
|
-
reader.skip(tag & 7);
|
|
89
|
-
}
|
|
90
|
-
return message;
|
|
91
|
-
},
|
|
92
|
-
fromJSON(object) {
|
|
93
|
-
return {
|
|
94
|
-
type: isSet(object.type) ? globalThis.String(object.type) : "",
|
|
95
|
-
auth: isSet(object.auth) ? shared_1.AuthData.fromJSON(object.auth) : undefined,
|
|
96
|
-
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
97
|
-
newId: isSet(object.newId) ? globalThis.String(object.newId) : "",
|
|
98
|
-
data: isObject(object.data)
|
|
99
|
-
? Object.entries(object.data).reduce((acc, [key, value]) => {
|
|
100
|
-
acc[key] = String(value);
|
|
101
|
-
return acc;
|
|
102
|
-
}, {})
|
|
103
|
-
: {},
|
|
104
|
-
eventMetadata: isSet(object.eventMetadata) ? shared_1.EventMetadata.fromJSON(object.eventMetadata) : undefined,
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
toJSON(message) {
|
|
108
|
-
const obj = {};
|
|
109
|
-
if (message.type !== "") {
|
|
110
|
-
obj.type = message.type;
|
|
111
|
-
}
|
|
112
|
-
if (message.auth !== undefined) {
|
|
113
|
-
obj.auth = shared_1.AuthData.toJSON(message.auth);
|
|
114
|
-
}
|
|
115
|
-
if (message.id !== "") {
|
|
116
|
-
obj.id = message.id;
|
|
117
|
-
}
|
|
118
|
-
if (message.newId !== "") {
|
|
119
|
-
obj.newId = message.newId;
|
|
120
|
-
}
|
|
121
|
-
if (message.data) {
|
|
122
|
-
const entries = Object.entries(message.data);
|
|
123
|
-
if (entries.length > 0) {
|
|
124
|
-
obj.data = {};
|
|
125
|
-
entries.forEach(([k, v]) => {
|
|
126
|
-
obj.data[k] = v;
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
if (message.eventMetadata !== undefined) {
|
|
131
|
-
obj.eventMetadata = shared_1.EventMetadata.toJSON(message.eventMetadata);
|
|
132
|
-
}
|
|
133
|
-
return obj;
|
|
134
|
-
},
|
|
135
|
-
create(base) {
|
|
136
|
-
return exports.CloneRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
137
|
-
},
|
|
138
|
-
fromPartial(object) {
|
|
139
|
-
var _a, _b, _c, _d;
|
|
140
|
-
const message = createBaseCloneRequest();
|
|
141
|
-
message.type = (_a = object.type) !== null && _a !== void 0 ? _a : "";
|
|
142
|
-
message.auth = (object.auth !== undefined && object.auth !== null) ? shared_1.AuthData.fromPartial(object.auth) : undefined;
|
|
143
|
-
message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
|
|
144
|
-
message.newId = (_c = object.newId) !== null && _c !== void 0 ? _c : "";
|
|
145
|
-
message.data = Object.entries((_d = object.data) !== null && _d !== void 0 ? _d : {}).reduce((acc, [key, value]) => {
|
|
146
|
-
if (value !== undefined) {
|
|
147
|
-
acc[key] = globalThis.String(value);
|
|
148
|
-
}
|
|
149
|
-
return acc;
|
|
150
|
-
}, {});
|
|
151
|
-
message.eventMetadata = (object.eventMetadata !== undefined && object.eventMetadata !== null)
|
|
152
|
-
? shared_1.EventMetadata.fromPartial(object.eventMetadata)
|
|
153
|
-
: undefined;
|
|
154
|
-
return message;
|
|
155
|
-
},
|
|
156
|
-
};
|
|
157
|
-
function createBaseCloneRequest_DataEntry() {
|
|
158
|
-
return { key: "", value: "" };
|
|
159
|
-
}
|
|
160
|
-
exports.CloneRequest_DataEntry = {
|
|
161
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
162
|
-
if (message.key !== "") {
|
|
163
|
-
writer.uint32(10).string(message.key);
|
|
164
|
-
}
|
|
165
|
-
if (message.value !== "") {
|
|
166
|
-
writer.uint32(18).string(message.value);
|
|
167
|
-
}
|
|
168
|
-
return writer;
|
|
169
|
-
},
|
|
170
|
-
decode(input, length) {
|
|
171
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
172
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
173
|
-
const message = createBaseCloneRequest_DataEntry();
|
|
174
|
-
while (reader.pos < end) {
|
|
175
|
-
const tag = reader.uint32();
|
|
176
|
-
switch (tag >>> 3) {
|
|
177
|
-
case 1: {
|
|
178
|
-
if (tag !== 10) {
|
|
179
|
-
break;
|
|
180
|
-
}
|
|
181
|
-
message.key = reader.string();
|
|
182
|
-
continue;
|
|
183
|
-
}
|
|
184
|
-
case 2: {
|
|
185
|
-
if (tag !== 18) {
|
|
186
|
-
break;
|
|
187
|
-
}
|
|
188
|
-
message.value = reader.string();
|
|
189
|
-
continue;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
193
|
-
break;
|
|
194
|
-
}
|
|
195
|
-
reader.skip(tag & 7);
|
|
196
|
-
}
|
|
197
|
-
return message;
|
|
198
|
-
},
|
|
199
|
-
fromJSON(object) {
|
|
200
|
-
return {
|
|
201
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
202
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
203
|
-
};
|
|
204
|
-
},
|
|
205
|
-
toJSON(message) {
|
|
206
|
-
const obj = {};
|
|
207
|
-
if (message.key !== "") {
|
|
208
|
-
obj.key = message.key;
|
|
209
|
-
}
|
|
210
|
-
if (message.value !== "") {
|
|
211
|
-
obj.value = message.value;
|
|
212
|
-
}
|
|
213
|
-
return obj;
|
|
214
|
-
},
|
|
215
|
-
create(base) {
|
|
216
|
-
return exports.CloneRequest_DataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
217
|
-
},
|
|
218
|
-
fromPartial(object) {
|
|
219
|
-
var _a, _b;
|
|
220
|
-
const message = createBaseCloneRequest_DataEntry();
|
|
221
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
222
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
223
|
-
return message;
|
|
224
|
-
},
|
|
225
|
-
};
|
|
226
|
-
function createBaseCloneResponse() {
|
|
227
|
-
return { newData: {}, validationErrors: [], fieldValidationErrors: {} };
|
|
228
|
-
}
|
|
229
|
-
exports.CloneResponse = {
|
|
230
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
231
|
-
Object.entries(message.newData).forEach(([key, value]) => {
|
|
232
|
-
exports.CloneResponse_NewDataEntry.encode({ key: key, value }, writer.uint32(10).fork()).join();
|
|
233
|
-
});
|
|
234
|
-
for (const v of message.validationErrors) {
|
|
235
|
-
writer.uint32(18).string(v);
|
|
236
|
-
}
|
|
237
|
-
Object.entries(message.fieldValidationErrors).forEach(([key, value]) => {
|
|
238
|
-
exports.CloneResponse_FieldValidationErrorsEntry.encode({ key: key, value }, writer.uint32(26).fork()).join();
|
|
239
|
-
});
|
|
240
|
-
return writer;
|
|
241
|
-
},
|
|
242
|
-
decode(input, length) {
|
|
243
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
244
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
245
|
-
const message = createBaseCloneResponse();
|
|
246
|
-
while (reader.pos < end) {
|
|
247
|
-
const tag = reader.uint32();
|
|
248
|
-
switch (tag >>> 3) {
|
|
249
|
-
case 1: {
|
|
250
|
-
if (tag !== 10) {
|
|
251
|
-
break;
|
|
252
|
-
}
|
|
253
|
-
const entry1 = exports.CloneResponse_NewDataEntry.decode(reader, reader.uint32());
|
|
254
|
-
if (entry1.value !== undefined) {
|
|
255
|
-
message.newData[entry1.key] = entry1.value;
|
|
256
|
-
}
|
|
257
|
-
continue;
|
|
258
|
-
}
|
|
259
|
-
case 2: {
|
|
260
|
-
if (tag !== 18) {
|
|
261
|
-
break;
|
|
262
|
-
}
|
|
263
|
-
message.validationErrors.push(reader.string());
|
|
264
|
-
continue;
|
|
265
|
-
}
|
|
266
|
-
case 3: {
|
|
267
|
-
if (tag !== 26) {
|
|
268
|
-
break;
|
|
269
|
-
}
|
|
270
|
-
const entry3 = exports.CloneResponse_FieldValidationErrorsEntry.decode(reader, reader.uint32());
|
|
271
|
-
if (entry3.value !== undefined) {
|
|
272
|
-
message.fieldValidationErrors[entry3.key] = entry3.value;
|
|
273
|
-
}
|
|
274
|
-
continue;
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
278
|
-
break;
|
|
279
|
-
}
|
|
280
|
-
reader.skip(tag & 7);
|
|
281
|
-
}
|
|
282
|
-
return message;
|
|
283
|
-
},
|
|
284
|
-
fromJSON(object) {
|
|
285
|
-
return {
|
|
286
|
-
newData: isObject(object.newData)
|
|
287
|
-
? Object.entries(object.newData).reduce((acc, [key, value]) => {
|
|
288
|
-
acc[key] = String(value);
|
|
289
|
-
return acc;
|
|
290
|
-
}, {})
|
|
291
|
-
: {},
|
|
292
|
-
validationErrors: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.validationErrors)
|
|
293
|
-
? object.validationErrors.map((e) => globalThis.String(e))
|
|
294
|
-
: [],
|
|
295
|
-
fieldValidationErrors: isObject(object.fieldValidationErrors)
|
|
296
|
-
? Object.entries(object.fieldValidationErrors).reduce((acc, [key, value]) => {
|
|
297
|
-
acc[key] = String(value);
|
|
298
|
-
return acc;
|
|
299
|
-
}, {})
|
|
300
|
-
: {},
|
|
301
|
-
};
|
|
302
|
-
},
|
|
303
|
-
toJSON(message) {
|
|
304
|
-
var _a;
|
|
305
|
-
const obj = {};
|
|
306
|
-
if (message.newData) {
|
|
307
|
-
const entries = Object.entries(message.newData);
|
|
308
|
-
if (entries.length > 0) {
|
|
309
|
-
obj.newData = {};
|
|
310
|
-
entries.forEach(([k, v]) => {
|
|
311
|
-
obj.newData[k] = v;
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
if ((_a = message.validationErrors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
316
|
-
obj.validationErrors = message.validationErrors;
|
|
317
|
-
}
|
|
318
|
-
if (message.fieldValidationErrors) {
|
|
319
|
-
const entries = Object.entries(message.fieldValidationErrors);
|
|
320
|
-
if (entries.length > 0) {
|
|
321
|
-
obj.fieldValidationErrors = {};
|
|
322
|
-
entries.forEach(([k, v]) => {
|
|
323
|
-
obj.fieldValidationErrors[k] = v;
|
|
324
|
-
});
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
return obj;
|
|
328
|
-
},
|
|
329
|
-
create(base) {
|
|
330
|
-
return exports.CloneResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
331
|
-
},
|
|
332
|
-
fromPartial(object) {
|
|
333
|
-
var _a, _b, _c;
|
|
334
|
-
const message = createBaseCloneResponse();
|
|
335
|
-
message.newData = Object.entries((_a = object.newData) !== null && _a !== void 0 ? _a : {}).reduce((acc, [key, value]) => {
|
|
336
|
-
if (value !== undefined) {
|
|
337
|
-
acc[key] = globalThis.String(value);
|
|
338
|
-
}
|
|
339
|
-
return acc;
|
|
340
|
-
}, {});
|
|
341
|
-
message.validationErrors = ((_b = object.validationErrors) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
342
|
-
message.fieldValidationErrors = Object.entries((_c = object.fieldValidationErrors) !== null && _c !== void 0 ? _c : {}).reduce((acc, [key, value]) => {
|
|
343
|
-
if (value !== undefined) {
|
|
344
|
-
acc[key] = globalThis.String(value);
|
|
345
|
-
}
|
|
346
|
-
return acc;
|
|
347
|
-
}, {});
|
|
348
|
-
return message;
|
|
349
|
-
},
|
|
350
|
-
};
|
|
351
|
-
function createBaseCloneResponse_NewDataEntry() {
|
|
352
|
-
return { key: "", value: "" };
|
|
353
|
-
}
|
|
354
|
-
exports.CloneResponse_NewDataEntry = {
|
|
355
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
356
|
-
if (message.key !== "") {
|
|
357
|
-
writer.uint32(10).string(message.key);
|
|
358
|
-
}
|
|
359
|
-
if (message.value !== "") {
|
|
360
|
-
writer.uint32(18).string(message.value);
|
|
361
|
-
}
|
|
362
|
-
return writer;
|
|
363
|
-
},
|
|
364
|
-
decode(input, length) {
|
|
365
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
366
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
367
|
-
const message = createBaseCloneResponse_NewDataEntry();
|
|
368
|
-
while (reader.pos < end) {
|
|
369
|
-
const tag = reader.uint32();
|
|
370
|
-
switch (tag >>> 3) {
|
|
371
|
-
case 1: {
|
|
372
|
-
if (tag !== 10) {
|
|
373
|
-
break;
|
|
374
|
-
}
|
|
375
|
-
message.key = reader.string();
|
|
376
|
-
continue;
|
|
377
|
-
}
|
|
378
|
-
case 2: {
|
|
379
|
-
if (tag !== 18) {
|
|
380
|
-
break;
|
|
381
|
-
}
|
|
382
|
-
message.value = reader.string();
|
|
383
|
-
continue;
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
387
|
-
break;
|
|
388
|
-
}
|
|
389
|
-
reader.skip(tag & 7);
|
|
390
|
-
}
|
|
391
|
-
return message;
|
|
392
|
-
},
|
|
393
|
-
fromJSON(object) {
|
|
394
|
-
return {
|
|
395
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
396
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
397
|
-
};
|
|
398
|
-
},
|
|
399
|
-
toJSON(message) {
|
|
400
|
-
const obj = {};
|
|
401
|
-
if (message.key !== "") {
|
|
402
|
-
obj.key = message.key;
|
|
403
|
-
}
|
|
404
|
-
if (message.value !== "") {
|
|
405
|
-
obj.value = message.value;
|
|
406
|
-
}
|
|
407
|
-
return obj;
|
|
408
|
-
},
|
|
409
|
-
create(base) {
|
|
410
|
-
return exports.CloneResponse_NewDataEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
411
|
-
},
|
|
412
|
-
fromPartial(object) {
|
|
413
|
-
var _a, _b;
|
|
414
|
-
const message = createBaseCloneResponse_NewDataEntry();
|
|
415
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
416
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
417
|
-
return message;
|
|
418
|
-
},
|
|
419
|
-
};
|
|
420
|
-
function createBaseCloneResponse_FieldValidationErrorsEntry() {
|
|
421
|
-
return { key: "", value: "" };
|
|
422
|
-
}
|
|
423
|
-
exports.CloneResponse_FieldValidationErrorsEntry = {
|
|
424
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
425
|
-
if (message.key !== "") {
|
|
426
|
-
writer.uint32(10).string(message.key);
|
|
427
|
-
}
|
|
428
|
-
if (message.value !== "") {
|
|
429
|
-
writer.uint32(18).string(message.value);
|
|
430
|
-
}
|
|
431
|
-
return writer;
|
|
432
|
-
},
|
|
433
|
-
decode(input, length) {
|
|
434
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
435
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
436
|
-
const message = createBaseCloneResponse_FieldValidationErrorsEntry();
|
|
437
|
-
while (reader.pos < end) {
|
|
438
|
-
const tag = reader.uint32();
|
|
439
|
-
switch (tag >>> 3) {
|
|
440
|
-
case 1: {
|
|
441
|
-
if (tag !== 10) {
|
|
442
|
-
break;
|
|
443
|
-
}
|
|
444
|
-
message.key = reader.string();
|
|
445
|
-
continue;
|
|
446
|
-
}
|
|
447
|
-
case 2: {
|
|
448
|
-
if (tag !== 18) {
|
|
449
|
-
break;
|
|
450
|
-
}
|
|
451
|
-
message.value = reader.string();
|
|
452
|
-
continue;
|
|
453
|
-
}
|
|
454
|
-
}
|
|
455
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
456
|
-
break;
|
|
457
|
-
}
|
|
458
|
-
reader.skip(tag & 7);
|
|
459
|
-
}
|
|
460
|
-
return message;
|
|
461
|
-
},
|
|
462
|
-
fromJSON(object) {
|
|
463
|
-
return {
|
|
464
|
-
key: isSet(object.key) ? globalThis.String(object.key) : "",
|
|
465
|
-
value: isSet(object.value) ? globalThis.String(object.value) : "",
|
|
466
|
-
};
|
|
467
|
-
},
|
|
468
|
-
toJSON(message) {
|
|
469
|
-
const obj = {};
|
|
470
|
-
if (message.key !== "") {
|
|
471
|
-
obj.key = message.key;
|
|
472
|
-
}
|
|
473
|
-
if (message.value !== "") {
|
|
474
|
-
obj.value = message.value;
|
|
475
|
-
}
|
|
476
|
-
return obj;
|
|
477
|
-
},
|
|
478
|
-
create(base) {
|
|
479
|
-
return exports.CloneResponse_FieldValidationErrorsEntry.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
480
|
-
},
|
|
481
|
-
fromPartial(object) {
|
|
482
|
-
var _a, _b;
|
|
483
|
-
const message = createBaseCloneResponse_FieldValidationErrorsEntry();
|
|
484
|
-
message.key = (_a = object.key) !== null && _a !== void 0 ? _a : "";
|
|
485
|
-
message.value = (_b = object.value) !== null && _b !== void 0 ? _b : "";
|
|
486
|
-
return message;
|
|
487
|
-
},
|
|
488
|
-
};
|
|
489
|
-
function isObject(value) {
|
|
490
|
-
return typeof value === "object" && value !== null;
|
|
491
|
-
}
|
|
492
|
-
function isSet(value) {
|
|
493
|
-
return value !== null && value !== undefined;
|
|
494
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { AuthData, EventMetadata } from "./shared";
|
|
3
|
-
export declare const protobufPackage = "freym.crud.delivery";
|
|
4
|
-
export interface CreateRequest {
|
|
5
|
-
type: string;
|
|
6
|
-
auth: AuthData | undefined;
|
|
7
|
-
id: string;
|
|
8
|
-
data: {
|
|
9
|
-
[key: string]: string;
|
|
10
|
-
};
|
|
11
|
-
eventMetadata: EventMetadata | undefined;
|
|
12
|
-
}
|
|
13
|
-
export interface CreateRequest_DataEntry {
|
|
14
|
-
key: string;
|
|
15
|
-
value: string;
|
|
16
|
-
}
|
|
17
|
-
export interface CreateResponse {
|
|
18
|
-
newData: {
|
|
19
|
-
[key: string]: string;
|
|
20
|
-
};
|
|
21
|
-
validationErrors: string[];
|
|
22
|
-
fieldValidationErrors: {
|
|
23
|
-
[key: string]: string;
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
export interface CreateResponse_NewDataEntry {
|
|
27
|
-
key: string;
|
|
28
|
-
value: string;
|
|
29
|
-
}
|
|
30
|
-
export interface CreateResponse_FieldValidationErrorsEntry {
|
|
31
|
-
key: string;
|
|
32
|
-
value: string;
|
|
33
|
-
}
|
|
34
|
-
export declare const CreateRequest: MessageFns<CreateRequest>;
|
|
35
|
-
export declare const CreateRequest_DataEntry: MessageFns<CreateRequest_DataEntry>;
|
|
36
|
-
export declare const CreateResponse: MessageFns<CreateResponse>;
|
|
37
|
-
export declare const CreateResponse_NewDataEntry: MessageFns<CreateResponse_NewDataEntry>;
|
|
38
|
-
export declare const CreateResponse_FieldValidationErrorsEntry: MessageFns<CreateResponse_FieldValidationErrorsEntry>;
|
|
39
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
40
|
-
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 {
|
|
41
|
-
$case: string;
|
|
42
|
-
} ? {
|
|
43
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
44
|
-
} & {
|
|
45
|
-
$case: T["$case"];
|
|
46
|
-
} : T extends {} ? {
|
|
47
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
48
|
-
} : Partial<T>;
|
|
49
|
-
export interface MessageFns<T> {
|
|
50
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
51
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
52
|
-
fromJSON(object: any): T;
|
|
53
|
-
toJSON(message: T): unknown;
|
|
54
|
-
create(base?: DeepPartial<T>): T;
|
|
55
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
56
|
-
}
|
|
57
|
-
export {};
|