move properties to 'user' model and rename a few database props

This commit is contained in:
Jacob Overgaard
2022-06-30 13:34:02 +02:00
parent ff9e24e7d1
commit 868d26f3be
2 changed files with 32 additions and 22 deletions

View File

@@ -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:

View File

@@ -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;
}