UNPKG

@simplyhomes/sos-sdk

Version:

TypeScript SDK for Simply Homes SoS API v4

45 lines (44 loc) 1.6 kB
/* tslint:disable */ /* eslint-disable */ /** * API v4 * Swagger documentation for API v4 * * The version of the OpenAPI document: 4.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import { V4EntitiesGetEntitiesSchemaResponseDtoFromJSON, } from '../models/index'; /** * */ export class EntitiesApi extends runtime.BaseAPI { /** * Returns the schema definitions for all base entities used in the API. This endpoint is primarily for OpenAPI documentation purposes. * Get all entity schemas */ async v4EntitiesControllerGetEntitiesSchemaV4Raw(initOverrides) { const queryParameters = {}; const headerParameters = {}; let urlPath = `/v4/entities/schema`; const response = await this.request({ path: urlPath, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => V4EntitiesGetEntitiesSchemaResponseDtoFromJSON(jsonValue)); } /** * Returns the schema definitions for all base entities used in the API. This endpoint is primarily for OpenAPI documentation purposes. * Get all entity schemas */ async v4EntitiesControllerGetEntitiesSchemaV4(initOverrides) { const response = await this.v4EntitiesControllerGetEntitiesSchemaV4Raw(initOverrides); return await response.value(); } }