Deploy AIOS web (React glide grid + FastAPI slice)
Browse files- RELEASES.json +1 -1
- VERSION +1 -1
- api/deps.py +3 -0
- api/test_sheet_sales_scope.py +3 -0
- platform/core/external_tools.py +2 -1
- web/public/AIOS_DEPLOY_RECEIPT +1 -1
- web/src/typed/openapi.fixture.json +55 -3
- web/src/typed/schema.d.ts +34 -5
RELEASES.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
{
|
| 2 |
-
"current": "
|
| 3 |
"releases": []
|
| 4 |
}
|
|
|
|
| 1 |
{
|
| 2 |
+
"current": "58b0bbe3f",
|
| 3 |
"releases": []
|
| 4 |
}
|
VERSION
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
58b0bbe3f
|
api/deps.py
CHANGED
|
@@ -862,6 +862,9 @@ def assistant_read_scope(session: Session, database, fields=None, filters=None,
|
|
| 862 |
if key in _ASSISTANT_BUILT_INS:
|
| 863 |
rows, canonical_fields, source_version = _assistant_cached_builtin(
|
| 864 |
session, key, fields, filters, mode=mode, permission_scope=builtin_scope, members=members)
|
|
|
|
|
|
|
|
|
|
| 865 |
label = _ASSISTANT_BUILT_INS[key]["label"]
|
| 866 |
source_kind = "runtime_cache"
|
| 867 |
elif key.startswith("ut_"):
|
|
|
|
| 862 |
if key in _ASSISTANT_BUILT_INS:
|
| 863 |
rows, canonical_fields, source_version = _assistant_cached_builtin(
|
| 864 |
session, key, fields, filters, mode=mode, permission_scope=builtin_scope, members=members)
|
| 865 |
+
# S74-T18: module links reach the grid for its Related menu; a builtin read has no value
|
| 866 |
+
# for them, so offering one would read blank. They stay out, as before T18.
|
| 867 |
+
canonical_fields = [field for field in canonical_fields if field.get("type") != "link"]
|
| 868 |
label = _ASSISTANT_BUILT_INS[key]["label"]
|
| 869 |
source_kind = "runtime_cache"
|
| 870 |
elif key.startswith("ut_"):
|
api/test_sheet_sales_scope.py
CHANGED
|
@@ -90,6 +90,9 @@ def run(check):
|
|
| 90 |
"team_name VARCHAR, team_id BIGINT)")
|
| 91 |
cur.execute("CREATE TABLE sale_order_line(id BIGINT, order_id BIGINT, "
|
| 92 |
"order_partner_id BIGINT, order_partner_name VARCHAR, price_subtotal DOUBLE)")
|
|
|
|
|
|
|
|
|
|
| 93 |
|
| 94 |
def insert(rows):
|
| 95 |
cur.executemany("INSERT INTO sale_order VALUES (?, ?, ?, ?, ?, ?, ?, ?)", rows)
|
|
|
|
| 90 |
"team_name VARCHAR, team_id BIGINT)")
|
| 91 |
cur.execute("CREATE TABLE sale_order_line(id BIGINT, order_id BIGINT, "
|
| 92 |
"order_partner_id BIGINT, order_partner_name VARCHAR, price_subtotal DOUBLE)")
|
| 93 |
+
# S74-T31: the order-line spec joins res_partner for the customer type (66335453b).
|
| 94 |
+
cur.execute("CREATE TABLE res_partner(id BIGINT, category_id VARCHAR)")
|
| 95 |
+
cur.execute("INSERT INTO res_partner VALUES (7, NULL), (99, NULL)")
|
| 96 |
|
| 97 |
def insert(rows):
|
| 98 |
cur.executemany("INSERT INTO sale_order VALUES (?, ?, ?, ?, ?, ?, ?, ?)", rows)
|
platform/core/external_tools.py
CHANGED
|
@@ -147,7 +147,8 @@ _APPLICATION = {
|
|
| 147 |
"app_id": {"type": "string", "minLength": 1,
|
| 148 |
"description": "Omit to create. Supply an id to update mutable properties."},
|
| 149 |
"name": _STRING,
|
| 150 |
-
|
|
|
|
| 151 |
"compatibleDatabases": {"type": "array", "items": _STRING},
|
| 152 |
"sourceDatabase": {"type": "string", "description": "Source for a template Application only."},
|
| 153 |
"templateKind": {"enum": ["route", "catalog"]},
|
|
|
|
| 147 |
"app_id": {"type": "string", "minLength": 1,
|
| 148 |
"description": "Omit to create. Supply an id to update mutable properties."},
|
| 149 |
"name": _STRING,
|
| 150 |
+
# Mirrors application_registry.APPLICATION_TYPES (core may not import the API layer).
|
| 151 |
+
"type": {"enum": ["chart", "route", "map", "code"]},
|
| 152 |
"compatibleDatabases": {"type": "array", "items": _STRING},
|
| 153 |
"sourceDatabase": {"type": "string", "description": "Source for a template Application only."},
|
| 154 |
"templateKind": {"enum": ["route", "catalog"]},
|
web/public/AIOS_DEPLOY_RECEIPT
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
8eed4595a67e12793fe26b48119ccd280f32df302dbe65a8627359e956ddab6b
|
web/src/typed/openapi.fixture.json
CHANGED
|
@@ -63,17 +63,47 @@
|
|
| 63 |
"database": {
|
| 64 |
"$ref": "#/components/schemas/DatabaseName"
|
| 65 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
"permitted": {
|
| 67 |
"type": "boolean"
|
| 68 |
},
|
| 69 |
"reason": {
|
| 70 |
"type": "string"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 71 |
}
|
| 72 |
},
|
| 73 |
"required": [
|
| 74 |
"database",
|
| 75 |
"permitted",
|
| 76 |
-
"answerable"
|
|
|
|
|
|
|
| 77 |
],
|
| 78 |
"type": "object"
|
| 79 |
},
|
|
@@ -116,6 +146,14 @@
|
|
| 116 |
"label": {
|
| 117 |
"type": "string"
|
| 118 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
"permission_scope_applied": {
|
| 120 |
"type": "boolean"
|
| 121 |
},
|
|
@@ -132,6 +170,7 @@
|
|
| 132 |
"source_sync": {
|
| 133 |
"enum": [
|
| 134 |
"synced",
|
|
|
|
| 135 |
"not_applicable",
|
| 136 |
"never_synced"
|
| 137 |
],
|
|
@@ -141,6 +180,7 @@
|
|
| 141 |
"type": "string"
|
| 142 |
},
|
| 143 |
"source_synced_at": {
|
|
|
|
| 144 |
"format": "date-time",
|
| 145 |
"type": [
|
| 146 |
"string",
|
|
@@ -151,7 +191,9 @@
|
|
| 151 |
},
|
| 152 |
"required": [
|
| 153 |
"database",
|
| 154 |
-
"fields"
|
|
|
|
|
|
|
| 155 |
],
|
| 156 |
"type": "object"
|
| 157 |
},
|
|
@@ -355,6 +397,14 @@
|
|
| 355 |
"label": {
|
| 356 |
"type": "string"
|
| 357 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 358 |
"page": {
|
| 359 |
"$ref": "#/components/schemas/Page"
|
| 360 |
},
|
|
@@ -414,6 +464,7 @@
|
|
| 414 |
"source_sync": {
|
| 415 |
"enum": [
|
| 416 |
"synced",
|
|
|
|
| 417 |
"not_applicable",
|
| 418 |
"never_synced"
|
| 419 |
],
|
|
@@ -423,6 +474,7 @@
|
|
| 423 |
"type": "string"
|
| 424 |
},
|
| 425 |
"source_synced_at": {
|
|
|
|
| 426 |
"format": "date-time",
|
| 427 |
"type": [
|
| 428 |
"string",
|
|
@@ -604,7 +656,7 @@
|
|
| 604 |
},
|
| 605 |
"info": {
|
| 606 |
"title": "Loopable read API",
|
| 607 |
-
"version": "
|
| 608 |
},
|
| 609 |
"openapi": "3.1.0",
|
| 610 |
"paths": {
|
|
|
|
| 63 |
"database": {
|
| 64 |
"$ref": "#/components/schemas/DatabaseName"
|
| 65 |
},
|
| 66 |
+
"last_edited_at": {
|
| 67 |
+
"description": "Time of the last recorded edit when source_sync is edited.",
|
| 68 |
+
"format": "date-time",
|
| 69 |
+
"type": [
|
| 70 |
+
"string",
|
| 71 |
+
"null"
|
| 72 |
+
]
|
| 73 |
+
},
|
| 74 |
"permitted": {
|
| 75 |
"type": "boolean"
|
| 76 |
},
|
| 77 |
"reason": {
|
| 78 |
"type": "string"
|
| 79 |
+
},
|
| 80 |
+
"source_sync": {
|
| 81 |
+
"enum": [
|
| 82 |
+
"synced",
|
| 83 |
+
"edited",
|
| 84 |
+
"not_applicable",
|
| 85 |
+
"never_synced"
|
| 86 |
+
],
|
| 87 |
+
"type": "string"
|
| 88 |
+
},
|
| 89 |
+
"source_sync_reason": {
|
| 90 |
+
"type": "string"
|
| 91 |
+
},
|
| 92 |
+
"source_synced_at": {
|
| 93 |
+
"description": "Time of the last successful source sync, never a read or edit time.",
|
| 94 |
+
"format": "date-time",
|
| 95 |
+
"type": [
|
| 96 |
+
"string",
|
| 97 |
+
"null"
|
| 98 |
+
]
|
| 99 |
}
|
| 100 |
},
|
| 101 |
"required": [
|
| 102 |
"database",
|
| 103 |
"permitted",
|
| 104 |
+
"answerable",
|
| 105 |
+
"source_synced_at",
|
| 106 |
+
"source_sync"
|
| 107 |
],
|
| 108 |
"type": "object"
|
| 109 |
},
|
|
|
|
| 146 |
"label": {
|
| 147 |
"type": "string"
|
| 148 |
},
|
| 149 |
+
"last_edited_at": {
|
| 150 |
+
"description": "Time of the last recorded edit when source_sync is edited.",
|
| 151 |
+
"format": "date-time",
|
| 152 |
+
"type": [
|
| 153 |
+
"string",
|
| 154 |
+
"null"
|
| 155 |
+
]
|
| 156 |
+
},
|
| 157 |
"permission_scope_applied": {
|
| 158 |
"type": "boolean"
|
| 159 |
},
|
|
|
|
| 170 |
"source_sync": {
|
| 171 |
"enum": [
|
| 172 |
"synced",
|
| 173 |
+
"edited",
|
| 174 |
"not_applicable",
|
| 175 |
"never_synced"
|
| 176 |
],
|
|
|
|
| 180 |
"type": "string"
|
| 181 |
},
|
| 182 |
"source_synced_at": {
|
| 183 |
+
"description": "Time of the last successful source sync, never a read or edit time.",
|
| 184 |
"format": "date-time",
|
| 185 |
"type": [
|
| 186 |
"string",
|
|
|
|
| 191 |
},
|
| 192 |
"required": [
|
| 193 |
"database",
|
| 194 |
+
"fields",
|
| 195 |
+
"source_synced_at",
|
| 196 |
+
"source_sync"
|
| 197 |
],
|
| 198 |
"type": "object"
|
| 199 |
},
|
|
|
|
| 397 |
"label": {
|
| 398 |
"type": "string"
|
| 399 |
},
|
| 400 |
+
"last_edited_at": {
|
| 401 |
+
"description": "Time of the last recorded edit when source_sync is edited.",
|
| 402 |
+
"format": "date-time",
|
| 403 |
+
"type": [
|
| 404 |
+
"string",
|
| 405 |
+
"null"
|
| 406 |
+
]
|
| 407 |
+
},
|
| 408 |
"page": {
|
| 409 |
"$ref": "#/components/schemas/Page"
|
| 410 |
},
|
|
|
|
| 464 |
"source_sync": {
|
| 465 |
"enum": [
|
| 466 |
"synced",
|
| 467 |
+
"edited",
|
| 468 |
"not_applicable",
|
| 469 |
"never_synced"
|
| 470 |
],
|
|
|
|
| 474 |
"type": "string"
|
| 475 |
},
|
| 476 |
"source_synced_at": {
|
| 477 |
+
"description": "Time of the last successful source sync, never a read or edit time.",
|
| 478 |
"format": "date-time",
|
| 479 |
"type": [
|
| 480 |
"string",
|
|
|
|
| 656 |
},
|
| 657 |
"info": {
|
| 658 |
"title": "Loopable read API",
|
| 659 |
+
"version": "b6e511f655dcc3951c09d33ca0d8eaccb7242de0d00eb0ee9b5b10638b1a89dd"
|
| 660 |
},
|
| 661 |
"openapi": "3.1.0",
|
| 662 |
"paths": {
|
web/src/typed/schema.d.ts
CHANGED
|
@@ -74,8 +74,21 @@ export interface components {
|
|
| 74 |
Database: {
|
| 75 |
answerable: boolean;
|
| 76 |
database: components["schemas"]["DatabaseName"];
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 77 |
permitted: boolean;
|
| 78 |
reason?: string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 79 |
} & {
|
| 80 |
[key: string]: unknown;
|
| 81 |
};
|
|
@@ -91,15 +104,23 @@ export interface components {
|
|
| 91 |
database: components["schemas"]["DatabaseName"];
|
| 92 |
fields: components["schemas"]["Field"][];
|
| 93 |
label?: string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
permission_scope_applied?: boolean;
|
| 95 |
/** Format: date-time */
|
| 96 |
retrieved_at?: string | null;
|
| 97 |
source_kind?: string;
|
| 98 |
/** @enum {string} */
|
| 99 |
-
source_sync
|
| 100 |
source_sync_reason?: string;
|
| 101 |
-
/**
|
| 102 |
-
|
|
|
|
|
|
|
|
|
|
| 103 |
source_version?: unknown;
|
| 104 |
} & {
|
| 105 |
[key: string]: unknown;
|
|
@@ -161,6 +182,11 @@ export interface components {
|
|
| 161 |
groupBy?: components["schemas"]["GroupBy"][];
|
| 162 |
groups?: components["schemas"]["Group"][];
|
| 163 |
label?: string;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
page: components["schemas"]["Page"];
|
| 165 |
permission_scope_applied?: boolean;
|
| 166 |
records: ((components["schemas"]["Record_ut_activity"] | components["schemas"]["Record_ut_typed_orders"] | components["schemas"]["Record_ut_typed_products"]) & ({
|
|
@@ -173,9 +199,12 @@ export interface components {
|
|
| 173 |
sorts?: components["schemas"]["Sort"][];
|
| 174 |
source_kind: string;
|
| 175 |
/** @enum {string} */
|
| 176 |
-
source_sync: "synced" | "not_applicable" | "never_synced";
|
| 177 |
source_sync_reason?: string;
|
| 178 |
-
/**
|
|
|
|
|
|
|
|
|
|
| 179 |
source_synced_at: string | null;
|
| 180 |
source_version: unknown;
|
| 181 |
total_groups?: number;
|
|
|
|
| 74 |
Database: {
|
| 75 |
answerable: boolean;
|
| 76 |
database: components["schemas"]["DatabaseName"];
|
| 77 |
+
/**
|
| 78 |
+
* Format: date-time
|
| 79 |
+
* @description Time of the last recorded edit when source_sync is edited.
|
| 80 |
+
*/
|
| 81 |
+
last_edited_at?: string | null;
|
| 82 |
permitted: boolean;
|
| 83 |
reason?: string;
|
| 84 |
+
/** @enum {string} */
|
| 85 |
+
source_sync: "synced" | "edited" | "not_applicable" | "never_synced";
|
| 86 |
+
source_sync_reason?: string;
|
| 87 |
+
/**
|
| 88 |
+
* Format: date-time
|
| 89 |
+
* @description Time of the last successful source sync, never a read or edit time.
|
| 90 |
+
*/
|
| 91 |
+
source_synced_at: string | null;
|
| 92 |
} & {
|
| 93 |
[key: string]: unknown;
|
| 94 |
};
|
|
|
|
| 104 |
database: components["schemas"]["DatabaseName"];
|
| 105 |
fields: components["schemas"]["Field"][];
|
| 106 |
label?: string;
|
| 107 |
+
/**
|
| 108 |
+
* Format: date-time
|
| 109 |
+
* @description Time of the last recorded edit when source_sync is edited.
|
| 110 |
+
*/
|
| 111 |
+
last_edited_at?: string | null;
|
| 112 |
permission_scope_applied?: boolean;
|
| 113 |
/** Format: date-time */
|
| 114 |
retrieved_at?: string | null;
|
| 115 |
source_kind?: string;
|
| 116 |
/** @enum {string} */
|
| 117 |
+
source_sync: "synced" | "edited" | "not_applicable" | "never_synced";
|
| 118 |
source_sync_reason?: string;
|
| 119 |
+
/**
|
| 120 |
+
* Format: date-time
|
| 121 |
+
* @description Time of the last successful source sync, never a read or edit time.
|
| 122 |
+
*/
|
| 123 |
+
source_synced_at: string | null;
|
| 124 |
source_version?: unknown;
|
| 125 |
} & {
|
| 126 |
[key: string]: unknown;
|
|
|
|
| 182 |
groupBy?: components["schemas"]["GroupBy"][];
|
| 183 |
groups?: components["schemas"]["Group"][];
|
| 184 |
label?: string;
|
| 185 |
+
/**
|
| 186 |
+
* Format: date-time
|
| 187 |
+
* @description Time of the last recorded edit when source_sync is edited.
|
| 188 |
+
*/
|
| 189 |
+
last_edited_at?: string | null;
|
| 190 |
page: components["schemas"]["Page"];
|
| 191 |
permission_scope_applied?: boolean;
|
| 192 |
records: ((components["schemas"]["Record_ut_activity"] | components["schemas"]["Record_ut_typed_orders"] | components["schemas"]["Record_ut_typed_products"]) & ({
|
|
|
|
| 199 |
sorts?: components["schemas"]["Sort"][];
|
| 200 |
source_kind: string;
|
| 201 |
/** @enum {string} */
|
| 202 |
+
source_sync: "synced" | "edited" | "not_applicable" | "never_synced";
|
| 203 |
source_sync_reason?: string;
|
| 204 |
+
/**
|
| 205 |
+
* Format: date-time
|
| 206 |
+
* @description Time of the last successful source sync, never a read or edit time.
|
| 207 |
+
*/
|
| 208 |
source_synced_at: string | null;
|
| 209 |
source_version: unknown;
|
| 210 |
total_groups?: number;
|