@cratis/chronicle.contracts 19.149.0 → 19.150.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/dist/cjs/generated/descriptorSet.js +1 -1
- package/dist/cjs/generated/descriptorSet.js.map +1 -1
- package/dist/cjs/generated/index.d.ts +1 -1
- package/dist/cjs/generated/index.d.ts.map +1 -1
- package/dist/cjs/generated/projections.d.ts +22 -0
- package/dist/cjs/generated/projections.d.ts.map +1 -1
- package/dist/cjs/generated/projections.js +184 -0
- package/dist/cjs/generated/projections.js.map +1 -1
- package/dist/cjs/index.js +13 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/generated/descriptorSet.js +1 -1
- package/dist/esm/generated/descriptorSet.js.map +1 -1
- package/dist/esm/generated/index.d.ts +1 -1
- package/dist/esm/generated/index.d.ts.map +1 -1
- package/dist/esm/generated/projections.d.ts +22 -0
- package/dist/esm/generated/projections.d.ts.map +1 -1
- package/dist/esm/generated/projections.js +180 -1
- package/dist/esm/generated/projections.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/generated/descriptorSet.js +1 -1
- package/dist/generated/descriptorSet.js.map +1 -1
- package/dist/generated/index.d.ts +1 -1
- package/dist/generated/index.d.ts.map +1 -1
- package/dist/generated/index.js +1 -1
- package/dist/generated/index.js.map +1 -1
- package/dist/generated/projections.d.ts +22 -0
- package/dist/generated/projections.d.ts.map +1 -1
- package/dist/generated/projections.js +179 -0
- package/dist/generated/projections.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/generated/descriptorSet.ts +1 -1
- package/generated/index.ts +1 -1
- package/generated/projections.ts +199 -0
- package/package.json +1 -1
package/generated/index.ts
CHANGED
|
@@ -72,7 +72,7 @@ export type { PatternsClient, PatternsServiceImplementation } from './patterns';
|
|
|
72
72
|
export { CommandResultGenerateDeclarativeCodeResponse, DraftReadModel, GenerateDeclarativeCodeRequest, GenerateDeclarativeCodeResponse, GenerateModelBoundCodeRequest, ProjectionDeclarationSyntaxError, ProjectionEditorDefinition } from './projectioneditor';
|
|
73
73
|
export type { ProjectionEditorClient, ProjectionEditorServiceImplementation } from './projectioneditor';
|
|
74
74
|
|
|
75
|
-
export { AutoMap, autoMapFromJSON, autoMapToJSON, ChildrenDefinition, ChildrenDefinition_ChildrenEntry, ChildrenDefinition_NestedEntry, DraftReadModelDefinition, EventSequenceSinkConfiguration, FromDefinition, FromDefinition_PropertiesEntry, FromDerivativesDefinition, FromEventPropertyDefinition, FromEveryDefinition, FromEveryDefinition_PropertiesEntry, GetAllDeclarationsRequest, GetAllDefinitionsRequest, GraphEdgeFromDefinition, GraphEdgeFromDefinition_PropertiesEntry, GraphEdgeProjectionDefinition, GraphEdgeProjectionDefinition_FromEntry, GraphEdgeProjectionDefinition_RemovedWithEntry, GraphEdgeRemovedWithDefinition, GraphNodeFromDefinition, GraphNodeFromDefinition_PropertiesEntry, GraphNodeProjectionDefinition, GraphNodeProjectionDefinition_FromEntry, GraphNodeProjectionDefinition_RemovedWithEntry, GraphNodeRemovedWithDefinition, GraphProjectionDefinition, GraphProjectionDefinition_EdgesEntry, GraphProjectionDefinition_NodesEntry, IEnumerableProjectionDefinition, IEnumerableProjectionWithDeclaration, IndexDefinition, IndexProperty, JoinDefinition, JoinDefinition_PropertiesEntry, KeyValuePairEventTypeFromDefinition, KeyValuePairEventTypeJoinDefinition, KeyValuePairEventTypeRemovedWithDefinition, KeyValuePairEventTypeRemovedWithJoinDefinition, OneOfProjectionPreviewProjectionDeclarationParsingErrors, PreviewProjectionRequest, ProjectionDeclarationParsingErrors, ProjectionDefinition, ProjectionDefinition_ChildrenEntry, ProjectionDefinition_NestedEntry, ProjectionOwner, projectionOwnerFromJSON, projectionOwnerToJSON, ProjectionPreview, ProjectionsDefinition, ProjectionWithDeclaration, ReadModelDefinition, ReadModelObserverType, readModelObserverTypeFromJSON, readModelObserverTypeToJSON, ReadModelOwner, readModelOwnerFromJSON, readModelOwnerToJSON, ReadModelSource, readModelSourceFromJSON, readModelSourceToJSON, ReadModelType, RegisterRequest, RemovedWithDefinition, RemovedWithJoinDefinition, SaveProjectionRequest, SaveProjectionResult, SinkDefinition } from './projections';
|
|
75
|
+
export { AutoMap, autoMapFromJSON, autoMapToJSON, ChildrenDefinition, ChildrenDefinition_ChildrenEntry, ChildrenDefinition_NestedEntry, ChildrenOrderingDefinition, ChildrenPlacement, childrenPlacementFromJSON, childrenPlacementToJSON, DraftReadModelDefinition, EventSequenceSinkConfiguration, FromDefinition, FromDefinition_PropertiesEntry, FromDerivativesDefinition, FromEventPropertyDefinition, FromEveryDefinition, FromEveryDefinition_PropertiesEntry, GetAllDeclarationsRequest, GetAllDefinitionsRequest, GraphEdgeFromDefinition, GraphEdgeFromDefinition_PropertiesEntry, GraphEdgeProjectionDefinition, GraphEdgeProjectionDefinition_FromEntry, GraphEdgeProjectionDefinition_RemovedWithEntry, GraphEdgeRemovedWithDefinition, GraphNodeFromDefinition, GraphNodeFromDefinition_PropertiesEntry, GraphNodeProjectionDefinition, GraphNodeProjectionDefinition_FromEntry, GraphNodeProjectionDefinition_RemovedWithEntry, GraphNodeRemovedWithDefinition, GraphProjectionDefinition, GraphProjectionDefinition_EdgesEntry, GraphProjectionDefinition_NodesEntry, IEnumerableProjectionDefinition, IEnumerableProjectionWithDeclaration, IndexDefinition, IndexProperty, JoinDefinition, JoinDefinition_PropertiesEntry, KeyValuePairEventTypeFromDefinition, KeyValuePairEventTypeJoinDefinition, KeyValuePairEventTypeRemovedWithDefinition, KeyValuePairEventTypeRemovedWithJoinDefinition, OneOfProjectionPreviewProjectionDeclarationParsingErrors, PreviewProjectionRequest, ProjectionDeclarationParsingErrors, ProjectionDefinition, ProjectionDefinition_ChildrenEntry, ProjectionDefinition_NestedEntry, ProjectionOwner, projectionOwnerFromJSON, projectionOwnerToJSON, ProjectionPreview, ProjectionsDefinition, ProjectionWithDeclaration, ReadModelDefinition, ReadModelObserverType, readModelObserverTypeFromJSON, readModelObserverTypeToJSON, ReadModelOwner, readModelOwnerFromJSON, readModelOwnerToJSON, ReadModelSource, readModelSourceFromJSON, readModelSourceToJSON, ReadModelType, RegisterRequest, RemovedWithDefinition, RemovedWithJoinDefinition, SaveProjectionRequest, SaveProjectionResult, SinkDefinition, SortDirection, sortDirectionFromJSON, sortDirectionToJSON } from './projections';
|
|
76
76
|
export type { ProjectionsClient, ProjectionsServiceImplementation } from './projections';
|
|
77
77
|
|
|
78
78
|
export { AllSnapshotsForReadModelRequest, Event, QueryResultIEnumerableReadModelSnapshotResponse, ReadModelExplorerDefinition, ReadModelSnapshotResponse } from './readmodelexplorer';
|
package/generated/projections.ts
CHANGED
|
@@ -53,6 +53,45 @@ export function autoMapToJSON(object: AutoMap): string {
|
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
+
export enum ChildrenPlacement {
|
|
57
|
+
Append = 0,
|
|
58
|
+
Prepend = 1,
|
|
59
|
+
Sorted = 2,
|
|
60
|
+
UNRECOGNIZED = -1,
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function childrenPlacementFromJSON(object: any): ChildrenPlacement {
|
|
64
|
+
switch (object) {
|
|
65
|
+
case 0:
|
|
66
|
+
case "Append":
|
|
67
|
+
return ChildrenPlacement.Append;
|
|
68
|
+
case 1:
|
|
69
|
+
case "Prepend":
|
|
70
|
+
return ChildrenPlacement.Prepend;
|
|
71
|
+
case 2:
|
|
72
|
+
case "Sorted":
|
|
73
|
+
return ChildrenPlacement.Sorted;
|
|
74
|
+
case -1:
|
|
75
|
+
case "UNRECOGNIZED":
|
|
76
|
+
default:
|
|
77
|
+
return ChildrenPlacement.UNRECOGNIZED;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function childrenPlacementToJSON(object: ChildrenPlacement): string {
|
|
82
|
+
switch (object) {
|
|
83
|
+
case ChildrenPlacement.Append:
|
|
84
|
+
return "Append";
|
|
85
|
+
case ChildrenPlacement.Prepend:
|
|
86
|
+
return "Prepend";
|
|
87
|
+
case ChildrenPlacement.Sorted:
|
|
88
|
+
return "Sorted";
|
|
89
|
+
case ChildrenPlacement.UNRECOGNIZED:
|
|
90
|
+
default:
|
|
91
|
+
return "UNRECOGNIZED";
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
56
95
|
export enum EventGenerationDelivery {
|
|
57
96
|
Compatibility = 0,
|
|
58
97
|
Pinned = 1,
|
|
@@ -254,6 +293,39 @@ export function readModelSourceToJSON(object: ReadModelSource): string {
|
|
|
254
293
|
}
|
|
255
294
|
}
|
|
256
295
|
|
|
296
|
+
export enum SortDirection {
|
|
297
|
+
Ascending = 0,
|
|
298
|
+
Descending = 1,
|
|
299
|
+
UNRECOGNIZED = -1,
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
export function sortDirectionFromJSON(object: any): SortDirection {
|
|
303
|
+
switch (object) {
|
|
304
|
+
case 0:
|
|
305
|
+
case "Ascending":
|
|
306
|
+
return SortDirection.Ascending;
|
|
307
|
+
case 1:
|
|
308
|
+
case "Descending":
|
|
309
|
+
return SortDirection.Descending;
|
|
310
|
+
case -1:
|
|
311
|
+
case "UNRECOGNIZED":
|
|
312
|
+
default:
|
|
313
|
+
return SortDirection.UNRECOGNIZED;
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
export function sortDirectionToJSON(object: SortDirection): string {
|
|
318
|
+
switch (object) {
|
|
319
|
+
case SortDirection.Ascending:
|
|
320
|
+
return "Ascending";
|
|
321
|
+
case SortDirection.Descending:
|
|
322
|
+
return "Descending";
|
|
323
|
+
case SortDirection.UNRECOGNIZED:
|
|
324
|
+
default:
|
|
325
|
+
return "UNRECOGNIZED";
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
257
329
|
export interface ChildrenDefinition {
|
|
258
330
|
IdentifiedBy: string;
|
|
259
331
|
From: KeyValuePairEventTypeFromDefinition[];
|
|
@@ -266,6 +338,7 @@ export interface ChildrenDefinition {
|
|
|
266
338
|
AutoMap: AutoMap;
|
|
267
339
|
Nested: { [key: string]: ChildrenDefinition };
|
|
268
340
|
NoAutoMapProperties: string[];
|
|
341
|
+
Ordering: ChildrenOrderingDefinition | undefined;
|
|
269
342
|
}
|
|
270
343
|
|
|
271
344
|
export interface ChildrenDefinition_ChildrenEntry {
|
|
@@ -278,6 +351,12 @@ export interface ChildrenDefinition_NestedEntry {
|
|
|
278
351
|
value: ChildrenDefinition | undefined;
|
|
279
352
|
}
|
|
280
353
|
|
|
354
|
+
export interface ChildrenOrderingDefinition {
|
|
355
|
+
Placement: ChildrenPlacement;
|
|
356
|
+
SortBy: string;
|
|
357
|
+
Direction: SortDirection;
|
|
358
|
+
}
|
|
359
|
+
|
|
281
360
|
export interface DraftReadModelDefinition {
|
|
282
361
|
ContainerName: string;
|
|
283
362
|
Schema: string;
|
|
@@ -618,6 +697,7 @@ function createBaseChildrenDefinition(): ChildrenDefinition {
|
|
|
618
697
|
AutoMap: 0,
|
|
619
698
|
Nested: {},
|
|
620
699
|
NoAutoMapProperties: [],
|
|
700
|
+
Ordering: undefined,
|
|
621
701
|
};
|
|
622
702
|
}
|
|
623
703
|
|
|
@@ -656,6 +736,9 @@ export const ChildrenDefinition: MessageFns<ChildrenDefinition> = {
|
|
|
656
736
|
for (const v of message.NoAutoMapProperties) {
|
|
657
737
|
writer.uint32(90).string(v!);
|
|
658
738
|
}
|
|
739
|
+
if (message.Ordering !== undefined) {
|
|
740
|
+
ChildrenOrderingDefinition.encode(message.Ordering, writer.uint32(98).fork()).join();
|
|
741
|
+
}
|
|
659
742
|
return writer;
|
|
660
743
|
},
|
|
661
744
|
|
|
@@ -768,6 +851,14 @@ export const ChildrenDefinition: MessageFns<ChildrenDefinition> = {
|
|
|
768
851
|
message.NoAutoMapProperties.push(reader.string());
|
|
769
852
|
continue;
|
|
770
853
|
}
|
|
854
|
+
case 12: {
|
|
855
|
+
if (tag !== 98) {
|
|
856
|
+
break;
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
message.Ordering = ChildrenOrderingDefinition.decode(reader, reader.uint32());
|
|
860
|
+
continue;
|
|
861
|
+
}
|
|
771
862
|
}
|
|
772
863
|
if ((tag & 7) === 4 || tag === 0) {
|
|
773
864
|
break;
|
|
@@ -831,6 +922,7 @@ export const ChildrenDefinition: MessageFns<ChildrenDefinition> = {
|
|
|
831
922
|
NoAutoMapProperties: globalThis.Array.isArray(object?.NoAutoMapProperties)
|
|
832
923
|
? object.NoAutoMapProperties.map((e: any) => globalThis.String(e))
|
|
833
924
|
: [],
|
|
925
|
+
Ordering: isSet(object.Ordering) ? ChildrenOrderingDefinition.fromJSON(object.Ordering) : undefined,
|
|
834
926
|
};
|
|
835
927
|
},
|
|
836
928
|
|
|
@@ -883,6 +975,9 @@ export const ChildrenDefinition: MessageFns<ChildrenDefinition> = {
|
|
|
883
975
|
if (message.NoAutoMapProperties?.length) {
|
|
884
976
|
obj.NoAutoMapProperties = message.NoAutoMapProperties;
|
|
885
977
|
}
|
|
978
|
+
if (message.Ordering !== undefined) {
|
|
979
|
+
obj.Ordering = ChildrenOrderingDefinition.toJSON(message.Ordering);
|
|
980
|
+
}
|
|
886
981
|
return obj;
|
|
887
982
|
},
|
|
888
983
|
|
|
@@ -924,6 +1019,9 @@ export const ChildrenDefinition: MessageFns<ChildrenDefinition> = {
|
|
|
924
1019
|
{},
|
|
925
1020
|
);
|
|
926
1021
|
message.NoAutoMapProperties = object.NoAutoMapProperties?.map((e) => e) || [];
|
|
1022
|
+
message.Ordering = (object.Ordering !== undefined && object.Ordering !== null)
|
|
1023
|
+
? ChildrenOrderingDefinition.fromPartial(object.Ordering)
|
|
1024
|
+
: undefined;
|
|
927
1025
|
return message;
|
|
928
1026
|
},
|
|
929
1027
|
};
|
|
@@ -1102,6 +1200,107 @@ export const ChildrenDefinition_NestedEntry: MessageFns<ChildrenDefinition_Neste
|
|
|
1102
1200
|
},
|
|
1103
1201
|
};
|
|
1104
1202
|
|
|
1203
|
+
function createBaseChildrenOrderingDefinition(): ChildrenOrderingDefinition {
|
|
1204
|
+
return { Placement: 0, SortBy: "", Direction: 0 };
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
export const ChildrenOrderingDefinition: MessageFns<ChildrenOrderingDefinition> = {
|
|
1208
|
+
encode(message: ChildrenOrderingDefinition, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1209
|
+
if (message.Placement !== 0) {
|
|
1210
|
+
writer.uint32(8).int32(message.Placement);
|
|
1211
|
+
}
|
|
1212
|
+
if (message.SortBy !== "") {
|
|
1213
|
+
writer.uint32(18).string(message.SortBy);
|
|
1214
|
+
}
|
|
1215
|
+
if (message.Direction !== 0) {
|
|
1216
|
+
writer.uint32(24).int32(message.Direction);
|
|
1217
|
+
}
|
|
1218
|
+
return writer;
|
|
1219
|
+
},
|
|
1220
|
+
|
|
1221
|
+
decode(input: BinaryReader | Uint8Array, length?: number): ChildrenOrderingDefinition {
|
|
1222
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1223
|
+
const previousRecursionDepth = (reader as any).__tsProtoDecodeDepth ?? 0;
|
|
1224
|
+
if (previousRecursionDepth >= 100) {
|
|
1225
|
+
throw new globalThis.Error("protobuf decode recursion limit exceeded");
|
|
1226
|
+
}
|
|
1227
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth + 1;
|
|
1228
|
+
try {
|
|
1229
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1230
|
+
const message = createBaseChildrenOrderingDefinition();
|
|
1231
|
+
while (reader.pos < end) {
|
|
1232
|
+
const tag = reader.uint32();
|
|
1233
|
+
switch (tag >>> 3) {
|
|
1234
|
+
case 1: {
|
|
1235
|
+
if (tag !== 8) {
|
|
1236
|
+
break;
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
message.Placement = reader.int32() as any;
|
|
1240
|
+
continue;
|
|
1241
|
+
}
|
|
1242
|
+
case 2: {
|
|
1243
|
+
if (tag !== 18) {
|
|
1244
|
+
break;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
message.SortBy = reader.string();
|
|
1248
|
+
continue;
|
|
1249
|
+
}
|
|
1250
|
+
case 3: {
|
|
1251
|
+
if (tag !== 24) {
|
|
1252
|
+
break;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
message.Direction = reader.int32() as any;
|
|
1256
|
+
continue;
|
|
1257
|
+
}
|
|
1258
|
+
}
|
|
1259
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1260
|
+
break;
|
|
1261
|
+
}
|
|
1262
|
+
reader.skip(tag & 7);
|
|
1263
|
+
}
|
|
1264
|
+
return message;
|
|
1265
|
+
} finally {
|
|
1266
|
+
(reader as any).__tsProtoDecodeDepth = previousRecursionDepth;
|
|
1267
|
+
}
|
|
1268
|
+
},
|
|
1269
|
+
|
|
1270
|
+
fromJSON(object: any): ChildrenOrderingDefinition {
|
|
1271
|
+
return {
|
|
1272
|
+
Placement: isSet(object.Placement) ? childrenPlacementFromJSON(object.Placement) : 0,
|
|
1273
|
+
SortBy: isSet(object.SortBy) ? globalThis.String(object.SortBy) : "",
|
|
1274
|
+
Direction: isSet(object.Direction) ? sortDirectionFromJSON(object.Direction) : 0,
|
|
1275
|
+
};
|
|
1276
|
+
},
|
|
1277
|
+
|
|
1278
|
+
toJSON(message: ChildrenOrderingDefinition): unknown {
|
|
1279
|
+
const obj: any = {};
|
|
1280
|
+
if (message.Placement !== 0) {
|
|
1281
|
+
obj.Placement = childrenPlacementToJSON(message.Placement);
|
|
1282
|
+
}
|
|
1283
|
+
if (message.SortBy !== "") {
|
|
1284
|
+
obj.SortBy = message.SortBy;
|
|
1285
|
+
}
|
|
1286
|
+
if (message.Direction !== 0) {
|
|
1287
|
+
obj.Direction = sortDirectionToJSON(message.Direction);
|
|
1288
|
+
}
|
|
1289
|
+
return obj;
|
|
1290
|
+
},
|
|
1291
|
+
|
|
1292
|
+
create(base?: DeepPartial<ChildrenOrderingDefinition>): ChildrenOrderingDefinition {
|
|
1293
|
+
return ChildrenOrderingDefinition.fromPartial(base ?? {});
|
|
1294
|
+
},
|
|
1295
|
+
fromPartial(object: DeepPartial<ChildrenOrderingDefinition>): ChildrenOrderingDefinition {
|
|
1296
|
+
const message = createBaseChildrenOrderingDefinition();
|
|
1297
|
+
message.Placement = object.Placement ?? 0;
|
|
1298
|
+
message.SortBy = object.SortBy ?? "";
|
|
1299
|
+
message.Direction = object.Direction ?? 0;
|
|
1300
|
+
return message;
|
|
1301
|
+
},
|
|
1302
|
+
};
|
|
1303
|
+
|
|
1105
1304
|
function createBaseDraftReadModelDefinition(): DraftReadModelDefinition {
|
|
1106
1305
|
return { ContainerName: "", Schema: "", Identifier: "", DisplayName: "" };
|
|
1107
1306
|
}
|
package/package.json
CHANGED