diff --git a/.eslintignore b/.eslintignore index b512c09d..a67603da 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1 +1,6 @@ -node_modules \ No newline at end of file +node_modules +**/base.ts +**/api.ts +**/configuration.ts +**/index.ts +**/*.d.ts \ No newline at end of file diff --git a/package.json b/package.json index ba8e543d..caa871f0 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "test": "npm-run-all --parallel test:*", "build": "nx run-many -t build", "lint": "nx run-many -t lint", + "lint:fix": "nx run-many -t lint --fix", "version": "nx run-many -t version --dryRun" }, "workspaces": [ diff --git a/packages/approval/package.json b/packages/approval/package.json index ebaa7cec..63e0826c 100644 --- a/packages/approval/package.json +++ b/packages/approval/package.json @@ -1,27 +1,27 @@ { - "name": "@redhat-cloud-services/approval-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/approval-api/master/public/doc/openapi-3-v1.2.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/approval-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/approval-api/master/public/doc/openapi-3-v1.2.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/build-utils/executors.json b/packages/build-utils/executors.json index 39be3ae7..7d748039 100644 --- a/packages/build-utils/executors.json +++ b/packages/build-utils/executors.json @@ -11,4 +11,4 @@ "description": "builder executor" } } -} \ No newline at end of file +} diff --git a/packages/build-utils/package.json b/packages/build-utils/package.json index 042e59db..d67a8e7d 100644 --- a/packages/build-utils/package.json +++ b/packages/build-utils/package.json @@ -3,8 +3,6 @@ "version": "0.0.1", "dependencies": { "@nx/devkit": "17.1.3", - "build-utils": "^2.0.12", - "jest": "^29.7.0", "semver": "^7.5.4", "tslib": "^2.0.0", "zod": "^3.22.4" diff --git a/packages/build-utils/src/executors/builder/executor.spec.ts b/packages/build-utils/src/executors/builder/executor.spec.ts index 5c16ec56..2bcd44f0 100644 --- a/packages/build-utils/src/executors/builder/executor.spec.ts +++ b/packages/build-utils/src/executors/builder/executor.spec.ts @@ -25,4 +25,4 @@ describe('Builder Executor', () => { const output = await executor(options, {} as ExecutorContext); expect(output.success).toBe(true); }); -}); \ No newline at end of file +}); diff --git a/packages/build-utils/src/executors/builder/executor.ts b/packages/build-utils/src/executors/builder/executor.ts index 9f92359a..6fa6ce6f 100644 --- a/packages/build-utils/src/executors/builder/executor.ts +++ b/packages/build-utils/src/executors/builder/executor.ts @@ -58,4 +58,4 @@ export default async function runExecutor(options: BuilderExecutorSchemaType, co return { success: true, }; -} \ No newline at end of file +} diff --git a/packages/build-utils/src/executors/sync-dependencies/executor.spec.ts b/packages/build-utils/src/executors/sync-dependencies/executor.spec.ts index aefb9558..b980defe 100644 --- a/packages/build-utils/src/executors/sync-dependencies/executor.spec.ts +++ b/packages/build-utils/src/executors/sync-dependencies/executor.spec.ts @@ -2,4 +2,4 @@ describe('SyncDependencies Executor', () => { it('can run', async () => { expect(true).toBe(true); }); -}); \ No newline at end of file +}); diff --git a/packages/build-utils/src/executors/sync-dependencies/executor.ts b/packages/build-utils/src/executors/sync-dependencies/executor.ts index b22e5b2d..61b05811 100644 --- a/packages/build-utils/src/executors/sync-dependencies/executor.ts +++ b/packages/build-utils/src/executors/sync-dependencies/executor.ts @@ -89,4 +89,4 @@ export default async function syncDependencies(options: SyncDependenciesExecutor console.error(error); return { success: false }; } -} \ No newline at end of file +} diff --git a/packages/catalog/package.json b/packages/catalog/package.json index cd13a13b..f412d561 100644 --- a/packages/catalog/package.json +++ b/packages/catalog/package.json @@ -1,27 +1,27 @@ { - "name": "@redhat-cloud-services/catalog-client", - "version": "1.2.14", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/catalog-api/master/public/doc/openapi-3-v1.3.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/catalog-client", + "version": "1.2.14", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/catalog-api/master/public/doc/openapi-3-v1.3.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/config-manager/package.json b/packages/config-manager/package.json index 373674cd..f417e70b 100644 --- a/packages/config-manager/package.json +++ b/packages/config-manager/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/config-manager-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/config-manager/master/internal/http/v2/openapi.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/config-manager-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/config-manager/master/internal/http/v2/openapi.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/entitlements/package.json b/packages/entitlements/package.json index 9236e719..9478805b 100644 --- a/packages/entitlements/package.json +++ b/packages/entitlements/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/entitlements-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/entitlements-api/master/swagger/api.spec.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/entitlements-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/entitlements-api/master/swagger/api.spec.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/host-inventory/package.json b/packages/host-inventory/package.json index 7bb167df..30c8081b 100644 --- a/packages/host-inventory/package.json +++ b/packages/host-inventory/package.json @@ -1,27 +1,27 @@ { - "name": "@redhat-cloud-services/host-inventory-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/insights-host-inventory/master/swagger/api.spec.yaml' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/host-inventory-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/insights-host-inventory/master/swagger/api.spec.yaml' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/insights/package.json b/packages/insights/package.json index f0e2645a..5393fe9d 100644 --- a/packages/insights/package.json +++ b/packages/insights/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/insights-client", - "version": "1.2.14", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://cloud.redhat.com/api/insights/v1/openapi.json' npm run generate && ./postProcess.sh" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/insights-client", + "version": "1.2.14", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://cloud.redhat.com/api/insights/v1/openapi.json' npm run generate && ./postProcess.sh" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/integrations/package.json b/packages/integrations/package.json index 9183011c..e28c8c69 100644 --- a/packages/integrations/package.json +++ b/packages/integrations/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/integrations-client", - "version": "2.0.7", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC --custom-generator=../../target/typescript-axios-webpack-module-federation-openapi-generator-1.0.0.jar -g typescript-axios-webpack-module-federation -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://console.redhat.com/api/integrations/v1.0/openapi.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/integrations-client", + "version": "2.0.7", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC --custom-generator=../../target/typescript-axios-webpack-module-federation-openapi-generator-1.0.0.jar -g typescript-axios-webpack-module-federation -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://console.redhat.com/api/integrations/v1.0/openapi.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/notifications/package.json b/packages/notifications/package.json index a67e5335..fb1db035 100644 --- a/packages/notifications/package.json +++ b/packages/notifications/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/notifications-client", - "version": "2.0.6", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC --custom-generator=../../target/typescript-axios-webpack-module-federation-openapi-generator-1.0.0.jar -g typescript-axios-webpack-module-federation -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://console.redhat.com/api/notifications/v1.0/openapi.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/notifications-client", + "version": "2.0.6", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC --custom-generator=../../target/typescript-axios-webpack-module-federation-openapi-generator-1.0.0.jar -g typescript-axios-webpack-module-federation -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://console.redhat.com/api/notifications/v1.0/openapi.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/patch/package.json b/packages/patch/package.json index fc662709..b18c6847 100644 --- a/packages/patch/package.json +++ b/packages/patch/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/patch-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://cloud.redhat.com/api/patch/v1/openapi.json' npm run generate" - }, - "publishConfig": { - "access": "public" - }, - "author": "", - "license": "Apache-2.0", - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/patch#readme", - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/patch-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://cloud.redhat.com/api/patch/v1/openapi.json' npm run generate" + }, + "publishConfig": { + "access": "public" + }, + "author": "", + "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/patch#readme", + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/policies/package.json b/packages/policies/package.json index bb13aa38..76858d8d 100644 --- a/packages/policies/package.json +++ b/packages/policies/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/policies-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://cloud.redhat.com/api/policies/v1/openapi.json' npm run generate" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "publishConfig": { - "access": "public" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/policies-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://cloud.redhat.com/api/policies/v1/openapi.json' npm run generate" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "publishConfig": { + "access": "public" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/quickstarts/package.json b/packages/quickstarts/package.json index 70f422e9..e3cca224 100644 --- a/packages/quickstarts/package.json +++ b/packages/quickstarts/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/quickstarts-client", - "version": "1.2.14", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/quickstarts/main/spec/openapi.yaml' npm run generate" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "publishConfig": { - "access": "public" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/quickstarts-client", + "version": "1.2.14", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/quickstarts/main/spec/openapi.yaml' npm run generate" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "publishConfig": { + "access": "public" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/rbac/package.json b/packages/rbac/package.json index cd0381ee..a9aa3bf9 100644 --- a/packages/rbac/package.json +++ b/packages/rbac/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/rbac-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/insights-rbac/master/docs/source/specs/openapi.json' npm run generate && ./postProcess.sh" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/rbac-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/insights-rbac/master/docs/source/specs/openapi.json' npm run generate && ./postProcess.sh" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/remediations/.eslintrc.yml b/packages/remediations/.eslintrc.yml deleted file mode 100644 index 7b7a0245..00000000 --- a/packages/remediations/.eslintrc.yml +++ /dev/null @@ -1,117 +0,0 @@ -parserOptions: - ecmaVersion: 2018 -env: - es6: true - node: true - jest: true -parser: '@typescript-eslint/parser' -plugins: - - '@typescript-eslint' -extends: - - 'plugin:@typescript-eslint/recommended' - - eslint:recommended - - plugin:jest/recommended -rules: -# possible errors - no-template-curly-in-string: 2 - array-callback-return: 2 - -# best practice - curly: - - error - - all - dot-location: - - error - - property - dot-notation: 2 - eqeqeq: 2 - no-caller: 2 - no-else-return: 2 - no-with: 2 - vars-on-top: 2 - wrap-iife: 2 - yoda: - - error - - never - - strict: - - error - - global - -# stylistic - array-bracket-spacing: 2 - comma-dangle: 2 - comma-spacing: - - 2 - - after: true - comma-style: 2 - eol-last: 2 - func-names: - - error - - never - indent: - - error - - 4 - - SwitchCase: 1 - MemberExpression: 0 - ImportDeclaration: 1 - ObjectExpression: 1 - key-spacing: 2 - keyword-spacing: 2 - linebreak-style: - - error - - unix - max-len: - - 2 - - 130 - no-bitwise: 2 - no-mixed-spaces-and-tabs: 2 - no-multiple-empty-lines: - - error - - max: 1 - no-trailing-spaces: 2 - one-var: - - error - - never - padding-line-between-statements: - - error - - blankLine: always - prev: block-like - next: "*" - quote-props: - - error - - as-needed - quotes: - - error - - single - - allowTemplateLiterals: true - semi: - - error - - always - space-before-blocks: 2 - space-in-parens: 2 - space-infix-ops: 2 - space-unary-ops: - - error - - words: false - nonwords: false - -# variables - no-use-before-define: - - error - - functions: false - no-undef: 2 - no-unused-vars: 2 - -# ES6 - no-var: 2 - object-shorthand: 2 - prefer-const: 2 - -# node - no-mixed-requires: 2 - no-path-concat: 2 - no-process-exit: 2 - -# typescript - "@typescript-eslint/explicit-function-return-type": 0 diff --git a/packages/remediations/package.json b/packages/remediations/package.json index d3f983cf..54c8d4a1 100644 --- a/packages/remediations/package.json +++ b/packages/remediations/package.json @@ -1,31 +1,31 @@ { - "name": "@redhat-cloud-services/remediations-client", - "version": "1.2.13", - "description": "TypeScript client for Insights Remediations using Axios", - "publishConfig": { - "access": "public" - }, - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "Jozef Hartinger", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/remediations#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:local": "SPEC='http://localhost:9002/api/remediations/v1/openapi.json' npm run generate && ./postProcess.sh", - "generate:prod": "SPEC='http://cloud.redhat.com/api/remediations/v1/openapi.json' npm run generate && ./postProcess.sh" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/remediations-client", + "version": "1.2.13", + "description": "TypeScript client for Insights Remediations using Axios", + "publishConfig": { + "access": "public" + }, + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "Jozef Hartinger", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/remediations#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:local": "SPEC='http://localhost:9002/api/remediations/v1/openapi.json' npm run generate && ./postProcess.sh", + "generate:prod": "SPEC='http://cloud.redhat.com/api/remediations/v1/openapi.json' npm run generate && ./postProcess.sh" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/sources/package.json b/packages/sources/package.json index b18d96ac..dafb4469 100644 --- a/packages/sources/package.json +++ b/packages/sources/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/sources-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/sources#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/sources-api/master/public/doc/openapi-3-v1.0.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/sources-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/sources#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/sources-api/master/public/doc/openapi-3-v1.0.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/topological-inventory/package.json b/packages/topological-inventory/package.json index 50714ba3..eb003674 100644 --- a/packages/topological-inventory/package.json +++ b/packages/topological-inventory/package.json @@ -1,30 +1,30 @@ { - "name": "@redhat-cloud-services/topological-inventory-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/topological-inventory#readme", - "scripts": { - "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", - "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/topological_inventory-api/master/public/doc/openapi-3-v1.0.json' npm run generate" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - } + "name": "@redhat-cloud-services/topological-inventory-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/topological-inventory#readme", + "scripts": { + "doc": "typedoc --theme markdown --out doc --gitRevision master index.ts", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o . --skip-validate-spec --enable-post-process-file", + "generate:prod": "SPEC='https://raw.githubusercontent.com/RedHatInsights/topological_inventory-api/master/public/doc/openapi-3-v1.0.json' npm run generate" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + } } diff --git a/packages/vulnerabilities/package.json b/packages/vulnerabilities/package.json index 6711e1cd..505f6aeb 100644 --- a/packages/vulnerabilities/package.json +++ b/packages/vulnerabilities/package.json @@ -1,39 +1,39 @@ { - "name": "@redhat-cloud-services/vulnerabilities-client", - "version": "1.2.13", - "description": "", - "main": "./index.js", - "module": "./esm/index.js", - "typings": "./index.d.ts", - "publishConfig": { - "access": "public" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/RedHatInsights/javascript-clients.git" - }, - "author": "", - "license": "Apache-2.0", - "bugs": { - "url": "https://github.com/RedHatInsights/javascript-clients/issues" - }, - "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/vulnerabilities#readme", - "scripts": { - "doc:production": "typedoc --theme markdown --out doc --exclude \"**/git-api/*.ts\" --gitRevision master index.ts", - "doc:git-api": "typedoc --theme markdown --out git-api/doc --gitRevision master ./git-api/index.ts", - "doc": "npm run doc:git-api; npm run doc:production", - "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o $OUTPUT --skip-validate-spec --enable-post-process-file", - "generate:production": "OUTPUT=. SPEC=$(node preProcess.js 'https://console.redhat.com/api/vulnerability/v1/openapi.json') npm run generate", - "generate:git-api": "OUTPUT=git-api SPEC=$(node preProcess.js 'https://console.redhat.com/api/vulnerability/v1/openapi.json') npm run generate", - "generate:prod": "npm run generate:git-api && npm run generate:production && ./postProcess.sh", - "generate:single": "npm run generate:prod && npm run doc" - }, - "dependencies": { - "axios": "^0.27.2", - "tslib": "^2.6.2" - }, - "devDependencies": { - "request": "^2.88.2", - "yaml": "^1.8.3" - } + "name": "@redhat-cloud-services/vulnerabilities-client", + "version": "1.2.13", + "description": "", + "main": "./index.js", + "module": "./esm/index.js", + "typings": "./index.d.ts", + "publishConfig": { + "access": "public" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/RedHatInsights/javascript-clients.git" + }, + "author": "", + "license": "Apache-2.0", + "bugs": { + "url": "https://github.com/RedHatInsights/javascript-clients/issues" + }, + "homepage": "https://github.com/RedHatInsights/javascript-clients/tree/master/packages/vulnerabilities#readme", + "scripts": { + "doc:production": "typedoc --theme markdown --out doc --exclude \"**/git-api/*.ts\" --gitRevision master index.ts", + "doc:git-api": "typedoc --theme markdown --out git-api/doc --gitRevision master ./git-api/index.ts", + "doc": "npm run doc:git-api; npm run doc:production", + "generate": "TS_POST_PROCESS_FILE='../../postProcess.sh' openapi-generator-cli generate -i $SPEC -g typescript-axios -o $OUTPUT --skip-validate-spec --enable-post-process-file", + "generate:production": "OUTPUT=. SPEC=$(node preProcess.js 'https://console.redhat.com/api/vulnerability/v1/openapi.json') npm run generate", + "generate:git-api": "OUTPUT=git-api SPEC=$(node preProcess.js 'https://console.redhat.com/api/vulnerability/v1/openapi.json') npm run generate", + "generate:prod": "npm run generate:git-api && npm run generate:production && ./postProcess.sh", + "generate:single": "npm run generate:prod && npm run doc" + }, + "dependencies": { + "axios": "^0.27.2", + "tslib": "^2.6.2" + }, + "devDependencies": { + "request": "^2.88.2", + "yaml": "^1.8.3" + } }