@blues-inc/notehub-js 1.0.37 → 1.0.38-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +250 -234
- package/dist/ApiClient.js +154 -156
- package/dist/api/AlertApi.js +22 -22
- package/dist/api/AuthorizationApi.js +79 -16
- package/dist/api/BillingAccountApi.js +14 -14
- package/dist/api/DeviceApi.js +433 -373
- package/dist/api/EventApi.js +118 -118
- package/dist/api/ExternalDevicesApi.js +41 -41
- package/dist/api/MonitorApi.js +61 -61
- package/dist/api/ProjectApi.js +397 -387
- package/dist/api/RouteApi.js +77 -77
- package/dist/api/UsageApi.js +285 -0
- package/dist/api/WebhookApi.js +51 -51
- package/dist/index.js +132 -97
- package/dist/model/Alert.js +114 -112
- package/dist/model/AlertDataInner.js +39 -39
- package/dist/model/AlertNotificationsInner.js +22 -22
- package/dist/model/Aws.js +95 -95
- package/dist/model/{HttpFilter.js → AwsFilter.js} +40 -40
- package/dist/model/{HttpTransform.js → AwsTransform.js} +37 -37
- package/dist/model/Azure.js +61 -61
- package/dist/model/BillingAccount.js +28 -28
- package/dist/model/BillingAccountRole.js +9 -9
- package/dist/model/Body.js +5 -5
- package/dist/model/CellularPlan.js +150 -0
- package/dist/model/CloneProjectRequest.js +31 -31
- package/dist/model/Contact.js +26 -26
- package/dist/model/CreateFleetRequest.js +12 -12
- package/dist/model/CreateMonitor.js +216 -215
- package/dist/model/CreateProductRequest.js +36 -36
- package/dist/model/CreateProjectRequest.js +23 -23
- package/dist/model/CreateUpdateRepository.js +22 -22
- package/dist/model/CurrentFirmware.js +16 -16
- package/dist/model/DFUEnv.js +12 -12
- package/dist/model/DFUState.js +97 -97
- package/dist/model/DataField.js +7 -7
- package/dist/model/DataSetField.js +24 -24
- package/dist/model/DataUsage.js +133 -0
- package/dist/model/DeleteDeviceFleetsRequest.js +8 -8
- package/dist/model/Device.js +153 -152
- package/dist/model/DeviceDfuHistory.js +26 -25
- package/dist/model/{DeviceDfuStatusCurrent.js → DeviceDfuHistoryCurrent.js} +58 -58
- package/dist/model/DeviceDfuHistoryPage.js +13 -12
- package/dist/model/DeviceDfuStateMachine.js +30 -29
- package/dist/model/DeviceDfuStateMachineNode.js +30 -30
- package/dist/model/DeviceDfuStatus.js +27 -27
- package/dist/model/DeviceDfuStatusPage.js +13 -12
- package/dist/model/DeviceSession.js +300 -300
- package/dist/model/DeviceTowerInfo.js +18 -18
- package/dist/model/DeviceUsage.js +44 -44
- package/dist/model/DfuActionRequest.js +7 -7
- package/dist/model/EmailNotification.js +7 -7
- package/dist/model/EnvTreeJsonNode.js +100 -98
- package/dist/model/EnvVar.js +20 -20
- package/dist/model/EnvironmentVariables.js +8 -8
- package/dist/model/Error.js +45 -45
- package/dist/model/Event.js +365 -365
- package/dist/model/Firmware.js +59 -59
- package/dist/model/FirmwareInfo.js +83 -83
- package/dist/model/Fleet.js +47 -47
- package/dist/model/GetAlerts200Response.js +15 -14
- package/dist/model/GetBillingAccounts200Response.js +10 -9
- package/dist/model/{GetDeviceEnvironmentVariables200Response.js → GetDeviceEnvironmentVariablesByPin200Response.js} +38 -38
- package/dist/model/{GetProjectFleets200Response.js → GetDeviceFleets200Response.js} +30 -29
- package/dist/model/GetDeviceHealthLog200Response.js +12 -11
- package/dist/model/GetDeviceHealthLog200ResponseHealthLogInner.js +26 -26
- package/dist/model/GetDeviceLatest200Response.js +10 -9
- package/dist/model/GetDevicePlans200Response.js +112 -0
- package/dist/model/GetDevicePublicKey200Response.js +22 -22
- package/dist/model/GetDeviceSessions200Response.js +23 -22
- package/dist/model/GetProjectDevicePublicKeys200Response.js +17 -16
- package/dist/model/GetProjectDevicePublicKeys200ResponseDevicePublicKeysInner.js +14 -14
- package/dist/model/GetProjectDevices200Response.js +17 -16
- package/dist/model/GetProjectEvents200Response.js +21 -20
- package/dist/model/GetProjectEventsByCursor200Response.js +31 -30
- package/dist/model/GetProjectMembers200Response.js +12 -11
- package/dist/model/GetProjectProducts200Response.js +10 -9
- package/dist/model/GetProjects200Response.js +10 -9
- package/dist/model/GetWebhooks200Response.js +10 -9
- package/dist/model/Google.js +50 -50
- package/dist/model/HandleNoteChanges200Response.js +16 -16
- package/dist/model/HandleNoteGet200Response.js +13 -13
- package/dist/model/HandleNoteSignal200Response.js +5 -5
- package/dist/model/HandleNotefileChanges200Response.js +16 -16
- package/dist/model/HandleNotefileChangesPending200Response.js +20 -20
- package/dist/model/HandleNotefileDeleteRequest.js +7 -7
- package/dist/model/Http.js +54 -54
- package/dist/model/Location.js +50 -50
- package/dist/model/Login200Response.js +7 -7
- package/dist/model/LoginRequest.js +14 -14
- package/dist/model/Monitor.js +159 -158
- package/dist/model/MonitorAlertRoutesInner.js +18 -19
- package/dist/model/Mqtt.js +98 -98
- package/dist/model/Note.js +10 -10
- package/dist/model/NotefileSchema.js +19 -18
- package/dist/model/NotehubRoute.js +49 -49
- package/dist/model/NotehubRouteSchema.js +100 -101
- package/dist/model/{QuestionDataResponseMap.js → OAuth2Error.js} +66 -43
- package/dist/model/OAuth2TokenResponse.js +154 -0
- package/dist/model/PersonalAccessToken.js +49 -49
- package/dist/model/PersonalAccessTokenCreatedBy.js +20 -20
- package/dist/model/PersonalAccessTokenInfo.js +22 -22
- package/dist/model/PersonalAccessTokenSecret.js +16 -16
- package/dist/model/PostProvisionProjectDeviceRequest.js +25 -25
- package/dist/model/Product.js +36 -36
- package/dist/model/Project.js +47 -47
- package/dist/model/ProjectMember.js +28 -28
- package/dist/model/Proxy.js +34 -34
- package/dist/model/PutDeviceFleetsRequest.js +8 -8
- package/dist/model/Radresponder.js +34 -34
- package/dist/model/Repository.js +28 -28
- package/dist/model/Role.js +9 -9
- package/dist/model/RouteLog.js +48 -48
- package/dist/model/SatellitePlan.js +164 -0
- package/dist/model/SchemaProperty.js +54 -54
- package/dist/model/SimUsage.js +27 -27
- package/dist/model/Slack.js +82 -82
- package/dist/model/SlackBearerNotification.js +30 -30
- package/dist/model/{SnowflakeTransform.js → SlackTransform.js} +28 -28
- package/dist/model/SlackWebHookNotification.js +25 -25
- package/dist/model/Snowflake.js +66 -66
- package/dist/model/Thingworx.js +48 -48
- package/dist/model/TowerLocation.js +75 -75
- package/dist/model/Twilio.js +65 -65
- package/dist/model/UpdateFleetRequest.js +31 -31
- package/dist/model/UploadMetadata.js +86 -73
- package/dist/model/{AnalyticsEventsData.js → UsageData.js} +45 -39
- package/dist/model/{AnalyticsRouteLogsData.js → UsageEventsData.js} +49 -45
- package/dist/model/{AnalyticsEventsResponse.js → UsageEventsResponse.js} +33 -32
- package/dist/model/UsageRouteLogsData.js +154 -0
- package/dist/model/{AnalyticsSessionsResponse.js → UsageRouteLogsResponse.js} +33 -32
- package/dist/model/{AnalyticsSessionsData.js → UsageSessionsData.js} +48 -44
- package/dist/model/{AnalyticsRouteLogsResponse.js → UsageSessionsResponse.js} +33 -32
- package/dist/model/UserDbRoute.js +33 -33
- package/dist/model/UserDfuStateMachine.js +27 -27
- package/dist/model/UserDfuStateMachineStatus.js +23 -23
- package/dist/model/UserFirmwareInfo.js +12 -12
- package/dist/model/WebhookSettings.js +15 -15
- package/package.json +28 -28
- package/dist/model/DataSet.js +0 -163
- package/dist/model/QuestionDataResponseLineChart.js +0 -204
package/dist/api/AlertApi.js
CHANGED
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -26,18 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
* Alert service.
|
|
30
|
+
* @module api/AlertApi
|
|
31
|
+
* @version 1.0.38-beta.10
|
|
32
|
+
*/
|
|
33
33
|
var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
* Constructs a new AlertApi.
|
|
36
|
+
* @alias module:api/AlertApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
41
|
function AlertApi(apiClient) {
|
|
42
42
|
_classCallCheck(this, AlertApi);
|
|
43
43
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -45,11 +45,11 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* Get list of defined Alerts
|
|
48
|
-
* @param {String} projectOrProductUID
|
|
48
|
+
* @param {String} projectOrProductUID
|
|
49
49
|
* @param {Object} opts Optional parameters
|
|
50
50
|
* @param {Number} opts.pageSize (default to 50)
|
|
51
51
|
* @param {Number} opts.pageNum (default to 1)
|
|
52
|
-
* @param {String} opts.monitorUID
|
|
52
|
+
* @param {String} opts.monitorUID
|
|
53
53
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetAlerts200Response} and HTTP response
|
|
54
54
|
*/
|
|
55
55
|
return _createClass(AlertApi, [{
|
|
@@ -62,29 +62,29 @@ var AlertApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
62
62
|
throw new _Error["default"]("Missing the required parameter 'projectOrProductUID' when calling getAlerts");
|
|
63
63
|
}
|
|
64
64
|
var pathParams = {
|
|
65
|
-
projectOrProductUID: projectOrProductUID
|
|
65
|
+
'projectOrProductUID': projectOrProductUID
|
|
66
66
|
};
|
|
67
67
|
var queryParams = {
|
|
68
|
-
pageSize: opts[
|
|
69
|
-
pageNum: opts[
|
|
70
|
-
monitorUID: opts[
|
|
68
|
+
'pageSize': opts['pageSize'],
|
|
69
|
+
'pageNum': opts['pageNum'],
|
|
70
|
+
'monitorUID': opts['monitorUID']
|
|
71
71
|
};
|
|
72
72
|
var headerParams = {};
|
|
73
73
|
var formParams = {};
|
|
74
|
-
var authNames = [
|
|
74
|
+
var authNames = ['personalAccessToken'];
|
|
75
75
|
var contentTypes = [];
|
|
76
|
-
var accepts = [
|
|
76
|
+
var accepts = ['application/json'];
|
|
77
77
|
var returnType = _GetAlerts200Response["default"];
|
|
78
|
-
return this.apiClient.callApi(
|
|
78
|
+
return this.apiClient.callApi('/v1/projects/{projectOrProductUID}/alerts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Get list of defined Alerts
|
|
83
|
-
* @param {String} projectOrProductUID
|
|
83
|
+
* @param {String} projectOrProductUID
|
|
84
84
|
* @param {Object} opts Optional parameters
|
|
85
85
|
* @param {Number} opts.pageSize (default to 50)
|
|
86
86
|
* @param {Number} opts.pageNum (default to 1)
|
|
87
|
-
* @param {String} opts.monitorUID
|
|
87
|
+
* @param {String} opts.monitorUID
|
|
88
88
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetAlerts200Response}
|
|
89
89
|
*/
|
|
90
90
|
}, {
|
|
@@ -7,6 +7,8 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _ApiClient = _interopRequireDefault(require("../ApiClient"));
|
|
8
8
|
var _Login200Response = _interopRequireDefault(require("../model/Login200Response"));
|
|
9
9
|
var _LoginRequest = _interopRequireDefault(require("../model/LoginRequest"));
|
|
10
|
+
var _OAuth2Error = _interopRequireDefault(require("../model/OAuth2Error"));
|
|
11
|
+
var _OAuth2TokenResponse = _interopRequireDefault(require("../model/OAuth2TokenResponse"));
|
|
10
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
11
13
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
12
14
|
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
@@ -15,7 +17,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
17
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
18
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
19
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
20
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
21
|
*
|
|
20
22
|
* The version of the OpenAPI document: 1.2.0
|
|
21
23
|
* Contact: engineering@blues.io
|
|
@@ -26,18 +28,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
28
|
*
|
|
27
29
|
*/
|
|
28
30
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
* Authorization service.
|
|
32
|
+
* @module api/AuthorizationApi
|
|
33
|
+
* @version 1.0.38-beta.10
|
|
34
|
+
*/
|
|
33
35
|
var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
36
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
37
|
+
* Constructs a new AuthorizationApi.
|
|
38
|
+
* @alias module:api/AuthorizationApi
|
|
39
|
+
* @class
|
|
40
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
41
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
42
|
+
*/
|
|
41
43
|
function AuthorizationApi(apiClient) {
|
|
42
44
|
_classCallCheck(this, AuthorizationApi);
|
|
43
45
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -45,7 +47,7 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
45
47
|
|
|
46
48
|
/**
|
|
47
49
|
* Gets an API key from username and password
|
|
48
|
-
* @param {module:model/LoginRequest} loginRequest
|
|
50
|
+
* @param {module:model/LoginRequest} loginRequest
|
|
49
51
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Login200Response} and HTTP response
|
|
50
52
|
*/
|
|
51
53
|
return _createClass(AuthorizationApi, [{
|
|
@@ -61,15 +63,15 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
61
63
|
var headerParams = {};
|
|
62
64
|
var formParams = {};
|
|
63
65
|
var authNames = [];
|
|
64
|
-
var contentTypes = [
|
|
65
|
-
var accepts = [
|
|
66
|
+
var contentTypes = ['application/json'];
|
|
67
|
+
var accepts = ['application/json'];
|
|
66
68
|
var returnType = _Login200Response["default"];
|
|
67
|
-
return this.apiClient.callApi(
|
|
69
|
+
return this.apiClient.callApi('/auth/login', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
68
70
|
}
|
|
69
71
|
|
|
70
72
|
/**
|
|
71
73
|
* Gets an API key from username and password
|
|
72
|
-
* @param {module:model/LoginRequest} loginRequest
|
|
74
|
+
* @param {module:model/LoginRequest} loginRequest
|
|
73
75
|
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Login200Response}
|
|
74
76
|
*/
|
|
75
77
|
}, {
|
|
@@ -79,5 +81,66 @@ var AuthorizationApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
79
81
|
return response_and_data.data;
|
|
80
82
|
});
|
|
81
83
|
}
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Issue an OAuth 2.0 access token (Client Credentials)
|
|
87
|
+
* Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
|
|
88
|
+
* @param {String} clientId
|
|
89
|
+
* @param {String} clientSecret
|
|
90
|
+
* @param {module:model/String} grantType
|
|
91
|
+
* @param {Object} opts Optional parameters
|
|
92
|
+
* @param {String} opts.scope Space-delimited scopes.
|
|
93
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/OAuth2TokenResponse} and HTTP response
|
|
94
|
+
*/
|
|
95
|
+
}, {
|
|
96
|
+
key: "oAuth2ClientCredentialsWithHttpInfo",
|
|
97
|
+
value: function oAuth2ClientCredentialsWithHttpInfo(clientId, clientSecret, grantType, opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
var postBody = null;
|
|
100
|
+
// verify the required parameter 'clientId' is set
|
|
101
|
+
if (clientId === undefined || clientId === null) {
|
|
102
|
+
throw new Error("Missing the required parameter 'clientId' when calling oAuth2ClientCredentials");
|
|
103
|
+
}
|
|
104
|
+
// verify the required parameter 'clientSecret' is set
|
|
105
|
+
if (clientSecret === undefined || clientSecret === null) {
|
|
106
|
+
throw new Error("Missing the required parameter 'clientSecret' when calling oAuth2ClientCredentials");
|
|
107
|
+
}
|
|
108
|
+
// verify the required parameter 'grantType' is set
|
|
109
|
+
if (grantType === undefined || grantType === null) {
|
|
110
|
+
throw new Error("Missing the required parameter 'grantType' when calling oAuth2ClientCredentials");
|
|
111
|
+
}
|
|
112
|
+
var pathParams = {};
|
|
113
|
+
var queryParams = {};
|
|
114
|
+
var headerParams = {};
|
|
115
|
+
var formParams = {
|
|
116
|
+
'client_id': clientId,
|
|
117
|
+
'client_secret': clientSecret,
|
|
118
|
+
'grant_type': grantType,
|
|
119
|
+
'scope': opts['scope']
|
|
120
|
+
};
|
|
121
|
+
var authNames = [];
|
|
122
|
+
var contentTypes = ['application/x-www-form-urlencoded'];
|
|
123
|
+
var accepts = ['application/json'];
|
|
124
|
+
var returnType = _OAuth2TokenResponse["default"];
|
|
125
|
+
return this.apiClient.callApi('/oauth2/token', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Issue an OAuth 2.0 access token (Client Credentials)
|
|
130
|
+
* Exchanges client credentials for an access token. Parameters must be sent as application/x-www-form-urlencoded.
|
|
131
|
+
* @param {String} clientId
|
|
132
|
+
* @param {String} clientSecret
|
|
133
|
+
* @param {module:model/String} grantType
|
|
134
|
+
* @param {Object} opts Optional parameters
|
|
135
|
+
* @param {String} opts.scope Space-delimited scopes.
|
|
136
|
+
* @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/OAuth2TokenResponse}
|
|
137
|
+
*/
|
|
138
|
+
}, {
|
|
139
|
+
key: "oAuth2ClientCredentials",
|
|
140
|
+
value: function oAuth2ClientCredentials(clientId, clientSecret, grantType, opts) {
|
|
141
|
+
return this.oAuth2ClientCredentialsWithHttpInfo(clientId, clientSecret, grantType, opts).then(function (response_and_data) {
|
|
142
|
+
return response_and_data.data;
|
|
143
|
+
});
|
|
144
|
+
}
|
|
82
145
|
}]);
|
|
83
146
|
}();
|
|
@@ -15,7 +15,7 @@ function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r),
|
|
|
15
15
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); } /**
|
|
17
17
|
* Notehub API
|
|
18
|
-
* The OpenAPI definition for the Notehub.io API.
|
|
18
|
+
* The OpenAPI definition for the Notehub.io API.
|
|
19
19
|
*
|
|
20
20
|
* The version of the OpenAPI document: 1.2.0
|
|
21
21
|
* Contact: engineering@blues.io
|
|
@@ -26,18 +26,18 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
26
26
|
*
|
|
27
27
|
*/
|
|
28
28
|
/**
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
* BillingAccount service.
|
|
30
|
+
* @module api/BillingAccountApi
|
|
31
|
+
* @version 1.0.38-beta.10
|
|
32
|
+
*/
|
|
33
33
|
var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
34
34
|
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
35
|
+
* Constructs a new BillingAccountApi.
|
|
36
|
+
* @alias module:api/BillingAccountApi
|
|
37
|
+
* @class
|
|
38
|
+
* @param {module:ApiClient} [apiClient] Optional API client implementation to use,
|
|
39
|
+
* default to {@link module:ApiClient#instance} if unspecified.
|
|
40
|
+
*/
|
|
41
41
|
function BillingAccountApi(apiClient) {
|
|
42
42
|
_classCallCheck(this, BillingAccountApi);
|
|
43
43
|
this.apiClient = apiClient || _ApiClient["default"].instance;
|
|
@@ -55,11 +55,11 @@ var BillingAccountApi = exports["default"] = /*#__PURE__*/function () {
|
|
|
55
55
|
var queryParams = {};
|
|
56
56
|
var headerParams = {};
|
|
57
57
|
var formParams = {};
|
|
58
|
-
var authNames = [
|
|
58
|
+
var authNames = ['personalAccessToken'];
|
|
59
59
|
var contentTypes = [];
|
|
60
|
-
var accepts = [
|
|
60
|
+
var accepts = ['application/json'];
|
|
61
61
|
var returnType = _GetBillingAccounts200Response["default"];
|
|
62
|
-
return this.apiClient.callApi(
|
|
62
|
+
return this.apiClient.callApi('/v1/billing-accounts', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null);
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|