Skip to content

Commit e639ed4

Browse files
authored
Merge pull request #7 from sematext/develop
Version bump for publishing to npmjs.
2 parents 5c7dc49 + 7a8ac8d commit e639ed4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+283
-208
lines changed

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@ npm install sematext-api-client --save
3131
const Stcloud = require("@sematext/sematext-api-client")
3232
```
3333

34-
35-
3634
### Webpack Configuration
3735

3836
Using Webpack you may encounter the following error: "Module not found: Error:

package-lock.json

Lines changed: 161 additions & 117 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 41 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,32 @@
33
"version": "0.1.1",
44
"description": "Client library for https://sematext.com/docs/api/",
55
"license": "SEE LICENSE IN LICENSE",
6-
"repository": "https://github.com/sematext/sematext-api-client-javascript.git",
6+
"authors": {
7+
"name": "Sematext Packaging",
8+
"email": "packages.sematext.com"
9+
},
10+
"repository": {
11+
"type": "git",
12+
"url": "https://github.com/sematext/sematext-api-client-javascript.git"
13+
},
14+
"bugs": {
15+
"url": "https://github.com/sematext/sematext-api-client-javascript/issues"
16+
},
17+
"keywords": [
18+
"sematext",
19+
"apm",
20+
"cloud",
21+
"monitoring",
22+
"logging",
23+
"alerting"
24+
],
725
"main": "stcloud/index.js",
826
"type": "module",
927
"scripts": {
1028
"test": "mocha --require babel-core/register --recursive",
11-
"standard": "standard lib/**/**/*.js bin/*.js",
12-
"format": "prettier-standard --format",
13-
"precommit": "npm run standard",
29+
"lint": "prettier-standard --format",
1430
"auto-changelog": "auto-changelog",
15-
"release": "release-it"
31+
"release": "release-it -VV"
1632
},
1733
"browser": {
1834
"fs": false
@@ -36,7 +52,7 @@
3652
"nodemon": "^2.0.4",
3753
"prettier": "^2.0.5",
3854
"prettier-standard": "^16.3.0",
39-
"release-it": "^13.6.2",
55+
"release-it": "^13.6.5",
4056
"sinon": "^9.0.2",
4157
"standard": "^14.3.4",
4258
"typescript": "^3.9.5"
@@ -47,15 +63,33 @@
4763
"release-it": {
4864
"github": {
4965
"release": true,
66+
"tokenRef": "GITHUB_TOKEN",
5067
"releaseNotes": "npx auto-changelog --stdout --commit-limit false -u --template ./changelog.hbs"
5168
},
5269
"hooks": {
53-
"after:bump": "npx auto-changelog -p"
70+
"before:init": [
71+
"npm run lint",
72+
"npm test"
73+
],
74+
"after:bump": "npx auto-changelog -p",
75+
"after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
5476
},
5577
"npm": {
5678
"ignoreVersion": true
5779
}
5880
},
81+
"auto-changelog": {
82+
"output": "CHANGELOG.md",
83+
"template": "changelog.hbs",
84+
"commitLimit": false,
85+
"package": true,
86+
"replaceText": {
87+
"FIX: ": "",
88+
"NEW: ": "",
89+
"IMPROVE: ": "",
90+
"DOC: ": ""
91+
}
92+
},
5993
"standard": {
6094
"parser": "babel-eslint"
6195
}

stcloud/api/AlertNotificationsApi.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ export class AlertNotificationsApi {
4747
// verify the required parameter 'appId' is set
4848
if (appId === undefined || appId === null) {
4949
throw new Error(
50-
'Missing the required parameter \'appId\' when calling getAlertNotificationsForAppUsingPOST'
50+
"Missing the required parameter 'appId' when calling getAlertNotificationsForAppUsingPOST"
5151
)
5252
}
5353

5454
// verify the required parameter 'timeInterval' is set
5555
if (timeInterval === undefined || timeInterval === null) {
5656
throw new Error(
57-
'Missing the required parameter \'timeInterval\' when calling getAlertNotificationsForAppUsingPOST'
57+
"Missing the required parameter 'timeInterval' when calling getAlertNotificationsForAppUsingPOST"
5858
)
5959
}
6060

@@ -113,7 +113,7 @@ export class AlertNotificationsApi {
113113
// verify the required parameter 'timeInterval' is set
114114
if (timeInterval === undefined || timeInterval === null) {
115115
throw new Error(
116-
'Missing the required parameter \'timeInterval\' when calling getAlertNotificationsForUserUsingPOST'
116+
"Missing the required parameter 'timeInterval' when calling getAlertNotificationsForUserUsingPOST"
117117
)
118118
}
119119

stcloud/api/AlertsApi.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class AlertsApi {
4545
// verify the required parameter 'dto' is set
4646
if (dto === undefined || dto === null) {
4747
throw new Error(
48-
'Missing the required parameter \'dto\' when calling createAlertUsingPOST'
48+
"Missing the required parameter 'dto' when calling createAlertUsingPOST"
4949
)
5050
}
5151

@@ -98,7 +98,7 @@ export class AlertsApi {
9898
// verify the required parameter 'updateableAlertId' is set
9999
if (updateableAlertId === undefined || updateableAlertId === null) {
100100
throw new Error(
101-
'Missing the required parameter \'updateableAlertId\' when calling deleteAlertRuleUsingDELETE'
101+
"Missing the required parameter 'updateableAlertId' when calling deleteAlertRuleUsingDELETE"
102102
)
103103
}
104104

@@ -153,7 +153,7 @@ export class AlertsApi {
153153
// verify the required parameter 'updateableAlertId' is set
154154
if (updateableAlertId === undefined || updateableAlertId === null) {
155155
throw new Error(
156-
'Missing the required parameter \'updateableAlertId\' when calling disableAlertRuleUsingPUT'
156+
"Missing the required parameter 'updateableAlertId' when calling disableAlertRuleUsingPUT"
157157
)
158158
}
159159

@@ -208,7 +208,7 @@ export class AlertsApi {
208208
// verify the required parameter 'updateableAlertId' is set
209209
if (updateableAlertId === undefined || updateableAlertId === null) {
210210
throw new Error(
211-
'Missing the required parameter \'updateableAlertId\' when calling enableAlertRuleUsingPUT'
211+
"Missing the required parameter 'updateableAlertId' when calling enableAlertRuleUsingPUT"
212212
)
213213
}
214214

@@ -263,7 +263,7 @@ export class AlertsApi {
263263
// verify the required parameter 'appId' is set
264264
if (appId === undefined || appId === null) {
265265
throw new Error(
266-
'Missing the required parameter \'appId\' when calling getAlertRulesForAppUsingGET'
266+
"Missing the required parameter 'appId' when calling getAlertRulesForAppUsingGET"
267267
)
268268
}
269269

stcloud/api/AppsApi.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export class AppsApi {
9191
// verify the required parameter 'anyStateAppId' is set
9292
if (anyStateAppId === undefined || anyStateAppId === null) {
9393
throw new Error(
94-
'Missing the required parameter \'anyStateAppId\' when calling getUsingGET'
94+
"Missing the required parameter 'anyStateAppId' when calling getUsingGET"
9595
)
9696
}
9797

@@ -146,7 +146,7 @@ export class AppsApi {
146146
// verify the required parameter 'invitation' is set
147147
if (invitation === undefined || invitation === null) {
148148
throw new Error(
149-
'Missing the required parameter \'invitation\' when calling inviteAppGuestsUsingPOST'
149+
"Missing the required parameter 'invitation' when calling inviteAppGuestsUsingPOST"
150150
)
151151
}
152152

@@ -289,7 +289,7 @@ export class AppsApi {
289289
// verify the required parameter 'anyStateAppId' is set
290290
if (anyStateAppId === undefined || anyStateAppId === null) {
291291
throw new Error(
292-
'Missing the required parameter \'anyStateAppId\' when calling updateDescriptionUsingPUT'
292+
"Missing the required parameter 'anyStateAppId' when calling updateDescriptionUsingPUT"
293293
)
294294
}
295295

@@ -349,14 +349,14 @@ export class AppsApi {
349349
// verify the required parameter 'dto' is set
350350
if (dto === undefined || dto === null) {
351351
throw new Error(
352-
'Missing the required parameter \'dto\' when calling updateUsingPUT1'
352+
"Missing the required parameter 'dto' when calling updateUsingPUT1"
353353
)
354354
}
355355

356356
// verify the required parameter 'anyStateAppId' is set
357357
if (anyStateAppId === undefined || anyStateAppId === null) {
358358
throw new Error(
359-
'Missing the required parameter \'anyStateAppId\' when calling updateUsingPUT1'
359+
"Missing the required parameter 'anyStateAppId' when calling updateUsingPUT1"
360360
)
361361
}
362362

stcloud/api/AwsSettingsControllerApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,14 +47,14 @@ export class AwsSettingsControllerApi {
4747
// verify the required parameter 'appId' is set
4848
if (appId === undefined || appId === null) {
4949
throw new Error(
50-
'Missing the required parameter \'appId\' when calling updateUsingPUT'
50+
"Missing the required parameter 'appId' when calling updateUsingPUT"
5151
)
5252
}
5353

5454
// verify the required parameter 'dto' is set
5555
if (dto === undefined || dto === null) {
5656
throw new Error(
57-
'Missing the required parameter \'dto\' when calling updateUsingPUT'
57+
"Missing the required parameter 'dto' when calling updateUsingPUT"
5858
)
5959
}
6060

stcloud/api/BillingApi.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,21 +47,21 @@ export class BillingApi {
4747
// verify the required parameter 'service' is set
4848
if (service === undefined || service === null) {
4949
throw new Error(
50-
'Missing the required parameter \'service\' when calling getDetailedInvoiceUsingGET'
50+
"Missing the required parameter 'service' when calling getDetailedInvoiceUsingGET"
5151
)
5252
}
5353

5454
// verify the required parameter 'year' is set
5555
if (year === undefined || year === null) {
5656
throw new Error(
57-
'Missing the required parameter \'year\' when calling getDetailedInvoiceUsingGET'
57+
"Missing the required parameter 'year' when calling getDetailedInvoiceUsingGET"
5858
)
5959
}
6060

6161
// verify the required parameter 'month' is set
6262
if (month === undefined || month === null) {
6363
throw new Error(
64-
'Missing the required parameter \'month\' when calling getDetailedInvoiceUsingGET'
64+
"Missing the required parameter 'month' when calling getDetailedInvoiceUsingGET"
6565
)
6666
}
6767

@@ -177,14 +177,14 @@ export class BillingApi {
177177
// verify the required parameter 'appId' is set
178178
if (appId === undefined || appId === null) {
179179
throw new Error(
180-
'Missing the required parameter \'appId\' when calling updatePlanUsingPUT'
180+
"Missing the required parameter 'appId' when calling updatePlanUsingPUT"
181181
)
182182
}
183183

184184
// verify the required parameter 'dto' is set
185185
if (dto === undefined || dto === null) {
186186
throw new Error(
187-
'Missing the required parameter \'dto\' when calling updatePlanUsingPUT'
187+
"Missing the required parameter 'dto' when calling updatePlanUsingPUT"
188188
)
189189
}
190190

stcloud/api/LogsAppApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export class LogsAppApi {
4545
// verify the required parameter 'applicationDetails' is set
4646
if (applicationDetails === undefined || applicationDetails === null) {
4747
throw new Error(
48-
'Missing the required parameter \'applicationDetails\' when calling createLogseneApplication'
48+
"Missing the required parameter 'applicationDetails' when calling createLogseneApplication"
4949
)
5050
}
5151

0 commit comments

Comments
 (0)