diff --git a/schemas/app.json b/schemas/prototypeApplication.json similarity index 95% rename from schemas/app.json rename to schemas/prototypeApplication.json index adbb73cd..ceec3738 100644 --- a/schemas/app.json +++ b/schemas/prototypeApplication.json @@ -214,6 +214,6 @@ "type": "object" } }, - "description": "(Temporary name to not clash with the existing `Application` type)\nThe root specification for a planning application in England generated by a digital planning service", - "title": "App" + "description": "The root specification for a planning application in England generated by a digital planning service (prototype)", + "title": "PrototypeApplication" } \ No newline at end of file diff --git a/scripts/build-schema.sh b/scripts/build-schema.sh index 2eb42443..01b53d9d 100755 --- a/scripts/build-schema.sh +++ b/scripts/build-schema.sh @@ -7,8 +7,8 @@ version="${VERSION:-@next}" echo "Version set to $version" -dirs=("application" "app") -types=("Application" "App") +dirs=("application" "prototypeApplication") +types=("Application" "PrototypeApplication") for i in "${!dirs[@]}"; do dir=${dirs[$i]} diff --git a/types/schemas/app/ApplicationData.ts b/types/schemas/prototypeApplication/ApplicationData.ts similarity index 100% rename from types/schemas/app/ApplicationData.ts rename to types/schemas/prototypeApplication/ApplicationData.ts diff --git a/types/schemas/app/User.ts b/types/schemas/prototypeApplication/User.ts similarity index 100% rename from types/schemas/app/User.ts rename to types/schemas/prototypeApplication/User.ts diff --git a/types/schemas/app/index.ts b/types/schemas/prototypeApplication/index.ts similarity index 91% rename from types/schemas/app/index.ts rename to types/schemas/prototypeApplication/index.ts index 7bb032e8..065254e4 100644 --- a/types/schemas/app/index.ts +++ b/types/schemas/prototypeApplication/index.ts @@ -37,12 +37,11 @@ export type WorksToTreesApplications = ApplicationSpecification< >; /** - * @title App + * @title PrototypeApplication * @description - * (Temporary name to not clash with the existing `Application` type) - * The root specification for a planning application in England generated by a digital planning service + * The root specification for a planning application in England generated by a digital planning service (prototype) */ -export type App = +export type PrototypeApplication = | PlanningPermissionApplication | PriorApprovalApplication | WorksToTreesApplications;