Skip to content

Commit

Permalink
Update autogenerated frontend client
Browse files Browse the repository at this point in the history
  • Loading branch information
pbn4 committed Jun 29, 2021
1 parent 7de5c4b commit a4d4cea
Showing 1 changed file with 158 additions and 0 deletions.
158 changes: 158 additions & 0 deletions backend/core/types/src/backend-swagger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1434,6 +1434,110 @@ export class UnitsService {
}
}

export class UnitTypesService {
/**
* List unitTypes
*/
list(options: IRequestOptions = {}): Promise<UnitType[]> {
return new Promise((resolve, reject) => {
let url = basePath + '/unitTypes';

const configs: IRequestConfig = getConfigs('get', 'application/json', url, options);

let data = null;

configs.data = data;
axios(configs, resolve, reject);
});
}
/**
* Create unitType
*/
create(
params: {
/** requestBody */
body?: UnitTypeCreate;
} = {} as any,
options: IRequestOptions = {}
): Promise<UnitType> {
return new Promise((resolve, reject) => {
let url = basePath + '/unitTypes';

const configs: IRequestConfig = getConfigs('post', 'application/json', url, options);

let data = params.body;

configs.data = data;
axios(configs, resolve, reject);
});
}
/**
* Update unitType
*/
update(
params: {
/** requestBody */
body?: UnitTypeUpdate;
} = {} as any,
options: IRequestOptions = {}
): Promise<UnitType> {
return new Promise((resolve, reject) => {
let url = basePath + '/unitTypes/{unitTypeId}';

const configs: IRequestConfig = getConfigs('put', 'application/json', url, options);

let data = params.body;

configs.data = data;
axios(configs, resolve, reject);
});
}
/**
* Get unitType by id
*/
retrieve(
params: {
/** */
unitTypeId: string;
} = {} as any,
options: IRequestOptions = {}
): Promise<UnitType> {
return new Promise((resolve, reject) => {
let url = basePath + '/unitTypes/{unitTypeId}';
url = url.replace('{unitTypeId}', params['unitTypeId'] + '');

const configs: IRequestConfig = getConfigs('get', 'application/json', url, options);

let data = null;

configs.data = data;
axios(configs, resolve, reject);
});
}
/**
* Delete unitType by id
*/
delete(
params: {
/** */
unitTypeId: string;
} = {} as any,
options: IRequestOptions = {}
): Promise<any> {
return new Promise((resolve, reject) => {
let url = basePath + '/unitTypes/{unitTypeId}';
url = url.replace('{unitTypeId}', params['unitTypeId'] + '');

const configs: IRequestConfig = getConfigs('delete', 'application/json', url, options);

let data = null;

configs.data = data;
axios(configs, resolve, reject);
});
}
}

export class UserService {
/**
*
Expand Down Expand Up @@ -3034,6 +3138,15 @@ export interface Unit {
/** */
amiChart: CombinedAmiChartTypes;

/** */
unitTypeRef?: Id;

/** */
unitRentType?: Id;

/** */
unitAccessibilityPriorityType?: Id;

/** */
id: string;

Expand Down Expand Up @@ -3435,6 +3548,15 @@ export interface UnitCreate {

/** */
bmrProgramChart?: boolean;

/** */
unitTypeRef?: Id;

/** */
unitRentType?: Id;

/** */
unitAccessibilityPriorityType?: Id;
}

export interface ListingCreate {
Expand Down Expand Up @@ -3729,6 +3851,15 @@ export interface UnitUpdate {
/** */
bmrProgramChart?: boolean;

/** */
unitTypeRef?: Id;

/** */
unitRentType?: Id;

/** */
unitAccessibilityPriorityType?: Id;

/** */
id: string;
}
Expand Down Expand Up @@ -4201,6 +4332,33 @@ export interface TranslationUpdate {
translations: object;
}

export interface UnitType {
/** */
id: string;

/** */
createdAt: Date;

/** */
updatedAt: Date;

/** */
name: string;
}

export interface UnitTypeCreate {
/** */
name: string;
}

export interface UnitTypeUpdate {
/** */
name: string;

/** */
id: string;
}

export interface User {
/** */
roles: UserRole[];
Expand Down

0 comments on commit a4d4cea

Please sign in to comment.