Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include:
- project: 'devplat-pr-32/gitlab-central'
ref: '2deaa7325c4407bfcb29d3e2491820ddf41977f1'
ref: 'e1dd9cc0b4565595cac4936d905dc024a3b75770'
file: '/splunk-cloud-sdk-js/.gitlab-ci.yml'
23 changes: 17 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,30 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

<a name="3.1.0"></a>
## [3.1.0](https://github.com/splunk/splunk-cloud-sdk-js/compare/v3.0.0...v3.1.0) (2019-12-05)
<a name="5.0.0"></a>
# [5.0.0](https://github.com/splunk/splunk-cloud-sdk-js/compare/v4.0.0...v5.0.0) (2019-12-20)

### Features

* **ml:** added `initializing` values to `WorkflowDeploymentStatusEnum` model ([91e68ba4](https://github.com/splunk/splunk-cloud-sdk-js/commits/91e68ba4))

### BREAKING CHANGES

* revert repathing of transpiled JS under `src` directory introduced in v4.0.0 - users upgrading from v3.x.x or earlier to v5.0.0 should be unaffected ([afafe4a](https://github.com/splunk/splunk-cloud-sdk-js/commits/afafe4a))


<a name="4.0.0"></a>
# [4.0.0](https://github.com/splunk/splunk-cloud-sdk-js/compare/v3.0.0...v4.0.0) (2019-12-06)

### Features

* **search:** Expose optional requiredFreshness field on SearchJob interface ([c1fbebd](https://github.com/splunk/splunk-cloud-sdk-js/commits/c1fbebd))
* **streams:** Expose NotActivated on PipelineReactivateResponsePipelineReactivationStatusEnum ([c1fbebd](https://github.com/splunk/splunk-cloud-sdk-js/commits/c1fbebd))
* **search:** Expose optional requiredFreshness field on SearchJob interface ([d92c7af](https://github.com/splunk/splunk-cloud-sdk-js/commits/d92c7af))
* **streams:** Expose NotActivated on PipelineReactivateResponsePipelineReactivationStatusEnum ([d92c7af](https://github.com/splunk/splunk-cloud-sdk-js/commits/d92c7af))

### BREAKING CHANGES

* **streams:** Remove AlreadyActivatedWithCurrentVersion from PipelineReactivateResponsePipelineReactivationStatusEnum ([c1fbebd](https://github.com/splunk/splunk-cloud-sdk-js/commits/c1fbebd))
* **streams:** Remove optional createUserId field on GeneratedPipelineRequest ([c1fbebd](https://github.com/splunk/splunk-cloud-sdk-js/commits/c1fbebd))
* **streams:** Remove AlreadyActivatedWithCurrentVersion from PipelineReactivateResponsePipelineReactivationStatusEnum ([d92c7af](https://github.com/splunk/splunk-cloud-sdk-js/commits/d92c7af))
* **streams:** Remove optional createUserId field on GeneratedPipelineRequest ([d92c7af](https://github.com/splunk/splunk-cloud-sdk-js/commits/d92c7af))



Expand Down
4 changes: 2 additions & 2 deletions ci/integration/runtests-ml.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ fi
if [[ "$allow_failures" -eq "1" ]]; then
echo "Running integration tests but not gating on failures..."
set +e
yarn test:integration:ml
npm run test:integration:ml
exit 0
else
echo "Running integration tests and gating on failures..."
yarn test:integration:ml || exit 1
npm run test:integration:ml || exit 1
fi
4 changes: 2 additions & 2 deletions ci/integration/runtests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ fi
if [[ "$allow_failures" -eq "1" ]]; then
echo "Running integration tests but not gating on failures..."
set +e
yarn test:integration
npm run test:integration
exit 0
else
echo "Running integration tests and gating on failures..."
yarn test:integration || exit 1
npm run test:integration || exit 1
fi
2 changes: 1 addition & 1 deletion examples/catalogImportAndModule.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
// import into a new module and search the collection via the lookup in the imported module.
require('isomorphic-fetch');

const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;

(async function () {
Expand Down
2 changes: 1 addition & 1 deletion examples/catalogJobDatasets.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

require('isomorphic-fetch');

const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;

(async function main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/catalogViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

require('isomorphic-fetch');

const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;

(async function () {
Expand Down
2 changes: 1 addition & 1 deletion examples/ingestAndSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

require('isomorphic-fetch');

const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { activatePipeline, cleanupPipeline, createIndex, createPipeline, searchResultsWithRetryTimeout } = require('./helpers/splunkCloudHelper');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;

Expand Down
5 changes: 3 additions & 2 deletions examples/ingestMetricsAndSearch.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
// and a search on the ingested data to verify the data.
require('isomorphic-fetch');

const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { searchResultsWithRetryTimeout } = require('./helpers/splunkCloudHelper');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;
const METRICS_INDEX_NAME = 'metrics_integration';

// Call to the ingest service to insert data
async function sendDataViaIngest(splunk, host, source) {
Expand Down Expand Up @@ -122,7 +123,7 @@ async function sendDataViaIngest(splunk, host, source) {
// ***** DESCRIPTION: Search the data to ensure the metrics data was ingested.
const searchResultsResponse = await searchResultsWithRetryTimeout(
splunk,
`| from metrics group by host select host, avg(CPU) as avg_cpu, avg(Memory) as avg_mem, avg(Disk) as avg_disk | search host="${host}"`,
`| from ${METRICS_INDEX_NAME} group by host select host, avg(CPU) as avg_cpu, avg(Memory) as avg_mem, avg(Disk) as avg_disk | search host="${host}"`,
(result) => {
return result.length >= 1;
}).catch(error => {
Expand Down
2 changes: 1 addition & 1 deletion examples/lookup.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// and search the collection via the lookup.
require('isomorphic-fetch');

const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;

(async function () {
Expand Down
2 changes: 1 addition & 1 deletion examples/searchTimeExtraction.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
// and search the collection via the lookup.
require('isomorphic-fetch');

const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;
const MAX_RETRIES = 10;

Expand Down
2 changes: 1 addition & 1 deletion examples/tenantSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/

require('isomorphic-fetch');
const { SplunkCloud } = require('../src/splunk');
const { SplunkCloud } = require('../splunk');
const { activatePipeline, cleanupPipeline, createIndex, createPipeline } = require('./helpers/splunkCloudHelper');
const { SPLUNK_CLOUD_API_HOST, SPLUNK_CLOUD_APPS_HOST, BEARER_TOKEN, TENANT_ID } = process.env;

Expand Down
30 changes: 13 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,9 @@
{
"name": "@splunkdev/cloud-sdk",
"version": "3.1.0",
"version": "5.0.0",
"description": "Splunk Cloud SDK for Javascript",
"main": "./src/splunk.js",
"types": "./src/splunk.d.ts",
"files": [
"/src/*.js",
"/src/*.js.map",
"/src/*.d.ts",
"/src/**/*.js",
"/src/**/*.js.map",
"/src/**/*.d.ts"
],
"main": "splunk.js",
"types": "splunk.d.ts",
"scripts": {
"commit": "yarn git-cz",
"tslint": "tslint -p tsconfig.json -c tslint.json && yarn tslint:tests",
Expand All @@ -24,11 +16,11 @@
"docs": "yarn ts:docs",
"build": "node ci/extract_version.js && tsc -p tsconfig.json",
"build:tests": "tsc -p tsconfig.test.json",
"clean": "rimraf *.js *.map *.d.ts src/**/*.js src/**/*.js.map src/**/*.d.ts src/*.js src/*.js.map src/*.d.ts services service_base service_extensions && yarn run clean:coverage || true",
"clean": "rimraf *.js *.map *.d.ts **/*.js **/*.js.map **/*.d.ts services service_base service_extensions && yarn run clean:coverage || true",
"clean:coverage": "rm -rf coverage",
"cover": "yarn run clean:coverage && NODE_ENV=coverage nyc npm run test",
"cover:integration": "NODE_ENV=coverage nyc --report-dir coverage-integration npm ci:integration",
"cover:integration:ml": "NODE_ENV=coverage nyc --report-dir coverage-integration-ml npm ci:integration:ml",
"cover:integration": "NODE_ENV=coverage nyc --report-dir coverage-integration npm run ci:integration",
"cover:integration:ml": "NODE_ENV=coverage nyc --report-dir coverage-integration-ml npm run ci:integration:ml",
"pretest": "yarn tslint && yarn build",
"test": "ts-mocha \"test/unit/**/*.ts\" -p tsconfig.test.json --exclude \"test/unit/*.d.ts\" --exit --timeout=900000 --recursive",
"test:integration": "ts-mocha -p tsconfig.test.json --timeout=900000 test/integration/*.ts --exclude test/integration/ml_proxy.ts",
Expand Down Expand Up @@ -108,15 +100,19 @@
"src/**/index.ts",
"src/**/Generated*.ts",
"src/**/models.ts",
"src/**/*.d.ts"
"src/**/*.d.ts",
"cd/**/*",
"ci/**/*",
"coverage*/**/*",
"docs/**/*",
"examples/**/*"
],
"include": [
"src/**/*.ts",
"src/**/*.js"
"**/*.js"
],
"instrument": true,
"reporter": [
"lcov",
"text-summary",
"text",
"html"
Expand Down
2 changes: 1 addition & 1 deletion src/services/action/v1beta2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -609,4 +609,4 @@ paths:
- Webhook Keys
x-auth-required: false

# Retrieved from scp-openapi commit 1c4b60b97229cab171981c763edf0b1545afad4f path: action/v1beta2/openapi.yaml
# Retrieved from scp-openapi commit 49538c89ff873a85da1e25cbb918db5edfca548a path: action/v1beta2/openapi.yaml
2 changes: 1 addition & 1 deletion src/services/action/v2alpha1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -675,4 +675,4 @@ paths:
- Webhook Keys
x-auth-required: false

# Retrieved from scp-openapi commit 1c4b60b97229cab171981c763edf0b1545afad4f path: action/v2alpha1/openapi.yaml
# Retrieved from scp-openapi commit 49538c89ff873a85da1e25cbb918db5edfca548a path: action/v2alpha1/openapi.yaml
2 changes: 1 addition & 1 deletion src/services/app-registry/v1beta2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -844,4 +844,4 @@ paths:
security:
- BearerToken: []

# Retrieved from scp-openapi commit 1c4b60b97229cab171981c763edf0b1545afad4f path: app-registry/v1beta2/openapi.yaml
# Retrieved from scp-openapi commit 49538c89ff873a85da1e25cbb918db5edfca548a path: app-registry/v1beta2/openapi.yaml
2 changes: 1 addition & 1 deletion src/services/catalog/v2alpha2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4789,4 +4789,4 @@ paths:
- $ref: '#/components/parameters/AuthorizationHeader'
- $ref: '#/components/parameters/Tenant'

# Retrieved from scp-openapi commit 1c4b60b97229cab171981c763edf0b1545afad4f path: catalog/v2alpha2/openapi.yaml
# Retrieved from scp-openapi commit 49538c89ff873a85da1e25cbb918db5edfca548a path: catalog/v2alpha2/openapi.yaml
8 changes: 5 additions & 3 deletions src/services/catalog/v2beta1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ components:
$ref: '#/components/schemas/AliasActionKind'
type: object
Annotation:
additionalProperties: true
additionalProperties:
type: string
allOf:
- $ref: '#/components/schemas/AnnotationsProperties'
- $ref: '#/components/schemas/MetadataProperties'
Expand Down Expand Up @@ -281,7 +282,8 @@ components:
- properties
type: object
AnnotationPOST:
additionalProperties: true
additionalProperties:
type: string
allOf:
- $ref: '#/components/schemas/AnnotationsProperties'
- $ref: '#/components/schemas/AnnotationTypeResourceName'
Expand Down Expand Up @@ -4852,4 +4854,4 @@ paths:
"404":
description: The workflow run was not found.

# Retrieved from scp-openapi commit 1c4b60b97229cab171981c763edf0b1545afad4f path: catalog/v2beta1/openapi.yaml
# Retrieved from scp-openapi commit 49538c89ff873a85da1e25cbb918db5edfca548a path: catalog/v2beta1/openapi.yaml
2 changes: 1 addition & 1 deletion src/services/collect/v1beta1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -899,4 +899,4 @@ paths:
$ref: '#/components/responses/500'
summary: Modifies a job based on the job ID.
x-authz-scope: collect.jobs.update
# Retrieved from scp-openapi commit 1c4b60b97229cab171981c763edf0b1545afad4f path: collect/v1beta1/openapi.yaml
# Retrieved from scp-openapi commit 49538c89ff873a85da1e25cbb918db5edfca548a path: collect/v1beta1/openapi.yaml
2 changes: 1 addition & 1 deletion src/services/forwarders/v2beta1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -229,4 +229,4 @@ paths:
servers:
- url: /

# Retrieved from scp-openapi commit 1c4b60b97229cab171981c763edf0b1545afad4f path: forwarders/v2beta1/openapi.yaml
# Retrieved from scp-openapi commit 49538c89ff873a85da1e25cbb918db5edfca548a path: forwarders/v2beta1/openapi.yaml
4 changes: 2 additions & 2 deletions src/services/identity/v2beta1/apis/GeneratedApis.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down Expand Up @@ -49,7 +49,7 @@ export const IDENTITY_SERVICE_CLUSTER: string = 'api';

/**
* Identity
* Version: v2beta1.16
* Version: v2beta1.17
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*/
export class GeneratedIdentityService extends BaseApiService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/services/identity/v2beta1/models/GeneratedGroup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
2 changes: 1 addition & 1 deletion src/services/identity/v2beta1/models/GeneratedMember.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* Identity
* With the Identity service in Splunk Cloud Services, you can authenticate and authorize Splunk Cloud Services users.
*
* OpenAPI spec version: v2beta1.16 (recommended default)
* OpenAPI spec version: v2beta1.17 (recommended default)
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
Expand Down
Loading