From 45a909034a433e13a711594e369dc5c1fc93fd2c Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 17 Nov 2022 13:56:13 +0100 Subject: [PATCH] cleanup after old API --- src/Umbraco.Web.UI.Client/schemas/README.md | 3 - src/Umbraco.Web.UI.Client/schemas/api/api.yml | 624 ------------------ .../schemas/generated-schema.ts | 515 --------------- 3 files changed, 1142 deletions(-) delete mode 100644 src/Umbraco.Web.UI.Client/schemas/README.md delete mode 100644 src/Umbraco.Web.UI.Client/schemas/api/api.yml delete mode 100644 src/Umbraco.Web.UI.Client/schemas/generated-schema.ts diff --git a/src/Umbraco.Web.UI.Client/schemas/README.md b/src/Umbraco.Web.UI.Client/schemas/README.md deleted file mode 100644 index 3d2ba6c6f3..0000000000 --- a/src/Umbraco.Web.UI.Client/schemas/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# Schemas - -These schemas are auto-generated by certain processes and are not to be touched. \ No newline at end of file diff --git a/src/Umbraco.Web.UI.Client/schemas/api/api.yml b/src/Umbraco.Web.UI.Client/schemas/api/api.yml deleted file mode 100644 index acc0cf37d1..0000000000 --- a/src/Umbraco.Web.UI.Client/schemas/api/api.yml +++ /dev/null @@ -1,624 +0,0 @@ -openapi: 3.0.2 -info: - title: umbraco-backoffice-api - version: 1.0.0 -paths: - /install/settings: - get: - operationId: GetInstallSettings - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/InstallSettingsResponse' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /install/setup: - post: - operationId: PostInstallSetup - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InstallSetupRequest' - required: true - responses: - '201': - description: 201 response - '400': - description: 400 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /install/validateDatabase: - post: - operationId: PostInstallValidateDatabase - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InstallSetupDatabaseConfiguration' - required: true - responses: - '201': - description: 201 response - '400': - description: 400 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /manifests: - get: - operationId: Manifests - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/ManifestsResponse' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /manifests/packages: - get: - operationId: ManifestsPackages - responses: - '200': - description: 200 response - content: - application/json: - schema: - type: object - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /manifests/packages/installed: - get: - operationId: ManifestsPackagesInstalled - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/ManifestsPackagesInstalledResponse' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /published-cache/status: - get: - operationId: PublishedCacheStatus - responses: - '200': - description: 200 response - content: - application/json: - schema: - type: string - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /published-cache/reload: - post: - operationId: PublishedCacheReload - parameters: [] - responses: - '201': - description: 201 response - '400': - description: 400 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /published-cache/rebuild: - post: - operationId: PublishedCacheRebuild - parameters: [] - responses: - '201': - description: 201 response - '400': - description: 400 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /published-cache/collect: - get: - operationId: PublishedCacheCollect - responses: - '200': - description: 200 response - content: - application/json: - schema: - type: string - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /server/status: - get: - operationId: GetStatus - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/StatusResponse' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /server/version: - get: - operationId: GetVersion - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/VersionResponse' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /upgrade/settings: - get: - operationId: GetUpgradeSettings - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/UpgradeSettingsResponse' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /upgrade/authorize: - post: - operationId: PostUpgradeAuthorize - parameters: [] - responses: - '201': - description: 201 response - '400': - description: 400 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /user: - get: - operationId: GetUser - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/UserResponse' - '403': - description: 403 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /user/login: - post: - operationId: PostUserLogin - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/UserLoginRequest' - required: true - responses: - '201': - description: 201 response - '403': - description: 403 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /user/logout: - post: - operationId: PostUserLogout - responses: - '201': - description: 201 response - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /user/sections: - get: - operationId: GetAllowedSections - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/AllowedSectionsResponse' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /telemetry/ConsentLevel: - get: - operationId: GetConsentLevel - responses: - '200': - description: 200 response - content: - application/json: - schema: - $ref: '#/components/schemas/ConsentLevelSettings' - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - post: - operationId: PostConsentLevel - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConsentLevelSettings' - required: true - responses: - '201': - description: 201 response - '400': - description: 400 response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' - /telemetry/ConsentLevels: - get: - operationId: ConsentLevels - responses: - '200': - description: 200 response - content: - application/json: - schema: - type: array - items: - type: string - default: - description: default response - content: - application/json: - schema: - $ref: '#/components/schemas/ProblemDetails' -components: - schemas: - ConsentLevel: - type: string - enum: - - Minimal - - Basic - - Detailed - TelemetryModel: - type: object - properties: - level: - $ref: '#/components/schemas/ConsentLevel' - description: - type: string - required: - - level - - description - InstallUserModel: - type: object - properties: - minCharLength: - type: number - format: float - minNonAlphaNumericLength: - type: number - format: float - consentLevels: - type: array - items: - $ref: '#/components/schemas/TelemetryModel' - required: - - minCharLength - - minNonAlphaNumericLength - - consentLevels - InstallDatabaseModel: - type: object - properties: - id: - type: string - sortOrder: - type: number - format: float - displayName: - type: string - defaultDatabaseName: - type: string - providerName: - type: string - nullable: true - isConfigured: - type: boolean - requiresServer: - type: boolean - serverPlaceholder: - type: string - nullable: true - requiresCredentials: - type: boolean - supportsIntegratedAuthentication: - type: boolean - requiresConnectionTest: - type: boolean - required: - - id - - sortOrder - - displayName - - defaultDatabaseName - - providerName - - isConfigured - - requiresServer - - serverPlaceholder - - requiresCredentials - - supportsIntegratedAuthentication - - requiresConnectionTest - InstallSettingsResponse: - type: object - properties: - user: - $ref: '#/components/schemas/InstallUserModel' - databases: - type: array - items: - $ref: '#/components/schemas/InstallDatabaseModel' - required: - - user - - databases - ProblemDetails: - type: object - properties: - type: - type: string - status: - type: number - format: float - title: - type: string - detail: - type: string - instance: - type: string - errors: - type: object - required: - - type - - status - InstallSetupUserConfiguration: - type: object - properties: - name: - type: string - email: - type: string - password: - type: string - subscribeToNewsletter: - type: boolean - required: - - name - - email - - password - - subscribeToNewsletter - InstallSetupDatabaseConfiguration: - type: object - properties: - id: - type: string - server: - type: string - nullable: true - password: - type: string - nullable: true - username: - type: string - nullable: true - name: - type: string - nullable: true - providerName: - type: string - nullable: true - useIntegratedAuthentication: - type: boolean - nullable: true - connectionString: - type: string - nullable: true - InstallSetupRequest: - type: object - properties: - user: - $ref: '#/components/schemas/InstallSetupUserConfiguration' - telemetryLevel: - $ref: '#/components/schemas/ConsentLevel' - database: - $ref: '#/components/schemas/InstallSetupDatabaseConfiguration' - required: - - user - - telemetryLevel - ManifestsResponse: - type: object - properties: - manifests: - type: array - items: - type: object - required: - - manifests - PackageInstalled: - type: object - properties: - id: - type: string - name: - type: string - alias: - type: string - version: - type: string - hasMigrations: - type: boolean - hasPendingMigrations: - type: boolean - plans: - type: array - items: - type: object - required: - - id - - name - - alias - - version - - hasMigrations - - hasPendingMigrations - - plans - ManifestsPackagesInstalledResponse: - type: object - properties: - packages: - type: array - items: - $ref: '#/components/schemas/PackageInstalled' - required: - - packages - ServerStatus: - type: string - enum: - - running - - must-install - - must-upgrade - StatusResponse: - type: object - properties: - serverStatus: - $ref: '#/components/schemas/ServerStatus' - required: - - serverStatus - VersionResponse: - type: object - properties: - version: - type: string - required: - - version - UpgradeSettingsResponse: - type: object - properties: - currentState: - type: string - newState: - type: string - newVersion: - type: string - oldVersion: - type: string - reportUrl: - type: string - required: - - currentState - - newState - - newVersion - - oldVersion - - reportUrl - UserResponse: - type: object - properties: - username: - type: string - role: - type: string - required: - - username - - role - UserLoginRequest: - type: object - properties: - username: - type: string - password: - type: string - persist: - type: boolean - required: - - username - - password - - persist - AllowedSectionsResponse: - type: object - properties: - sections: - type: array - items: - type: string - required: - - sections - ConsentLevelSettings: - type: object - properties: - telemetryLevel: - $ref: '#/components/schemas/ConsentLevel' - required: - - telemetryLevel diff --git a/src/Umbraco.Web.UI.Client/schemas/generated-schema.ts b/src/Umbraco.Web.UI.Client/schemas/generated-schema.ts deleted file mode 100644 index 9a3b5ea48b..0000000000 --- a/src/Umbraco.Web.UI.Client/schemas/generated-schema.ts +++ /dev/null @@ -1,515 +0,0 @@ -/** - * This file was auto-generated by openapi-typescript. - * Do not make direct changes to the file. - */ - -export interface paths { - "/install/settings": { - get: operations["GetInstallSettings"]; - }; - "/install/setup": { - post: operations["PostInstallSetup"]; - }; - "/install/validateDatabase": { - post: operations["PostInstallValidateDatabase"]; - }; - "/manifests": { - get: operations["Manifests"]; - }; - "/manifests/packages": { - get: operations["ManifestsPackages"]; - }; - "/manifests/packages/installed": { - get: operations["ManifestsPackagesInstalled"]; - }; - "/published-cache/status": { - get: operations["PublishedCacheStatus"]; - }; - "/published-cache/reload": { - post: operations["PublishedCacheReload"]; - }; - "/published-cache/rebuild": { - post: operations["PublishedCacheRebuild"]; - }; - "/published-cache/collect": { - get: operations["PublishedCacheCollect"]; - }; - "/server/status": { - get: operations["GetStatus"]; - }; - "/server/version": { - get: operations["GetVersion"]; - }; - "/upgrade/settings": { - get: operations["GetUpgradeSettings"]; - }; - "/upgrade/authorize": { - post: operations["PostUpgradeAuthorize"]; - }; - "/user": { - get: operations["GetUser"]; - }; - "/user/login": { - post: operations["PostUserLogin"]; - }; - "/user/logout": { - post: operations["PostUserLogout"]; - }; - "/user/sections": { - get: operations["GetAllowedSections"]; - }; - "/telemetry/ConsentLevel": { - get: operations["GetConsentLevel"]; - post: operations["PostConsentLevel"]; - }; - "/telemetry/ConsentLevels": { - get: operations["ConsentLevels"]; - }; -} - -export interface components { - schemas: { - /** @enum {string} */ - ConsentLevel: "Minimal" | "Basic" | "Detailed"; - TelemetryModel: { - level: components["schemas"]["ConsentLevel"]; - description: string; - }; - InstallUserModel: { - /** Format: float */ - minCharLength: number; - /** Format: float */ - minNonAlphaNumericLength: number; - consentLevels: components["schemas"]["TelemetryModel"][]; - }; - InstallDatabaseModel: { - id: string; - /** Format: float */ - sortOrder: number; - displayName: string; - defaultDatabaseName: string; - providerName: string | null; - isConfigured: boolean; - requiresServer: boolean; - serverPlaceholder: string | null; - requiresCredentials: boolean; - supportsIntegratedAuthentication: boolean; - requiresConnectionTest: boolean; - }; - InstallSettingsResponse: { - user: components["schemas"]["InstallUserModel"]; - databases: components["schemas"]["InstallDatabaseModel"][]; - }; - ProblemDetails: { - type: string; - /** Format: float */ - status: number; - title?: string; - detail?: string; - instance?: string; - errors?: { [key: string]: unknown }; - }; - InstallSetupUserConfiguration: { - name: string; - email: string; - password: string; - subscribeToNewsletter: boolean; - }; - InstallSetupDatabaseConfiguration: { - id?: string; - server?: string | null; - password?: string | null; - username?: string | null; - name?: string | null; - providerName?: string | null; - useIntegratedAuthentication?: boolean | null; - connectionString?: string | null; - }; - InstallSetupRequest: { - user: components["schemas"]["InstallSetupUserConfiguration"]; - telemetryLevel: components["schemas"]["ConsentLevel"]; - database?: components["schemas"]["InstallSetupDatabaseConfiguration"]; - }; - ManifestsResponse: { - manifests: { [key: string]: unknown }[]; - }; - PackageInstalled: { - id: string; - name: string; - alias: string; - version: string; - hasMigrations: boolean; - hasPendingMigrations: boolean; - plans: { [key: string]: unknown }[]; - }; - ManifestsPackagesInstalledResponse: { - packages: components["schemas"]["PackageInstalled"][]; - }; - /** @enum {string} */ - ServerStatus: "running" | "must-install" | "must-upgrade"; - StatusResponse: { - serverStatus: components["schemas"]["ServerStatus"]; - }; - VersionResponse: { - version: string; - }; - UpgradeSettingsResponse: { - currentState: string; - newState: string; - newVersion: string; - oldVersion: string; - reportUrl: string; - }; - UserResponse: { - username: string; - role: string; - }; - UserLoginRequest: { - username: string; - password: string; - persist: boolean; - }; - AllowedSectionsResponse: { - sections: string[]; - }; - ConsentLevelSettings: { - telemetryLevel: components["schemas"]["ConsentLevel"]; - }; - }; -} - -export interface operations { - GetInstallSettings: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["InstallSettingsResponse"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PostInstallSetup: { - parameters: {}; - responses: { - /** 201 response */ - 201: unknown; - /** 400 response */ - 400: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["InstallSetupRequest"]; - }; - }; - }; - PostInstallValidateDatabase: { - parameters: {}; - responses: { - /** 201 response */ - 201: unknown; - /** 400 response */ - 400: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["InstallSetupDatabaseConfiguration"]; - }; - }; - }; - Manifests: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["ManifestsResponse"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - ManifestsPackages: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": { [key: string]: unknown }; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - ManifestsPackagesInstalled: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["ManifestsPackagesInstalledResponse"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PublishedCacheStatus: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": string; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PublishedCacheReload: { - parameters: {}; - responses: { - /** 201 response */ - 201: unknown; - /** 400 response */ - 400: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PublishedCacheRebuild: { - parameters: {}; - responses: { - /** 201 response */ - 201: unknown; - /** 400 response */ - 400: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PublishedCacheCollect: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": string; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - GetStatus: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["StatusResponse"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - GetVersion: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["VersionResponse"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - GetUpgradeSettings: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["UpgradeSettingsResponse"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PostUpgradeAuthorize: { - parameters: {}; - responses: { - /** 201 response */ - 201: unknown; - /** 400 response */ - 400: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - GetUser: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["UserResponse"]; - }; - }; - /** 403 response */ - 403: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PostUserLogin: { - parameters: {}; - responses: { - /** 201 response */ - 201: unknown; - /** 403 response */ - 403: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["UserLoginRequest"]; - }; - }; - }; - PostUserLogout: { - responses: { - /** 201 response */ - 201: unknown; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - GetAllowedSections: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["AllowedSectionsResponse"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - GetConsentLevel: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": components["schemas"]["ConsentLevelSettings"]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; - PostConsentLevel: { - parameters: {}; - responses: { - /** 201 response */ - 201: unknown; - /** 400 response */ - 400: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ConsentLevelSettings"]; - }; - }; - }; - ConsentLevels: { - responses: { - /** 200 response */ - 200: { - content: { - "application/json": string[]; - }; - }; - /** default response */ - default: { - content: { - "application/json": components["schemas"]["ProblemDetails"]; - }; - }; - }; - }; -} - -export interface external {}