Skip to content

Commit

Permalink
create basic elements for Miroir Action Script (MAS), migrate Tools.s…
Browse files Browse the repository at this point in the history
…ubmit to MAS #28. Implemented most simple extractorTransformer for uniqueness of attribute value over a set of objects.
  • Loading branch information
miroir-framework committed Aug 8, 2024
1 parent 28cbf9f commit 16e5c0a
Show file tree
Hide file tree
Showing 6 changed files with 945 additions and 685 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,18 @@ export function getMiroirFundamentalJzodSchema(
},
},
},
domainElementAny: {
type: "object",
definition: {
elementType: {
type: "literal",
definition: "any",
},
elementValue: {
type: "any",
},
},
},
domainElementFailed: {
type: "object",
definition: {
Expand Down Expand Up @@ -1160,6 +1172,7 @@ export function getMiroirFundamentalJzodSchema(
domainElementType: {
type: "enum",
definition: [
"any",
"object",
"instanceUuidIndex",
"entityInstanceCollection",
Expand All @@ -1179,6 +1192,13 @@ export function getMiroirFundamentalJzodSchema(
relativePath: "domainElementVoid",
},
},
{
type: "schemaReference",
definition: {
absolutePath: "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
relativePath: "domainElementAny",
},
},
{
type: "schemaReference",
definition: {
Expand Down Expand Up @@ -2151,6 +2171,7 @@ export function getMiroirFundamentalJzodSchema(
// },
// ],
domainElementVoid: (miroirFundamentalJzodSchema as any).definition.context.domainElementVoid,
domainElementAny: (miroirFundamentalJzodSchema as any).definition.context.domainElementAny,
domainElementFailed: (miroirFundamentalJzodSchema as any).definition.context.domainElementFailed,
domainElementObject: (miroirFundamentalJzodSchema as any).definition.context.domainElementObject,
domainElementObjectOrFailed: (miroirFundamentalJzodSchema as any).definition.context
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4538,6 +4538,34 @@ export const miroirFundamentalJzodSchema = {
"type": "union",
"discriminator": "queryType",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "querySelectExtractor",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
},
{
"type": "object",
"definition": {
"queryType": {
"type": "literal",
"definition": "extractorTransformer"
},
"referencedQuery": {
"type": "schemaReference",
"definition": {
"relativePath": "queryTemplateContextReference",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
},
"attribute": {
"type": "string"
}
}
},
{
"type": "object",
"definition": {
Expand Down Expand Up @@ -4578,14 +4606,6 @@ export const miroirFundamentalJzodSchema = {
}
}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "querySelectExtractor",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
Expand All @@ -4594,14 +4614,6 @@ export const miroirFundamentalJzodSchema = {
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "extractObjectListByEntity",
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
Expand Down Expand Up @@ -4676,6 +4688,18 @@ export const miroirFundamentalJzodSchema = {
}
}
},
"domainElementAny": {
"type": "object",
"definition": {
"elementType": {
"type": "literal",
"definition": "any"
},
"elementValue": {
"type": "any"
}
}
},
"domainElementFailed": {
"type": "object",
"definition": {
Expand Down Expand Up @@ -4875,6 +4899,7 @@ export const miroirFundamentalJzodSchema = {
"domainElementType": {
"type": "enum",
"definition": [
"any",
"object",
"instanceUuidIndex",
"entityInstanceCollection",
Expand All @@ -4894,6 +4919,13 @@ export const miroirFundamentalJzodSchema = {
"relativePath": "domainElementVoid"
}
},
{
"type": "schemaReference",
"definition": {
"absolutePath": "fe9b7d99-f216-44de-bb6e-60e1a1ebb739",
"relativePath": "domainElementAny"
}
},
{
"type": "schemaReference",
"definition": {
Expand Down Expand Up @@ -13680,6 +13712,51 @@ export const miroirFundamentalJzodSchema = {
}
]
},
"carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_domainElementAny": {
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
},
{
"type": "object",
"definition": {
"elementType": {
"type": "union",
"definition": [
{
"type": "literal",
"definition": "any"
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
"elementValue": {
"type": "union",
"definition": [
{
"type": "any"
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
}
}
}
]
},
"carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_domainElementFailed": {
"type": "union",
"definition": [
Expand Down Expand Up @@ -14258,6 +14335,24 @@ export const miroirFundamentalJzodSchema = {
}
]
},
{
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_domainElementAny"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
{
"type": "union",
"definition": [
Expand Down Expand Up @@ -24652,6 +24747,76 @@ export const miroirFundamentalJzodSchema = {
"type": "union",
"discriminator": "queryType",
"definition": [
{
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_querySelectExtractor"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
{
"type": "object",
"definition": {
"queryType": {
"type": "union",
"definition": [
{
"type": "literal",
"definition": "extractorTransformer"
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
"referencedQuery": {
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_queryTemplateContextReference"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
"attribute": {
"type": "union",
"definition": [
{
"type": "string"
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
}
}
},
{
"type": "object",
"definition": {
Expand Down Expand Up @@ -24756,24 +24921,6 @@ export const miroirFundamentalJzodSchema = {
}
}
},
{
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_querySelectExtractor"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
{
"type": "union",
"definition": [
Expand All @@ -24792,24 +24939,6 @@ export const miroirFundamentalJzodSchema = {
}
]
},
{
"type": "union",
"definition": [
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOn_fe9b7d99$f216$44de$bb6e$60e1a1ebb739_extractObjectListByEntity"
},
"context": {}
},
{
"type": "schemaReference",
"definition": {
"relativePath": "carryOnObject"
}
}
]
},
{
"type": "union",
"definition": [
Expand Down
Loading

0 comments on commit 16e5c0a

Please sign in to comment.