From 868d26f3be847508d6aeb2a9ee887e9d38511338 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Thu, 30 Jun 2022 13:34:02 +0200 Subject: [PATCH] move properties to 'user' model and rename a few database props --- src/Umbraco.Web.UI.Client/schemas/api/api.yml | 36 +++++++++++-------- .../temp-schema-generator/installer.ts | 18 ++++++---- 2 files changed, 32 insertions(+), 22 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/schemas/api/api.yml b/src/Umbraco.Web.UI.Client/schemas/api/api.yml index fa5d65f929..25f76ca20a 100644 --- a/src/Umbraco.Web.UI.Client/schemas/api/api.yml +++ b/src/Umbraco.Web.UI.Client/schemas/api/api.yml @@ -258,6 +258,22 @@ components: 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: @@ -272,10 +288,10 @@ components: username: type: string nullable: true - databaseName: + name: type: string nullable: true - databaseType: + providerName: type: string nullable: true useIntegratedAuthentication: @@ -287,25 +303,15 @@ components: InstallSetupRequest: type: object properties: - name: - type: string - email: - type: string - password: - type: string - subscribeToNewsletter: - type: boolean + user: + $ref: '#/components/schemas/InstallSetupUserConfiguration' telemetryLevel: $ref: '#/components/schemas/ConsentLevel' database: $ref: '#/components/schemas/InstallSetupDatabaseConfiguration' required: - - name - - email - - password - - subscribeToNewsletter + - user - telemetryLevel - - database InstallValidateDatabaseRequest: type: object properties: diff --git a/src/Umbraco.Web.UI.Client/temp-schema-generator/installer.ts b/src/Umbraco.Web.UI.Client/temp-schema-generator/installer.ts index 786396cdde..f4d0f4df6b 100644 --- a/src/Umbraco.Web.UI.Client/temp-schema-generator/installer.ts +++ b/src/Umbraco.Web.UI.Client/temp-schema-generator/installer.ts @@ -45,12 +45,9 @@ export class PostInstallValidateDatabase { } export interface InstallSetupRequest { - name: string; - email: string; - password: string; - subscribeToNewsletter: boolean; + user: InstallSetupUserConfiguration; telemetryLevel: ConsentLevel; - database: InstallSetupDatabaseConfiguration; + database?: InstallSetupDatabaseConfiguration; } export interface InstallValidateDatabaseRequest { @@ -68,13 +65,20 @@ export interface InstallUserModel { consentLevels: TelemetryModel[]; } +export interface InstallSetupUserConfiguration { + name: string; + email: string; + password: string; + subscribeToNewsletter: boolean; +} + export interface InstallSetupDatabaseConfiguration { id?: string; server?: string | null; password?: string | null; username?: string | null; - databaseName?: string | null; - databaseType?: string | null; + name?: string | null; + providerName?: string | null; useIntegratedAuthentication?: boolean | null; connectionString?: string | null; }