chore: JSPG Engine tuple decoupling and core routing optimizations
This commit is contained in:
@ -5,15 +5,18 @@
|
||||
"puncs": [
|
||||
{
|
||||
"name": "get_invoice",
|
||||
"schemas": [
|
||||
{
|
||||
"$id": "get_invoice.response",
|
||||
"schemas": {
|
||||
"get_invoice.response": {
|
||||
"oneOf": [
|
||||
{ "type": "invoice" },
|
||||
{ "type": "null" }
|
||||
{
|
||||
"type": "invoice"
|
||||
},
|
||||
{
|
||||
"type": "null"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"enums": [],
|
||||
@ -23,32 +26,64 @@
|
||||
"type": "relation",
|
||||
"constraint": "fk_attachment_attachable_entity",
|
||||
"source_type": "attachment",
|
||||
"source_columns": ["attachable_id", "attachable_type"],
|
||||
"source_columns": [
|
||||
"attachable_id",
|
||||
"attachable_type"
|
||||
],
|
||||
"destination_type": "entity",
|
||||
"destination_columns": ["id", "type"],
|
||||
"destination_columns": [
|
||||
"id",
|
||||
"type"
|
||||
],
|
||||
"prefix": null
|
||||
}
|
||||
],
|
||||
"types": [
|
||||
{
|
||||
"name": "entity",
|
||||
"schemas": [
|
||||
{
|
||||
"$id": "entity",
|
||||
"schemas": {
|
||||
"entity": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": { "type": "string", "format": "uuid" },
|
||||
"type": { "type": "string" },
|
||||
"archived": { "type": "boolean" },
|
||||
"created_at": { "type": "string", "format": "date-time" }
|
||||
"id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"type": {
|
||||
"type": "string"
|
||||
},
|
||||
"archived": {
|
||||
"type": "boolean"
|
||||
},
|
||||
"created_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"hierarchy": [
|
||||
"entity"
|
||||
],
|
||||
"variations": [
|
||||
"entity",
|
||||
"activity",
|
||||
"invoice",
|
||||
"attachment"
|
||||
],
|
||||
"fields": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at"
|
||||
],
|
||||
"hierarchy": ["entity"],
|
||||
"variations": ["entity", "activity", "invoice", "attachment"],
|
||||
"fields": ["id", "type", "archived", "created_at"],
|
||||
"grouped_fields": {
|
||||
"entity": ["id", "type", "archived", "created_at"]
|
||||
"entity": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at"
|
||||
]
|
||||
},
|
||||
"field_types": {
|
||||
"id": "uuid",
|
||||
@ -63,21 +98,42 @@
|
||||
},
|
||||
{
|
||||
"name": "activity",
|
||||
"schemas": [
|
||||
{
|
||||
"$id": "activity",
|
||||
"schemas": {
|
||||
"activity": {
|
||||
"type": "entity",
|
||||
"properties": {
|
||||
"start_date": { "type": "string", "format": "date-time" }
|
||||
"start_date": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"hierarchy": [
|
||||
"activity",
|
||||
"entity"
|
||||
],
|
||||
"variations": [
|
||||
"activity",
|
||||
"invoice"
|
||||
],
|
||||
"fields": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at",
|
||||
"start_date"
|
||||
],
|
||||
"hierarchy": ["activity", "entity"],
|
||||
"variations": ["activity", "invoice"],
|
||||
"fields": ["id", "type", "archived", "created_at", "start_date"],
|
||||
"grouped_fields": {
|
||||
"entity": ["id", "type", "archived", "created_at"],
|
||||
"activity": ["start_date"]
|
||||
"entity": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at"
|
||||
],
|
||||
"activity": [
|
||||
"start_date"
|
||||
]
|
||||
},
|
||||
"field_types": {
|
||||
"id": "uuid",
|
||||
@ -93,26 +149,51 @@
|
||||
},
|
||||
{
|
||||
"name": "invoice",
|
||||
"schemas": [
|
||||
{
|
||||
"$id": "invoice",
|
||||
"schemas": {
|
||||
"invoice": {
|
||||
"type": "activity",
|
||||
"properties": {
|
||||
"status": { "type": "string" },
|
||||
"status": {
|
||||
"type": "string"
|
||||
},
|
||||
"attachments": {
|
||||
"type": "array",
|
||||
"items": { "type": "attachment" }
|
||||
"items": {
|
||||
"type": "attachment"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"hierarchy": [
|
||||
"invoice",
|
||||
"activity",
|
||||
"entity"
|
||||
],
|
||||
"variations": [
|
||||
"invoice"
|
||||
],
|
||||
"fields": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at",
|
||||
"start_date",
|
||||
"status"
|
||||
],
|
||||
"hierarchy": ["invoice", "activity", "entity"],
|
||||
"variations": ["invoice"],
|
||||
"fields": ["id", "type", "archived", "created_at", "start_date", "status"],
|
||||
"grouped_fields": {
|
||||
"entity": ["id", "type", "archived", "created_at"],
|
||||
"activity": ["start_date"],
|
||||
"invoice": ["status"]
|
||||
"entity": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at"
|
||||
],
|
||||
"activity": [
|
||||
"start_date"
|
||||
],
|
||||
"invoice": [
|
||||
"status"
|
||||
]
|
||||
},
|
||||
"field_types": {
|
||||
"id": "uuid",
|
||||
@ -129,26 +210,66 @@
|
||||
},
|
||||
{
|
||||
"name": "attachment",
|
||||
"schemas": [
|
||||
{
|
||||
"$id": "attachment",
|
||||
"schemas": {
|
||||
"attachment": {
|
||||
"type": "entity",
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"attachable_id": { "type": "string", "format": "uuid" },
|
||||
"attachable_type": { "type": "string" },
|
||||
"kind": { "type": "string" },
|
||||
"file": { "type": "string" },
|
||||
"data": { "type": "object" }
|
||||
"name": {
|
||||
"type": "string"
|
||||
},
|
||||
"attachable_id": {
|
||||
"type": "string",
|
||||
"format": "uuid"
|
||||
},
|
||||
"attachable_type": {
|
||||
"type": "string"
|
||||
},
|
||||
"kind": {
|
||||
"type": "string"
|
||||
},
|
||||
"file": {
|
||||
"type": "string"
|
||||
},
|
||||
"data": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"hierarchy": [
|
||||
"attachment",
|
||||
"entity"
|
||||
],
|
||||
"variations": [
|
||||
"attachment"
|
||||
],
|
||||
"fields": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at",
|
||||
"attachable_id",
|
||||
"attachable_type",
|
||||
"kind",
|
||||
"file",
|
||||
"data",
|
||||
"name"
|
||||
],
|
||||
"hierarchy": ["attachment", "entity"],
|
||||
"variations": ["attachment"],
|
||||
"fields": ["id", "type", "archived", "created_at", "attachable_id", "attachable_type", "kind", "file", "data", "name"],
|
||||
"grouped_fields": {
|
||||
"entity": ["id", "type", "archived", "created_at"],
|
||||
"attachment": ["attachable_id", "attachable_type", "kind", "file", "data", "name"]
|
||||
"entity": [
|
||||
"id",
|
||||
"type",
|
||||
"archived",
|
||||
"created_at"
|
||||
],
|
||||
"attachment": [
|
||||
"attachable_id",
|
||||
"attachable_type",
|
||||
"kind",
|
||||
"file",
|
||||
"data",
|
||||
"name"
|
||||
]
|
||||
},
|
||||
"field_types": {
|
||||
"id": "uuid",
|
||||
|
||||
Reference in New Issue
Block a user