Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0f2e0f6d89 | |||
| 415eb6b411 |
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 1,
|
||||
"sourceRepo": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos.git",
|
||||
"sourceCommit": "268fe40efd0632e886e85f87071ed8da31b5d535",
|
||||
"sourceCommit": "015f04412c856751c3535eb306218e8f1b9ca2c8",
|
||||
"sourcePath": "quixos-instance/packages/camino-package-runtime",
|
||||
"exportName": "camino-package-runtime",
|
||||
"mirrorRemote": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/camino-package-runtime.git"
|
||||
|
||||
Vendored
+12
-4
@@ -436,9 +436,13 @@ export type AddEdgeRequest = Message<"camino.AddEdgeRequest"> & {
|
||||
[key: string]: Value;
|
||||
};
|
||||
/**
|
||||
* @generated from field: optional int32 ordinal = 5;
|
||||
* @generated from field: optional int32 source_ordinal = 5;
|
||||
*/
|
||||
ordinal?: number | undefined;
|
||||
sourceOrdinal?: number | undefined;
|
||||
/**
|
||||
* @generated from field: optional int32 target_ordinal = 6;
|
||||
*/
|
||||
targetOrdinal?: number | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.AddEdgeRequest.
|
||||
@@ -676,9 +680,9 @@ export type CaminoEdge = Message<"camino.CaminoEdge"> & {
|
||||
[key: string]: Value;
|
||||
};
|
||||
/**
|
||||
* @generated from field: optional int32 ordinal = 9;
|
||||
* @generated from field: optional int32 from_ordinal = 9;
|
||||
*/
|
||||
ordinal?: number | undefined;
|
||||
fromOrdinal?: number | undefined;
|
||||
/**
|
||||
* @generated from field: string created_at = 10;
|
||||
*/
|
||||
@@ -703,6 +707,10 @@ export type CaminoEdge = Message<"camino.CaminoEdge"> & {
|
||||
* @generated from field: string to_cardinality = 15;
|
||||
*/
|
||||
toCardinality: string;
|
||||
/**
|
||||
* @generated from field: optional int32 to_ordinal = 16;
|
||||
*/
|
||||
toOrdinal?: number | undefined;
|
||||
};
|
||||
/**
|
||||
* Describes the message camino.CaminoEdge.
|
||||
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"schema-compiler.d.ts","sourceRoot":"","sources":["../src/schema-compiler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAeV,mBAAmB,EAGpB,MAAM,gBAAgB,CAAC;AAuyBxB,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,KACjB,OAAO,CAAC,mBAAmB,CAuE7B,CAAC"}
|
||||
{"version":3,"file":"schema-compiler.d.ts","sourceRoot":"","sources":["../src/schema-compiler.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAeV,mBAAmB,EAGpB,MAAM,gBAAgB,CAAC;AA4xBxB,eAAO,MAAM,mBAAmB,GAC9B,YAAY,MAAM,KACjB,OAAO,CAAC,mBAAmB,CAuE7B,CAAC"}
|
||||
Vendored
-5
@@ -308,7 +308,6 @@ const isManyCardinality = (cardinality) => cardinality === "many" ||
|
||||
cardinality === "many_unique" ||
|
||||
cardinality === "many_ordered" ||
|
||||
cardinality === "many_unique_ordered";
|
||||
const isOrderedCardinality = (cardinality) => cardinality === "many_ordered" || cardinality === "many_unique_ordered";
|
||||
const endpointFromOption = (params) => {
|
||||
const object = asObject(params.option);
|
||||
const classRef = asObject(object?.class)
|
||||
@@ -476,10 +475,6 @@ const classSchemaFromType = (type, sourceFile, defaults, operationServices) => {
|
||||
if (!isMany && field.repeated) {
|
||||
throw new Error(`Edge field ${type.fullName}.${field.name} must not be repeated for ${fromEndpoint.cardinality}`);
|
||||
}
|
||||
if (isOrderedCardinality(fromEndpoint.cardinality) &&
|
||||
isOrderedCardinality(toEndpoint.cardinality)) {
|
||||
throw new Error(`Edge field ${type.fullName}.${field.name} cannot be ordered on both endpoints yet`);
|
||||
}
|
||||
const edgeId = symbolRefFromOption(edgeOption.id, {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: `${type.name}.${field.name}`,
|
||||
|
||||
Generated
+5
-5
@@ -74,17 +74,17 @@
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1784040904,
|
||||
"narHash": "sha256-DdKAQ7MXgotbAymZ0FESXiK7K9FXepcCJmt/f4TiE2o=",
|
||||
"lastModified": 1784086232,
|
||||
"narHash": "sha256-m/PyK8Jrf2A6hUxGk9aFCZy+JtR+ApMYwDzTykjFk8U=",
|
||||
"ref": "refs/heads/exported",
|
||||
"rev": "2ad29f8ddbd9d38dcaf06186c9f88c0b489fa723",
|
||||
"revCount": 16,
|
||||
"rev": "5dd3948784abe64d0a6314d82a02ea98666e6002",
|
||||
"revCount": 18,
|
||||
"type": "git",
|
||||
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git"
|
||||
},
|
||||
"original": {
|
||||
"ref": "refs/heads/exported",
|
||||
"rev": "2ad29f8ddbd9d38dcaf06186c9f88c0b489fa723",
|
||||
"rev": "5dd3948784abe64d0a6314d82a02ea98666e6002",
|
||||
"type": "git",
|
||||
"url": "https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git"
|
||||
}
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
quixos-protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/heads/exported&rev=2ad29f8ddbd9d38dcaf06186c9f88c0b489fa723";
|
||||
quixos-protocol.url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-protocol.git?ref=refs/heads/exported&rev=5dd3948784abe64d0a6314d82a02ea98666e6002";
|
||||
quixosNixHelpers = {
|
||||
url = "git+https://gitea-external.egads.tutti.syntaxblitz.net/quixos/quixos-nix-helpers.git?ref=refs/heads/exported&rev=1f0c39b01501d646fe97dfc6e5777ccab0bde2f1";
|
||||
flake = false;
|
||||
|
||||
+15
-5
File diff suppressed because one or more lines are too long
@@ -426,9 +426,6 @@ const isManyCardinality = (cardinality: Cardinality) =>
|
||||
cardinality === "many_ordered" ||
|
||||
cardinality === "many_unique_ordered";
|
||||
|
||||
const isOrderedCardinality = (cardinality: Cardinality) =>
|
||||
cardinality === "many_ordered" || cardinality === "many_unique_ordered";
|
||||
|
||||
const endpointFromOption = (params: {
|
||||
option: unknown;
|
||||
fallbackClass?: SymbolRef;
|
||||
@@ -669,14 +666,6 @@ const classSchemaFromType = (
|
||||
if (!isMany && field.repeated) {
|
||||
throw new Error(`Edge field ${type.fullName}.${field.name} must not be repeated for ${fromEndpoint.cardinality}`);
|
||||
}
|
||||
if (
|
||||
isOrderedCardinality(fromEndpoint.cardinality) &&
|
||||
isOrderedCardinality(toEndpoint.cardinality)
|
||||
) {
|
||||
throw new Error(
|
||||
`Edge field ${type.fullName}.${field.name} cannot be ordered on both endpoints yet`,
|
||||
);
|
||||
}
|
||||
const edgeId = symbolRefFromOption(edgeOption.id, {
|
||||
namespace: defaults.schemaNamespace,
|
||||
name: `${type.name}.${field.name}`,
|
||||
|
||||
Reference in New Issue
Block a user