From 98d9d664ce26355d2f8f476ea6d1bb12ad991aeb Mon Sep 17 00:00:00 2001 From: Paige Niedringhaus Date: Fri, 4 Aug 2023 14:14:25 -0400 Subject: [PATCH] docs: generate fresh docs --- src/.openapi-generator/FILES | 6 + src/README.md | 3 + src/docs/Device.md | 1 + .../GetRouteLogsByRoute200ResponseInner.md | 13 ++ src/docs/RouteLogsApi.md | 120 +++++++++++ src/src/api/RouteLogsApi.js | 193 +++++++++++++++++ src/src/index.js | 14 ++ src/src/model/Device.js | 8 + .../GetRouteLogsByRoute200ResponseInner.js | 194 ++++++++++++++++++ src/test/api/RouteLogsApi.spec.js | 68 ++++++ ...etRouteLogsByRoute200ResponseInner.spec.js | 95 +++++++++ 11 files changed, 715 insertions(+) create mode 100644 src/docs/GetRouteLogsByRoute200ResponseInner.md create mode 100644 src/docs/RouteLogsApi.md create mode 100644 src/src/api/RouteLogsApi.js create mode 100644 src/src/model/GetRouteLogsByRoute200ResponseInner.js create mode 100644 src/test/api/RouteLogsApi.spec.js create mode 100644 src/test/model/GetRouteLogsByRoute200ResponseInner.spec.js diff --git a/src/.openapi-generator/FILES b/src/.openapi-generator/FILES index 939bde6e..a9f83249 100644 --- a/src/.openapi-generator/FILES +++ b/src/.openapi-generator/FILES @@ -48,6 +48,7 @@ docs/GetProjectFleets200Response.md docs/GetProjectMembers200Response.md docs/GetProjectProducts200Response.md docs/GetProjects200Response.md +docs/GetRouteLogsByRoute200ResponseInner.md docs/Google.md docs/HandleNoteChanges200Response.md docs/HandleNoteGet200Response.md @@ -75,6 +76,7 @@ docs/Radresponder.md docs/Role.md docs/Route.md docs/RouteApi.md +docs/RouteLogsApi.md docs/RouteSchema.md docs/Snowflake.md docs/SnowflakeTransform.md @@ -99,6 +101,7 @@ src/api/NotesApi.js src/api/ProductApi.js src/api/ProjectApi.js src/api/RouteApi.js +src/api/RouteLogsApi.js src/index.js src/model/Aws.js src/model/Azure.js @@ -138,6 +141,7 @@ src/model/GetProjectFleets200Response.js src/model/GetProjectMembers200Response.js src/model/GetProjectProducts200Response.js src/model/GetProjects200Response.js +src/model/GetRouteLogsByRoute200ResponseInner.js src/model/Google.js src/model/HandleNoteChanges200Response.js src/model/HandleNoteGet200Response.js @@ -169,3 +173,5 @@ src/model/TowerLocation.js src/model/Twilio.js src/model/UpdateFleetRequest.js src/model/UserDbRoute.js +test/api/RouteLogsApi.spec.js +test/model/GetRouteLogsByRoute200ResponseInner.spec.js diff --git a/src/README.md b/src/README.md index e6587ada..d840bf31 100644 --- a/src/README.md +++ b/src/README.md @@ -209,6 +209,8 @@ All URIs are relative to *https://api.notefile.net* | _NotehubJs.RouteApi_ | [**getRoute**](docs/RouteApi.md#getRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID} | | _NotehubJs.RouteApi_ | [**getRoutes**](docs/RouteApi.md#getRoutes) | **GET** /v1/projects/{projectUID}/routes | | _NotehubJs.RouteApi_ | [**updateRoute**](docs/RouteApi.md#updateRoute) | **PUT** /v1/projects/{projectUID}/routes/{routeUID} | +| _NotehubJs.RouteLogsApi_ | [**getRouteLogsByEvent**](docs/RouteLogsApi.md#getRouteLogsByEvent) | **GET** /v1/projects/{projectUID}/events/{eventUID}/route-logs | +| _NotehubJs.RouteLogsApi_ | [**getRouteLogsByRoute**](docs/RouteLogsApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID}/route-logs | ## Documentation for Models @@ -250,6 +252,7 @@ All URIs are relative to *https://api.notefile.net* - [NotehubJs.GetProjectMembers200Response](docs/GetProjectMembers200Response.md) - [NotehubJs.GetProjectProducts200Response](docs/GetProjectProducts200Response.md) - [NotehubJs.GetProjects200Response](docs/GetProjects200Response.md) +- [NotehubJs.GetRouteLogsByRoute200ResponseInner](docs/GetRouteLogsByRoute200ResponseInner.md) - [NotehubJs.Google](docs/Google.md) - [NotehubJs.HandleNoteChanges200Response](docs/HandleNoteChanges200Response.md) - [NotehubJs.HandleNoteGet200Response](docs/HandleNoteGet200Response.md) diff --git a/src/docs/Device.md b/src/docs/Device.md index 45b3b003..70b95b2d 100644 --- a/src/docs/Device.md +++ b/src/docs/Device.md @@ -19,3 +19,4 @@ | **temperature** | **Number** | | | **dfu** | [**DFUEnv**](DFUEnv.md) | | [optional] | | **sku** | **String** | | [optional] | +| **disabled** | **Boolean** | | [optional] | diff --git a/src/docs/GetRouteLogsByRoute200ResponseInner.md b/src/docs/GetRouteLogsByRoute200ResponseInner.md new file mode 100644 index 00000000..93285087 --- /dev/null +++ b/src/docs/GetRouteLogsByRoute200ResponseInner.md @@ -0,0 +1,13 @@ +# NotehubJs.GetRouteLogsByRoute200ResponseInner + +## Properties + +| Name | Type | Description | Notes | +| ------------ | ----------- | ------------------------------------- | ---------- | +| **date** | **String** | The date of the logs. | [optional] | +| **routeUID** | **String** | The route UID. | [optional] | +| **eventUID** | **String** | The event UID. | [optional] | +| **attn** | **Boolean** | Whether the event was routed in error | [optional] | +| **status** | **String** | The status of the event. | [optional] | +| **text** | **String** | The response body of the route. | [optional] | +| **url** | **String** | The URL of the route. | [optional] | diff --git a/src/docs/RouteLogsApi.md b/src/docs/RouteLogsApi.md new file mode 100644 index 00000000..c53fff70 --- /dev/null +++ b/src/docs/RouteLogsApi.md @@ -0,0 +1,120 @@ +# NotehubJs.RouteLogsApi + +All URIs are relative to *https://api.notefile.net* + +| Method | HTTP request | Description | +| -------------------------------------------------------------- | -------------------------------------------------------------- | ----------- | +| [**getRouteLogsByEvent**](RouteLogsApi.md#getRouteLogsByEvent) | **GET** /v1/projects/{projectUID}/events/{eventUID}/route-logs | +| [**getRouteLogsByRoute**](RouteLogsApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID}/route-logs | + +## getRouteLogsByEvent + +> [GetRouteLogsByRoute200ResponseInner] getRouteLogsByEvent(projectUID, eventUID) + +Get Route Logs by Event UID + +### Example + +```javascript +import * as NotehubJs from '@blues-inc/notehub-js'; +let defaultClient = NotehubJs.ApiClient.instance; +// Configure API key authorization: api_key +let api_key = defaultClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; + +let apiInstance = new NotehubJs.RouteLogsApi(); +let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String | +let eventUID = 4506f411-dea6-44a0-9743-1130f57d7747; // String | +apiInstance.getRouteLogsByEvent(projectUID, eventUID).then((data) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(data)); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +| Name | Type | Description | Notes | +| -------------- | ---------- | ----------- | ----- | +| **projectUID** | **String** | | +| **eventUID** | **String** | | + +### Return type + +[**[GetRouteLogsByRoute200ResponseInner]**](GetRouteLogsByRoute200ResponseInner.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +## getRouteLogsByRoute + +> [GetRouteLogsByRoute200ResponseInner] getRouteLogsByRoute(projectUID, routeUID, opts) + +Get Route Logs by Route UID + +### Example + +```javascript +import * as NotehubJs from '@blues-inc/notehub-js'; +let defaultClient = NotehubJs.ApiClient.instance; +// Configure API key authorization: api_key +let api_key = defaultClient.authentications['api_key']; +api_key.apiKey = 'YOUR API KEY'; + +let apiInstance = new NotehubJs.RouteLogsApi(); +let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String | +let routeUID = route:cbd20093cba58392c9f9bbdd0cdeb1a0; // String | +let opts = { + 'pageSize': 50, // Number | + 'pageNum': 1, // Number | + 'deviceUID': "deviceUID_example", // String | A Device UID. + 'sortBy': "'captured'", // String | + 'sortOrder': "'asc'", // String | + 'startDate': 1628631763, // Number | Unix timestamp + 'endDate': 1657894210, // Number | Unix timestamp + 'systemFilesOnly': true, // Boolean | + 'files': _health.qo, data.qo // String | +}; +apiInstance.getRouteLogsByRoute(projectUID, routeUID, opts).then((data) => { + console.log('API called successfully. Returned data: ' + JSON.stringify(data)); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +| Name | Type | Description | Notes | +| ------------------- | ----------- | -------------- | ------------------------------------------ | +| **projectUID** | **String** | | +| **routeUID** | **String** | | +| **pageSize** | **Number** | | [optional] [default to 50] | +| **pageNum** | **Number** | | [optional] [default to 1] | +| **deviceUID** | **String** | A Device UID. | [optional] | +| **sortBy** | **String** | | [optional] [default to 'captured'] | +| **sortOrder** | **String** | | [optional] [default to 'asc'] | +| **startDate** | **Number** | Unix timestamp | [optional] | +| **endDate** | **Number** | Unix timestamp | [optional] | +| **systemFilesOnly** | **Boolean** | | [optional] | +| **files** | **String** | | [optional] | + +### Return type + +[**[GetRouteLogsByRoute200ResponseInner]**](GetRouteLogsByRoute200ResponseInner.md) + +### Authorization + +[api_key](../README.md#api_key) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json diff --git a/src/src/api/RouteLogsApi.js b/src/src/api/RouteLogsApi.js new file mode 100644 index 00000000..8196b81b --- /dev/null +++ b/src/src/api/RouteLogsApi.js @@ -0,0 +1,193 @@ +/** + * Notehub API + * The OpenAPI definition for the Notehub.io API. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: engineering@blues.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from "../ApiClient"; +import Error from "../model/Error"; +import GetRouteLogsByRoute200ResponseInner from "../model/GetRouteLogsByRoute200ResponseInner"; + +/** + * RouteLogs service. + * @module api/RouteLogsApi + * @version 1.0.14 + */ +export default class RouteLogsApi { + /** + * Constructs a new RouteLogsApi. + * @alias module:api/RouteLogsApi + * @class + * @param {module:ApiClient} [apiClient] Optional API client implementation to use, + * default to {@link module:ApiClient#instance} if unspecified. + */ + constructor(apiClient) { + this.apiClient = apiClient || ApiClient.instance; + } + + /** + * Get Route Logs by Event UID + * @param {String} projectUID + * @param {String} eventUID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + getRouteLogsByEventWithHttpInfo(projectUID, eventUID) { + let postBody = null; + // verify the required parameter 'projectUID' is set + if (projectUID === undefined || projectUID === null) { + throw new Error( + "Missing the required parameter 'projectUID' when calling getRouteLogsByEvent" + ); + } + // verify the required parameter 'eventUID' is set + if (eventUID === undefined || eventUID === null) { + throw new Error( + "Missing the required parameter 'eventUID' when calling getRouteLogsByEvent" + ); + } + + let pathParams = { + projectUID: projectUID, + eventUID: eventUID, + }; + let queryParams = {}; + let headerParams = {}; + let formParams = {}; + + let authNames = ["api_key"]; + let contentTypes = []; + let accepts = ["application/json"]; + let returnType = [GetRouteLogsByRoute200ResponseInner]; + return this.apiClient.callApi( + "/v1/projects/{projectUID}/events/{eventUID}/route-logs", + "GET", + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + null + ); + } + + /** + * Get Route Logs by Event UID + * @param {String} projectUID + * @param {String} eventUID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + getRouteLogsByEvent(projectUID, eventUID) { + return this.getRouteLogsByEventWithHttpInfo(projectUID, eventUID).then( + function (response_and_data) { + return response_and_data.data; + } + ); + } + + /** + * Get Route Logs by Route UID + * @param {String} projectUID + * @param {String} routeUID + * @param {Object} opts Optional parameters + * @param {Number} opts.pageSize (default to 50) + * @param {Number} opts.pageNum (default to 1) + * @param {String} opts.deviceUID A Device UID. + * @param {module:model/String} opts.sortBy (default to 'captured') + * @param {module:model/String} opts.sortOrder (default to 'asc') + * @param {Number} opts.startDate Unix timestamp + * @param {Number} opts.endDate Unix timestamp + * @param {Boolean} opts.systemFilesOnly + * @param {String} opts.files + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + getRouteLogsByRouteWithHttpInfo(projectUID, routeUID, opts) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'projectUID' is set + if (projectUID === undefined || projectUID === null) { + throw new Error( + "Missing the required parameter 'projectUID' when calling getRouteLogsByRoute" + ); + } + // verify the required parameter 'routeUID' is set + if (routeUID === undefined || routeUID === null) { + throw new Error( + "Missing the required parameter 'routeUID' when calling getRouteLogsByRoute" + ); + } + + let pathParams = { + projectUID: projectUID, + routeUID: routeUID, + }; + let queryParams = { + pageSize: opts["pageSize"], + pageNum: opts["pageNum"], + deviceUID: opts["deviceUID"], + sortBy: opts["sortBy"], + sortOrder: opts["sortOrder"], + startDate: opts["startDate"], + endDate: opts["endDate"], + systemFilesOnly: opts["systemFilesOnly"], + files: opts["files"], + }; + let headerParams = {}; + let formParams = {}; + + let authNames = ["api_key"]; + let contentTypes = []; + let accepts = ["application/json"]; + let returnType = [GetRouteLogsByRoute200ResponseInner]; + return this.apiClient.callApi( + "/v1/projects/{projectUID}/routes/{routeUID}/route-logs", + "GET", + pathParams, + queryParams, + headerParams, + formParams, + postBody, + authNames, + contentTypes, + accepts, + returnType, + null + ); + } + + /** + * Get Route Logs by Route UID + * @param {String} projectUID + * @param {String} routeUID + * @param {Object} opts Optional parameters + * @param {Number} opts.pageSize (default to 50) + * @param {Number} opts.pageNum (default to 1) + * @param {String} opts.deviceUID A Device UID. + * @param {module:model/String} opts.sortBy (default to 'captured') + * @param {module:model/String} opts.sortOrder (default to 'asc') + * @param {Number} opts.startDate Unix timestamp + * @param {Number} opts.endDate Unix timestamp + * @param {Boolean} opts.systemFilesOnly + * @param {String} opts.files + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + getRouteLogsByRoute(projectUID, routeUID, opts) { + return this.getRouteLogsByRouteWithHttpInfo( + projectUID, + routeUID, + opts + ).then(function (response_and_data) { + return response_and_data.data; + }); + } +} diff --git a/src/src/index.js b/src/src/index.js index 3c4966bc..53c3192a 100644 --- a/src/src/index.js +++ b/src/src/index.js @@ -50,6 +50,7 @@ import GetProjectFleets200Response from "./model/GetProjectFleets200Response"; import GetProjectMembers200Response from "./model/GetProjectMembers200Response"; import GetProjectProducts200Response from "./model/GetProjectProducts200Response"; import GetProjects200Response from "./model/GetProjects200Response"; +import GetRouteLogsByRoute200ResponseInner from "./model/GetRouteLogsByRoute200ResponseInner"; import Google from "./model/Google"; import HandleNoteChanges200Response from "./model/HandleNoteChanges200Response"; import HandleNoteGet200Response from "./model/HandleNoteGet200Response"; @@ -93,6 +94,7 @@ import NotesApi from "./api/NotesApi"; import ProductApi from "./api/ProductApi"; import ProjectApi from "./api/ProjectApi"; import RouteApi from "./api/RouteApi"; +import RouteLogsApi from "./api/RouteLogsApi"; /** * The OpenAPI definition for the Notehub.io API. .
@@ -360,6 +362,12 @@ export { */ GetProjects200Response, + /** + * The GetRouteLogsByRoute200ResponseInner model constructor. + * @property {module:model/GetRouteLogsByRoute200ResponseInner} + */ + GetRouteLogsByRoute200ResponseInner, + /** * The Google model constructor. * @property {module:model/Google} @@ -617,4 +625,10 @@ export { * @property {module:api/RouteApi} */ RouteApi, + + /** + * The RouteLogsApi service constructor. + * @property {module:api/RouteLogsApi} + */ + RouteLogsApi, }; diff --git a/src/src/model/Device.js b/src/src/model/Device.js index 75e6f756..f13b633a 100644 --- a/src/src/model/Device.js +++ b/src/src/model/Device.js @@ -160,6 +160,9 @@ class Device { if (data.hasOwnProperty("sku")) { obj["sku"] = ApiClient.convertToType(data["sku"], "String"); } + if (data.hasOwnProperty("disabled")) { + obj["disabled"] = ApiClient.convertToType(data["disabled"], "Boolean"); + } } else if (data === null) { return null; } @@ -356,4 +359,9 @@ Device.prototype["dfu"] = undefined; */ Device.prototype["sku"] = undefined; +/** + * @member {Boolean} disabled + */ +Device.prototype["disabled"] = undefined; + export default Device; diff --git a/src/src/model/GetRouteLogsByRoute200ResponseInner.js b/src/src/model/GetRouteLogsByRoute200ResponseInner.js new file mode 100644 index 00000000..800d32b1 --- /dev/null +++ b/src/src/model/GetRouteLogsByRoute200ResponseInner.js @@ -0,0 +1,194 @@ +/** + * Notehub API + * The OpenAPI definition for the Notehub.io API. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: engineering@blues.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from "../ApiClient"; + +/** + * The GetRouteLogsByRoute200ResponseInner model module. + * @module model/GetRouteLogsByRoute200ResponseInner + * @version 1.0.14 + */ +class GetRouteLogsByRoute200ResponseInner { + /** + * Constructs a new GetRouteLogsByRoute200ResponseInner. + * @alias module:model/GetRouteLogsByRoute200ResponseInner + */ + constructor() { + GetRouteLogsByRoute200ResponseInner.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) {} + + /** + * Constructs a GetRouteLogsByRoute200ResponseInner from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetRouteLogsByRoute200ResponseInner} obj Optional instance to populate. + * @return {module:model/GetRouteLogsByRoute200ResponseInner} The populated GetRouteLogsByRoute200ResponseInner instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetRouteLogsByRoute200ResponseInner(); + + if (data.hasOwnProperty("date")) { + obj["date"] = ApiClient.convertToType(data["date"], "String"); + } + if (data.hasOwnProperty("routeUID")) { + obj["routeUID"] = ApiClient.convertToType(data["routeUID"], "String"); + } + if (data.hasOwnProperty("eventUID")) { + obj["eventUID"] = ApiClient.convertToType(data["eventUID"], "String"); + } + if (data.hasOwnProperty("attn")) { + obj["attn"] = ApiClient.convertToType(data["attn"], "Boolean"); + } + if (data.hasOwnProperty("status")) { + obj["status"] = ApiClient.convertToType(data["status"], "String"); + } + if (data.hasOwnProperty("text")) { + obj["text"] = ApiClient.convertToType(data["text"], "String"); + } + if (data.hasOwnProperty("url")) { + obj["url"] = ApiClient.convertToType(data["url"], "String"); + } + } else if (data === null) { + return null; + } + return obj; + } + + /** + * Validates the JSON data with respect to GetRouteLogsByRoute200ResponseInner. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetRouteLogsByRoute200ResponseInner. + */ + static validateJSON(data) { + // ensure the json data is a string + if ( + data["date"] && + !(typeof data["date"] === "string" || data["date"] instanceof String) + ) { + throw new Error( + "Expected the field `date` to be a primitive type in the JSON string but got " + + data["date"] + ); + } + // ensure the json data is a string + if ( + data["routeUID"] && + !( + typeof data["routeUID"] === "string" || + data["routeUID"] instanceof String + ) + ) { + throw new Error( + "Expected the field `routeUID` to be a primitive type in the JSON string but got " + + data["routeUID"] + ); + } + // ensure the json data is a string + if ( + data["eventUID"] && + !( + typeof data["eventUID"] === "string" || + data["eventUID"] instanceof String + ) + ) { + throw new Error( + "Expected the field `eventUID` to be a primitive type in the JSON string but got " + + data["eventUID"] + ); + } + // ensure the json data is a string + if ( + data["status"] && + !(typeof data["status"] === "string" || data["status"] instanceof String) + ) { + throw new Error( + "Expected the field `status` to be a primitive type in the JSON string but got " + + data["status"] + ); + } + // ensure the json data is a string + if ( + data["text"] && + !(typeof data["text"] === "string" || data["text"] instanceof String) + ) { + throw new Error( + "Expected the field `text` to be a primitive type in the JSON string but got " + + data["text"] + ); + } + // ensure the json data is a string + if ( + data["url"] && + !(typeof data["url"] === "string" || data["url"] instanceof String) + ) { + throw new Error( + "Expected the field `url` to be a primitive type in the JSON string but got " + + data["url"] + ); + } + + return true; + } +} + +/** + * The date of the logs. + * @member {String} date + */ +GetRouteLogsByRoute200ResponseInner.prototype["date"] = undefined; + +/** + * The route UID. + * @member {String} routeUID + */ +GetRouteLogsByRoute200ResponseInner.prototype["routeUID"] = undefined; + +/** + * The event UID. + * @member {String} eventUID + */ +GetRouteLogsByRoute200ResponseInner.prototype["eventUID"] = undefined; + +/** + * Whether the event was routed in error + * @member {Boolean} attn + */ +GetRouteLogsByRoute200ResponseInner.prototype["attn"] = undefined; + +/** + * The status of the event. + * @member {String} status + */ +GetRouteLogsByRoute200ResponseInner.prototype["status"] = undefined; + +/** + * The response body of the route. + * @member {String} text + */ +GetRouteLogsByRoute200ResponseInner.prototype["text"] = undefined; + +/** + * The URL of the route. + * @member {String} url + */ +GetRouteLogsByRoute200ResponseInner.prototype["url"] = undefined; + +export default GetRouteLogsByRoute200ResponseInner; diff --git a/src/test/api/RouteLogsApi.spec.js b/src/test/api/RouteLogsApi.spec.js new file mode 100644 index 00000000..4cfd210b --- /dev/null +++ b/src/test/api/RouteLogsApi.spec.js @@ -0,0 +1,68 @@ +/** + * Notehub API + * The OpenAPI definition for the Notehub.io API. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: engineering@blues.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function (root, factory) { + if (typeof define === "function" && define.amd) { + // AMD. + define(["expect.js", process.cwd() + "/src/index"], factory); + } else if (typeof module === "object" && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require("expect.js"), require(process.cwd() + "/src/index")); + } else { + // Browser globals (root is window) + factory(root.expect, root.NotehubJs); + } +})(this, function (expect, NotehubJs) { + "use strict"; + + var instance; + + beforeEach(function () { + instance = new NotehubJs.RouteLogsApi(); + }); + + var getProperty = function (object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === "function") return object[getter](); + else return object[property]; + }; + + var setProperty = function (object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === "function") object[setter](value); + else object[property] = value; + }; + + describe("RouteLogsApi", function () { + describe("getRouteLogsByEvent", function () { + it("should call getRouteLogsByEvent successfully", function (done) { + //uncomment below and update the code to test getRouteLogsByEvent + //instance.getRouteLogsByEvent(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe("getRouteLogsByRoute", function () { + it("should call getRouteLogsByRoute successfully", function (done) { + //uncomment below and update the code to test getRouteLogsByRoute + //instance.getRouteLogsByRoute(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + }); +}); diff --git a/src/test/model/GetRouteLogsByRoute200ResponseInner.spec.js b/src/test/model/GetRouteLogsByRoute200ResponseInner.spec.js new file mode 100644 index 00000000..c4d1c68d --- /dev/null +++ b/src/test/model/GetRouteLogsByRoute200ResponseInner.spec.js @@ -0,0 +1,95 @@ +/** + * Notehub API + * The OpenAPI definition for the Notehub.io API. + * + * The version of the OpenAPI document: 1.0.0 + * Contact: engineering@blues.io + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function (root, factory) { + if (typeof define === "function" && define.amd) { + // AMD. + define(["expect.js", process.cwd() + "/src/index"], factory); + } else if (typeof module === "object" && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require("expect.js"), require(process.cwd() + "/src/index")); + } else { + // Browser globals (root is window) + factory(root.expect, root.NotehubJs); + } +})(this, function (expect, NotehubJs) { + "use strict"; + + var instance; + + beforeEach(function () { + instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + }); + + var getProperty = function (object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === "function") return object[getter](); + else return object[property]; + }; + + var setProperty = function (object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === "function") object[setter](value); + else object[property] = value; + }; + + describe("GetRouteLogsByRoute200ResponseInner", function () { + it("should create an instance of GetRouteLogsByRoute200ResponseInner", function () { + // uncomment below and update the code to test GetRouteLogsByRoute200ResponseInner + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be.a(NotehubJs.GetRouteLogsByRoute200ResponseInner); + }); + + it('should have the property date (base name: "date")', function () { + // uncomment below and update the code to test the property date + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be(); + }); + + it('should have the property routeUID (base name: "routeUID")', function () { + // uncomment below and update the code to test the property routeUID + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be(); + }); + + it('should have the property eventUID (base name: "eventUID")', function () { + // uncomment below and update the code to test the property eventUID + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be(); + }); + + it('should have the property attn (base name: "attn")', function () { + // uncomment below and update the code to test the property attn + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function () { + // uncomment below and update the code to test the property status + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be(); + }); + + it('should have the property text (base name: "text")', function () { + // uncomment below and update the code to test the property text + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be(); + }); + + it('should have the property url (base name: "url")', function () { + // uncomment below and update the code to test the property url + //var instance = new NotehubJs.GetRouteLogsByRoute200ResponseInner(); + //expect(instance).to.be(); + }); + }); +});