Skip to content

Commit

Permalink
auth: more changes to handle user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
paigen11 committed Nov 13, 2024
1 parent e34a245 commit 1cc23b0
Show file tree
Hide file tree
Showing 215 changed files with 327 additions and 326 deletions.
6 changes: 3 additions & 3 deletions libTemplate/libraries/javascript/ApiClient.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,9 @@ class ApiClient {
* @type {Array.<String>}
* @default {}
*/{{/emitJSDoc}}
this.defaultHeaders = {}
if(typeof window === 'undefined') {
this.defaultHeaders['User-Agent'] = '{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/{{projectVersion}}/Javascript{{/httpUserAgent}}'
this.defaultHeaders = {};
if (typeof window === 'undefined') {
this.defaultHeaders['User-Agent'] = '{{{httpUserAgent}}}{{^httpUserAgent}}OpenAPI-Generator/{{projectVersion}}/Javascript{{/httpUserAgent}}';
};

/**
Expand Down
2 changes: 1 addition & 1 deletion openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ info:
title: Notehub API
version: 1.2.0
description: |
The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
contact:
name: Blues Engineering
email: engineering@blues.io
Expand Down
4 changes: 2 additions & 2 deletions src/README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# @blues-inc/notehub-js

NotehubJs - JavaScript client for @blues-inc/notehub-js
The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm

This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.2.0
- Package version: 1.0.24
- Package version: 1.0.24-beta.9
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
For more information, please visit [https://dev.blues.io/support/](https://dev.blues.io/support/)

Expand Down
4 changes: 2 additions & 2 deletions src/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@blues-inc/notehub-js",
"version": "1.0.24",
"description": "The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm ",
"version": "1.0.24-beta.9",
"description": "The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm ",
"license": "MIT",
"main": "dist/index.js",
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions src/src/ApiClient.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -16,7 +16,7 @@ import querystring from "querystring";

/**
* @module ApiClient
* @version 1.0.24
* @version 1.0.24-beta.9
*/

/**
Expand Down Expand Up @@ -56,7 +56,8 @@ class ApiClient {
*/
this.defaultHeaders = {};
if (typeof window === "undefined") {
this.defaultHeaders["User-Agent"] = "OpenAPI-Generator/1.0.24/Javascript";
this.defaultHeaders["User-Agent"] =
"OpenAPI-Generator/1.0.24-beta.9/Javascript";
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/AlertApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -18,7 +18,7 @@ import GetAlerts200Response from "../model/GetAlerts200Response";
/**
* Alert service.
* @module api/AlertApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class AlertApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/AuthorizationApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -18,7 +18,7 @@ import LoginRequest from "../model/LoginRequest";
/**
* Authorization service.
* @module api/AuthorizationApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class AuthorizationApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/BillingAccountApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -18,7 +18,7 @@ import GetBillingAccounts200Response from "../model/GetBillingAccounts200Respons
/**
* BillingAccount service.
* @module api/BillingAccountApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class BillingAccountApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/DeviceApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand Down Expand Up @@ -35,7 +35,7 @@ import PostProvisionProjectDeviceRequest from "../model/PostProvisionProjectDevi
/**
* Device service.
* @module api/DeviceApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class DeviceApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/EventApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -20,7 +20,7 @@ import GetRouteLogsByRoute200ResponseInner from "../model/GetRouteLogsByRoute200
/**
* Event service.
* @module api/EventApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class EventApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/MonitorApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -19,7 +19,7 @@ import Monitor from "../model/Monitor";
/**
* Monitor service.
* @module api/MonitorApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class MonitorApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/ProjectApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand Down Expand Up @@ -38,7 +38,7 @@ import UpdateFleetRequest from "../model/UpdateFleetRequest";
/**
* Project service.
* @module api/ProjectApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class ProjectApi {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/api/RouteApi.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -20,7 +20,7 @@ import UserDbRoute from "../model/UserDbRoute";
/**
* Route service.
* @module api/RouteApi
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export default class RouteApi {
/**
Expand Down
6 changes: 3 additions & 3 deletions src/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand Down Expand Up @@ -118,7 +118,7 @@ import ProjectApi from "./api/ProjectApi";
import RouteApi from "./api/RouteApi";

/**
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm .<br>
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm .<br>
* The <code>index</code> module provides access to constructors for all the classes which comprise the public API.
* <p>
* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following:
Expand Down Expand Up @@ -146,7 +146,7 @@ import RouteApi from "./api/RouteApi";
* </pre>
* </p>
* @module index
* @version 1.0.24
* @version 1.0.24-beta.9
*/
export {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/Alert.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -18,7 +18,7 @@ import AlertNotificationsInner from "./AlertNotificationsInner";
/**
* The Alert model module.
* @module model/Alert
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class Alert {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/AlertDataInner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -16,7 +16,7 @@ import ApiClient from "../ApiClient";
/**
* The AlertDataInner model module.
* @module model/AlertDataInner
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class AlertDataInner {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/AlertNotificationsInner.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -16,7 +16,7 @@ import ApiClient from "../ApiClient";
/**
* The AlertNotificationsInner model module.
* @module model/AlertNotificationsInner
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class AlertNotificationsInner {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/Aws.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -18,7 +18,7 @@ import HttpTransform from "./HttpTransform";
/**
* The Aws model module.
* @module model/Aws
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class Aws {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/Azure.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -18,7 +18,7 @@ import HttpTransform from "./HttpTransform";
/**
* The Azure model module.
* @module model/Azure
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class Azure {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/BillingAccount.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -17,7 +17,7 @@ import BillingAccountRole from "./BillingAccountRole";
/**
* The BillingAccount model module.
* @module model/BillingAccount
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class BillingAccount {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/src/model/BillingAccountRole.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/Body.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -16,7 +16,7 @@ import ApiClient from "../ApiClient";
/**
* The Body model module.
* @module model/Body
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class Body {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/src/model/CloneProjectRequest.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* Notehub API
* The OpenAPI definition for the Notehub.io API. Trigger another beta deploy to npm
* The OpenAPI definition for the Notehub.io API. Trigger third beta deploy to npm
*
* The version of the OpenAPI document: 1.2.0
* Contact: engineering@blues.io
Expand All @@ -16,7 +16,7 @@ import ApiClient from "../ApiClient";
/**
* The CloneProjectRequest model module.
* @module model/CloneProjectRequest
* @version 1.0.24
* @version 1.0.24-beta.9
*/
class CloneProjectRequest {
/**
Expand Down
Loading

0 comments on commit 1cc23b0

Please sign in to comment.