From c7fa94fb289b295a60660f439b06eeaaf84092b2 Mon Sep 17 00:00:00 2001 From: kylebouchard Date: Mon, 12 Feb 2024 09:19:10 -0500 Subject: [PATCH] update --- .openapi-generator/FILES | 1 + .openapi-generator/VERSION | 2 +- api/actuators.service.ts | 28 +++++++++---- api/default.service.ts | 70 +++++++++++++++++++++++--------- api/measurements.service.ts | 28 +++++++++---- api/prototypes.service.ts | 42 +++++++++++++------ api/sensors.service.ts | 42 +++++++++++++------ model/actuator.ts | 12 +++--- model/hTTPValidationError.ts | 3 +- model/measurement.ts | 8 ++-- model/models.ts | 1 + model/picture.ts | 2 +- model/prototype.ts | 4 +- model/sensor.ts | 4 +- model/sensorType.ts | 13 +++++- model/token.ts | 4 +- model/validationError.ts | 7 ++-- model/validationErrorLocInner.ts | 16 ++++++++ openapitools.json | 7 ++++ package.json | 6 +-- 20 files changed, 213 insertions(+), 87 deletions(-) create mode 100644 model/validationErrorLocInner.ts create mode 100644 openapitools.json diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 3300313..e88453b 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -21,6 +21,7 @@ model/sensor.ts model/sensorType.ts model/token.ts model/validationError.ts +model/validationErrorLocInner.ts ng-package.json package.json param.ts diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index fff4bdd..8b23b8d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.3.0-SNAPSHOT \ No newline at end of file +7.3.0 \ No newline at end of file diff --git a/api/actuators.service.ts b/api/actuators.service.ts index ee7a5dc..3b6b201 100644 --- a/api/actuators.service.ts +++ b/api/actuators.service.ts @@ -99,10 +99,10 @@ export class ActuatorsService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public actuators(prototypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public actuators(prototypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public actuators(prototypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public actuators(prototypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public actuators(prototypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public actuators(prototypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public actuators(prototypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public actuators(prototypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (prototypeId === null || prototypeId === undefined) { throw new Error('Required parameter prototypeId was null or undefined when calling actuators.'); } @@ -126,6 +126,11 @@ export class ActuatorsService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -146,6 +151,7 @@ export class ActuatorsService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -157,10 +163,10 @@ export class ActuatorsService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public putActuators(actuator: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public putActuators(actuator: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public putActuators(actuator: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public putActuators(actuator: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public putActuators(actuator: Array, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public putActuators(actuator: Array, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public putActuators(actuator: Array, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public putActuators(actuator: Array, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (actuator === null || actuator === undefined) { throw new Error('Required parameter actuator was null or undefined when calling putActuators.'); } @@ -184,6 +190,11 @@ export class ActuatorsService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + // to determine the Content-Type header const consumes: string[] = [ @@ -214,6 +225,7 @@ export class ActuatorsService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); diff --git a/api/default.service.ts b/api/default.service.ts index 43f1c84..bc4891d 100644 --- a/api/default.service.ts +++ b/api/default.service.ts @@ -119,10 +119,10 @@ export class DefaultService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public createUserAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public createUserAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public createUserAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public createUserAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public createUserAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public createUserAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createUserAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public createUserAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling createUserAccessToken.'); } @@ -149,6 +149,11 @@ export class DefaultService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + // to determine the Content-Type header const consumes: string[] = [ 'application/x-www-form-urlencoded' @@ -204,6 +209,7 @@ export class DefaultService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -220,10 +226,10 @@ export class DefaultService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public loginForAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public loginForAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public loginForAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public loginForAccessToken(username: any, password: any, grantType?: any, scope?: any, clientId?: any, clientSecret?: any, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public loginForAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public loginForAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public loginForAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public loginForAccessToken(username: string, password: string, grantType?: string, scope?: string, clientId?: string, clientSecret?: string, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (username === null || username === undefined) { throw new Error('Required parameter username was null or undefined when calling loginForAccessToken.'); } @@ -250,6 +256,11 @@ export class DefaultService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + // to determine the Content-Type header const consumes: string[] = [ 'application/x-www-form-urlencoded' @@ -305,6 +316,7 @@ export class DefaultService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -315,10 +327,10 @@ export class DefaultService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public picture(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public picture(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public picture(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public picture(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public picture(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public picture(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public picture(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public picture(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -339,6 +351,11 @@ export class DefaultService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -359,6 +376,7 @@ export class DefaultService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -369,10 +387,10 @@ export class DefaultService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public readItems(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public readItems(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public readItems(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public readItems(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public readItems(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public readItems(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public readItems(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public readItems(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -400,6 +418,11 @@ export class DefaultService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -420,6 +443,7 @@ export class DefaultService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -430,10 +454,10 @@ export class DefaultService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public userLogOut(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public userLogOut(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public userLogOut(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public userLogOut(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public userLogOut(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public userLogOut(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userLogOut(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public userLogOut(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -461,6 +485,11 @@ export class DefaultService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -481,6 +510,7 @@ export class DefaultService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); diff --git a/api/measurements.service.ts b/api/measurements.service.ts index b499f2c..70a534e 100644 --- a/api/measurements.service.ts +++ b/api/measurements.service.ts @@ -102,10 +102,10 @@ export class MeasurementsService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public measurements(prototypeId: number, sensorType: SensorType, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public measurements(prototypeId: number, sensorType: SensorType, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public measurements(prototypeId: number, sensorType: SensorType, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public measurements(prototypeId: number, sensorType: SensorType, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public measurements(prototypeId: number, sensorType: SensorType, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public measurements(prototypeId: number, sensorType: SensorType, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public measurements(prototypeId: number, sensorType: SensorType, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public measurements(prototypeId: number, sensorType: SensorType, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (prototypeId === null || prototypeId === undefined) { throw new Error('Required parameter prototypeId was null or undefined when calling measurements.'); } @@ -132,6 +132,11 @@ export class MeasurementsService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -152,6 +157,7 @@ export class MeasurementsService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -165,10 +171,10 @@ export class MeasurementsService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public postMeasurement(prototypeId: number, sensorType: SensorType, value: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (prototypeId === null || prototypeId === undefined) { throw new Error('Required parameter prototypeId was null or undefined when calling postMeasurement.'); } @@ -211,6 +217,11 @@ export class MeasurementsService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -232,6 +243,7 @@ export class MeasurementsService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); diff --git a/api/prototypes.service.ts b/api/prototypes.service.ts index 56df17a..3550b7b 100644 --- a/api/prototypes.service.ts +++ b/api/prototypes.service.ts @@ -99,10 +99,10 @@ export class PrototypesService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public postPrototype(prototype: Prototype, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public postPrototype(prototype: Prototype, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public postPrototype(prototype: Prototype, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public postPrototype(prototype: Prototype, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public postPrototype(prototype: Prototype, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public postPrototype(prototype: Prototype, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public postPrototype(prototype: Prototype, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public postPrototype(prototype: Prototype, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (prototype === null || prototype === undefined) { throw new Error('Required parameter prototype was null or undefined when calling postPrototype.'); } @@ -133,6 +133,11 @@ export class PrototypesService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + // to determine the Content-Type header const consumes: string[] = [ @@ -163,6 +168,7 @@ export class PrototypesService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -174,10 +180,10 @@ export class PrototypesService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public prototype(prototypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public prototype(prototypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public prototype(prototypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public prototype(prototypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public prototype(prototypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public prototype(prototypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public prototype(prototypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public prototype(prototypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (prototypeId === null || prototypeId === undefined) { throw new Error('Required parameter prototypeId was null or undefined when calling prototype.'); } @@ -201,6 +207,11 @@ export class PrototypesService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -221,6 +232,7 @@ export class PrototypesService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -231,10 +243,10 @@ export class PrototypesService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public prototypes(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public prototypes(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public prototypes(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public prototypes(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public prototypes(observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public prototypes(observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public prototypes(observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public prototypes(observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarHeaders = this.defaultHeaders; @@ -255,6 +267,11 @@ export class PrototypesService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -275,6 +292,7 @@ export class PrototypesService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); diff --git a/api/sensors.service.ts b/api/sensors.service.ts index 67c8e2b..96b49cc 100644 --- a/api/sensors.service.ts +++ b/api/sensors.service.ts @@ -102,10 +102,10 @@ export class SensorsService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public postSensor(prototypeId: number, sensorType: SensorType, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable; - public postSensor(prototypeId: number, sensorType: SensorType, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public postSensor(prototypeId: number, sensorType: SensorType, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public postSensor(prototypeId: number, sensorType: SensorType, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public postSensor(prototypeId: number, sensorType: SensorType, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable; + public postSensor(prototypeId: number, sensorType: SensorType, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public postSensor(prototypeId: number, sensorType: SensorType, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public postSensor(prototypeId: number, sensorType: SensorType, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (prototypeId === null || prototypeId === undefined) { throw new Error('Required parameter prototypeId was null or undefined when calling postSensor.'); } @@ -138,6 +138,11 @@ export class SensorsService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -159,6 +164,7 @@ export class SensorsService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -170,10 +176,10 @@ export class SensorsService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public sensor(prototypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public sensor(prototypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public sensor(prototypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public sensor(prototypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public sensor(prototypeId: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public sensor(prototypeId: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public sensor(prototypeId: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public sensor(prototypeId: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { if (prototypeId === null || prototypeId === undefined) { throw new Error('Required parameter prototypeId was null or undefined when calling sensor.'); } @@ -197,6 +203,11 @@ export class SensorsService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -217,6 +228,7 @@ export class SensorsService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); @@ -229,10 +241,10 @@ export class SensorsService { * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body. * @param reportProgress flag to report request and response progress. */ - public sensors(sensorType?: string, prototypeId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>; - public sensors(sensorType?: string, prototypeId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public sensors(sensorType?: string, prototypeId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable>>; - public sensors(sensorType?: string, prototypeId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext}): Observable { + public sensors(sensorType?: string, prototypeId?: number, observe?: 'body', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>; + public sensors(sensorType?: string, prototypeId?: number, observe?: 'response', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public sensors(sensorType?: string, prototypeId?: number, observe?: 'events', reportProgress?: boolean, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable>>; + public sensors(sensorType?: string, prototypeId?: number, observe: any = 'body', reportProgress: boolean = false, options?: {httpHeaderAccept?: 'application/json', context?: HttpContext, transferCache?: boolean}): Observable { let localVarQueryParameters = new HttpParams({encoder: this.encoder}); if (sensorType !== undefined && sensorType !== null) { @@ -263,6 +275,11 @@ export class SensorsService { localVarHttpContext = new HttpContext(); } + let localVarTransferCache: boolean | undefined = options && options.transferCache; + if (localVarTransferCache === undefined) { + localVarTransferCache = true; + } + let responseType_: 'text' | 'json' | 'blob' = 'json'; if (localVarHttpHeaderAcceptSelected) { @@ -284,6 +301,7 @@ export class SensorsService { withCredentials: this.configuration.withCredentials, headers: localVarHeaders, observe: observe, + transferCache: localVarTransferCache, reportProgress: reportProgress } ); diff --git a/model/actuator.ts b/model/actuator.ts index 330bdfe..8bcd538 100644 --- a/model/actuator.ts +++ b/model/actuator.ts @@ -12,11 +12,11 @@ export interface Actuator { - actuator_name: any | null; - prototype_id: any | null; - low: any | null; - high: any | null; - actuator_id: any | null; - enabled: any | null; + actuator_name: string; + prototype_id: number; + low: number; + high: number; + actuator_id: number; + enabled: boolean; } diff --git a/model/hTTPValidationError.ts b/model/hTTPValidationError.ts index af94a50..024a920 100644 --- a/model/hTTPValidationError.ts +++ b/model/hTTPValidationError.ts @@ -9,9 +9,10 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { ValidationError } from './validationError'; export interface HTTPValidationError { - detail?: any | null; + detail?: Array; } diff --git a/model/measurement.ts b/model/measurement.ts index efe2a2a..a65b347 100644 --- a/model/measurement.ts +++ b/model/measurement.ts @@ -12,9 +12,9 @@ export interface Measurement { - value: any | null; - sensor_id: any | null; - measurement_id: any | null; - timestamp: any | null; + value: number; + sensor_id: number; + measurement_id: number; + timestamp: string; } diff --git a/model/models.ts b/model/models.ts index cbbee58..3b99c9e 100644 --- a/model/models.ts +++ b/model/models.ts @@ -7,3 +7,4 @@ export * from './sensor'; export * from './sensorType'; export * from './token'; export * from './validationError'; +export * from './validationErrorLocInner'; diff --git a/model/picture.ts b/model/picture.ts index 358abc2..4ffdd36 100644 --- a/model/picture.ts +++ b/model/picture.ts @@ -12,6 +12,6 @@ export interface Picture { - data: any | null; + data: string; } diff --git a/model/prototype.ts b/model/prototype.ts index ddd2955..88c3ac0 100644 --- a/model/prototype.ts +++ b/model/prototype.ts @@ -12,7 +12,7 @@ export interface Prototype { - prototype_id: any | null; - prototype_name: any | null; + prototype_id: number; + prototype_name: string; } diff --git a/model/sensor.ts b/model/sensor.ts index 2b55487..f512b18 100644 --- a/model/sensor.ts +++ b/model/sensor.ts @@ -14,8 +14,8 @@ import { SensorType } from './sensorType'; export interface Sensor { sensor_type: SensorType; - prototype_id: any | null; - sensor_id: any | null; + prototype_id: number; + sensor_id: number; } export namespace Sensor { } diff --git a/model/sensorType.ts b/model/sensorType.ts index 64a797c..8770302 100644 --- a/model/sensorType.ts +++ b/model/sensorType.ts @@ -14,6 +14,15 @@ /** * An enumeration. */ -export interface SensorType { -} +export type SensorType = 'temperature' | 'humidity' | 'ec' | 'ph' | 'water_level' | 'boolean_water_level' | 'oxygen'; + +export const SensorType = { + Temperature: 'temperature' as SensorType, + Humidity: 'humidity' as SensorType, + Ec: 'ec' as SensorType, + Ph: 'ph' as SensorType, + WaterLevel: 'water_level' as SensorType, + BooleanWaterLevel: 'boolean_water_level' as SensorType, + Oxygen: 'oxygen' as SensorType +}; diff --git a/model/token.ts b/model/token.ts index bb96f77..2332583 100644 --- a/model/token.ts +++ b/model/token.ts @@ -12,7 +12,7 @@ export interface Token { - access_token: any | null; - token_type: any | null; + access_token: string; + token_type: string; } diff --git a/model/validationError.ts b/model/validationError.ts index 8560508..e364995 100644 --- a/model/validationError.ts +++ b/model/validationError.ts @@ -9,11 +9,12 @@ * https://openapi-generator.tech * Do not edit the class manually. */ +import { ValidationErrorLocInner } from './validationErrorLocInner'; export interface ValidationError { - loc: any | null; - msg: any | null; - type: any | null; + loc: Array; + msg: string; + type: string; } diff --git a/model/validationErrorLocInner.ts b/model/validationErrorLocInner.ts new file mode 100644 index 0000000..86281fb --- /dev/null +++ b/model/validationErrorLocInner.ts @@ -0,0 +1,16 @@ +/** + * FastAPI + * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * + * The version of the OpenAPI document: 0.1.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +export interface ValidationErrorLocInner { +} + diff --git a/openapitools.json b/openapitools.json new file mode 100644 index 0000000..9841a49 --- /dev/null +++ b/openapitools.json @@ -0,0 +1,7 @@ +{ + "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", + "spaces": 2, + "generator-cli": { + "version": "7.3.0" + } +} diff --git a/package.json b/package.json index 3cf1323..8314985 100644 --- a/package.json +++ b/package.json @@ -25,11 +25,11 @@ "@angular/compiler-cli": "^17.1.0", "@angular/core": "^17.1.0", "@angular/platform-browser": "^17.1.0", - "ng-packagr": "^16.0.0", + "ng-packagr": "^17.0.3", "reflect-metadata": "^0.1.3", "rxjs": "^7.4.0", - "typescript": ">=4.9.3 <5.2.0", - "zone.js": "^0.13.0" + "typescript": ">=4.9.3 <5.3.0", + "zone.js": "^0.14.0" }, "publishConfig": { "registry": "https://git.aquapoly.ca/kylebouchard/Aquadash-backend-client"