# approval_api_jsclient

> APIs_to_query_approval_service

Latest version **1.0.2** (published 2019-04-05) · Apache 2.0 license · 0 weekly downloads

## Install

```sh
npm install approval_api_jsclient
pnpm add approval_api_jsclient
yarn add approval_api_jsclient
bun add approval_api_jsclient
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2019-04-05 |
| First published | 2019-03-06 |
| Weekly downloads | 0 |
| License | Apache 2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 85.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | lgalis |

## Links

- npm: https://www.npmjs.com/package/approval_api_jsclient
- Repository: https://github.com/lgalis/approval-api-jsclient
- Homepage: https://github.com/lgalis/approval-api-jsclient#readme
- Issues: https://github.com/lgalis/approval-api-jsclient/issues
- npm.io page: https://npm.io/package/approval_api_jsclient

## Dependencies (1)

- [superagent](https://npm.io/package/superagent.md) ^3.8.3

## Recent versions

- 1.0.2 (latest) — 2019-04-05
- 1.0.1 — 2019-03-13
- 1.0.0 — 2019-03-06

## README

# insights_service_approval_ap_is

InsightsServiceApprovalApIs - JavaScript client for insights_service_approval_ap_is
APIs to query approval service
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 1.0.0
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen

## Installation

### For [Node.js](https://nodejs.org/)

#### npm

To publish the library as a [npm](https://www.npmjs.com/),
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).

Then install it via:

```shell
npm install insights_service_approval_ap_is --save
```

#### git
#
If the library is hosted at a git repository, e.g.
https://github.com/GIT_USER_ID/GIT_REPO_ID
then install it via:

```shell
    npm install GIT_USER_ID/GIT_REPO_ID --save
```

### For browser

The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
the above steps with Node.js and installing browserify with `npm install -g browserify`,
perform the following (assuming *main.js* is your entry file):

```shell
browserify main.js > bundle.js
```

Then include *bundle.js* in the HTML pages.

### Webpack Configuration

Using Webpack you may encounter the following error: "Module not found: Error:
Cannot resolve module", most certainly you should disable AMD loader. Add/merge
the following section to your webpack config:

```javascript
module: {
  rules: [
    {
      parser: {
        amd: false
      }
    }
  ]
}
```

## Getting Started

Please follow the [installation](#installation) instruction and execute the following JS code:

```javascript
var InsightsServiceApprovalApIs = require('insights_service_approval_ap_is');

var defaultClient = InsightsServiceApprovalApIs.ApiClient.instance;
// Configure API key authorization: APIKey_auth
var APIKey_auth = defaultClient.authentications['APIKey_auth'];
APIKey_auth.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//APIKey_auth.apiKeyPrefix['x-rh-auth-identity'] = "Token"

var api = new InsightsServiceApprovalApIs.AdminsApi()
var groupIn = new InsightsServiceApprovalApIs.GroupIn(); // {GroupIn} Parameters need to create user group
api.addGroup(groupIn).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});


```

## Documentation for API Endpoints

All URIs are relative to *http://localhost:3000*

Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*InsightsServiceApprovalApIs.AdminsApi* | [**addGroup**](docs/AdminsApi.md#addGroup) | **POST** /groups | Add a new user group by given parameters
*InsightsServiceApprovalApIs.AdminsApi* | [**addUser**](docs/AdminsApi.md#addUser) | **POST** /users | Add a new user by given parameters
*InsightsServiceApprovalApIs.AdminsApi* | [**addWorkflow**](docs/AdminsApi.md#addWorkflow) | **POST** /templates/{template_id}/workflows | Add a workflow by given template id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchGroupById**](docs/AdminsApi.md#fetchGroupById) | **GET** /groups/{id} | Return user group by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchGroups**](docs/AdminsApi.md#fetchGroups) | **GET** /groups | Return all user groups
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchGroupsByUserId**](docs/AdminsApi.md#fetchGroupsByUserId) | **GET** /users/{user_id}/groups | Return associated groups by given user id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchGroupsByWorkflowId**](docs/AdminsApi.md#fetchGroupsByWorkflowId) | **GET** /workflows/{workflow_id}/groups | Return an array of groups for the workflow
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchRequestsByUserId**](docs/AdminsApi.md#fetchRequestsByUserId) | **GET** /users/{user_id}/requests | Return associated requests by given user id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchStageById**](docs/AdminsApi.md#fetchStageById) | **GET** /stages/{id} | Return an approval stage by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchTemplateById**](docs/AdminsApi.md#fetchTemplateById) | **GET** /templates/{id} | Return a template by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchTemplateWorkflows**](docs/AdminsApi.md#fetchTemplateWorkflows) | **GET** /templates/{template_id}/workflows | Return an array of workflows by given template id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchTemplates**](docs/AdminsApi.md#fetchTemplates) | **GET** /templates | Return all templates
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchUserById**](docs/AdminsApi.md#fetchUserById) | **GET** /users/{id} | Return user by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchUsers**](docs/AdminsApi.md#fetchUsers) | **GET** /users | Return a list of users
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchUsersByGroupId**](docs/AdminsApi.md#fetchUsersByGroupId) | **GET** /groups/{group_id}/users | Return associated users by given group id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchWorkflowById**](docs/AdminsApi.md#fetchWorkflowById) | **GET** /workflows/{id} | Return an approval workflow by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchWorkflowRequests**](docs/AdminsApi.md#fetchWorkflowRequests) | **GET** /workflows/{workflow_id}/requests | Return approval requests by given workflow id
*InsightsServiceApprovalApIs.AdminsApi* | [**fetchWorkflows**](docs/AdminsApi.md#fetchWorkflows) | **GET** /workflows | Return all approval workflows
*InsightsServiceApprovalApIs.AdminsApi* | [**groupOperation**](docs/AdminsApi.md#groupOperation) | **POST** /groups/{id} | Update users in a given group
*InsightsServiceApprovalApIs.AdminsApi* | [**removeGroup**](docs/AdminsApi.md#removeGroup) | **DELETE** /groups/{id} | Delete user group by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**removeUser**](docs/AdminsApi.md#removeUser) | **DELETE** /users/{id} | Delete user by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**removeWorkflow**](docs/AdminsApi.md#removeWorkflow) | **DELETE** /workflows/{id} | Delete approval workflow by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**updateGroup**](docs/AdminsApi.md#updateGroup) | **PATCH** /groups/{id} | Update an user group by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**updateUser**](docs/AdminsApi.md#updateUser) | **PATCH** /users/{id} | Update an user by given id
*InsightsServiceApprovalApIs.AdminsApi* | [**updateWorkflow**](docs/AdminsApi.md#updateWorkflow) | **PATCH** /workflows/{id} | Update an approval workflow by given id
*InsightsServiceApprovalApIs.RequestersApi* | [**addRequest**](docs/RequestersApi.md#addRequest) | **POST** /workflows/{workflow_id}/requests | Add an approval request by given parameters
*InsightsServiceApprovalApIs.RequestersApi* | [**fetchActionsByStageId**](docs/RequestersApi.md#fetchActionsByStageId) | **GET** /stages/{stage_id}/actions | Return actions in a given stage
*InsightsServiceApprovalApIs.RequestersApi* | [**fetchRequestById**](docs/RequestersApi.md#fetchRequestById) | **GET** /requests/{id} | Return an approval request by given id
*InsightsServiceApprovalApIs.RequestersApi* | [**fetchRequestStages**](docs/RequestersApi.md#fetchRequestStages) | **GET** /requests/{request_id}/stages | Return an array of stages by given request id
*InsightsServiceApprovalApIs.RequestersApi* | [**fetchRequests**](docs/RequestersApi.md#fetchRequests) | **GET** /requests | Return an array of approval requests
*InsightsServiceApprovalApIs.RequestersApi* | [**fetchStageById**](docs/RequestersApi.md#fetchStageById) | **GET** /stages/{id} | Return an approval stage by given id
*InsightsServiceApprovalApIs.UsersApi* | [**addAction**](docs/UsersApi.md#addAction) | **POST** /stages/{stage_id}/actions | Add an action to a given stage
*InsightsServiceApprovalApIs.UsersApi* | [**fetchActionById**](docs/UsersApi.md#fetchActionById) | **GET** /actions/{id} | Return an user action by id
*InsightsServiceApprovalApIs.UsersApi* | [**fetchActionsByStageId**](docs/UsersApi.md#fetchActionsByStageId) | **GET** /stages/{stage_id}/actions | Return actions in a given stage
*InsightsServiceApprovalApIs.UsersApi* | [**fetchRequestById**](docs/UsersApi.md#fetchRequestById) | **GET** /requests/{id} | Return an approval request by given id
*InsightsServiceApprovalApIs.UsersApi* | [**fetchRequestStages**](docs/UsersApi.md#fetchRequestStages) | **GET** /requests/{request_id}/stages | Return an array of stages by given request id
*InsightsServiceApprovalApIs.UsersApi* | [**fetchRequests**](docs/UsersApi.md#fetchRequests) | **GET** /requests | Return an array of approval requests


## Documentation for Models

 - [InsightsServiceApprovalApIs.ActionIn](docs/ActionIn.md)
 - [InsightsServiceApprovalApIs.ActionOut](docs/ActionOut.md)
 - [InsightsServiceApprovalApIs.GroupIn](docs/GroupIn.md)
 - [InsightsServiceApprovalApIs.GroupOperationIn](docs/GroupOperationIn.md)
 - [InsightsServiceApprovalApIs.GroupOut](docs/GroupOut.md)
 - [InsightsServiceApprovalApIs.RequestIn](docs/RequestIn.md)
 - [InsightsServiceApprovalApIs.RequestOut](docs/RequestOut.md)
 - [InsightsServiceApprovalApIs.StageOut](docs/StageOut.md)
 - [InsightsServiceApprovalApIs.TemplateOut](docs/TemplateOut.md)
 - [InsightsServiceApprovalApIs.UserIn](docs/UserIn.md)
 - [InsightsServiceApprovalApIs.UserOut](docs/UserOut.md)
 - [InsightsServiceApprovalApIs.Workflow](docs/Workflow.md)
 - [InsightsServiceApprovalApIs.WorkflowIn](docs/WorkflowIn.md)
 - [InsightsServiceApprovalApIs.WorkflowOut](docs/WorkflowOut.md)


## Documentation for Authorization


### APIKey_auth

- **Type**: API key
- **API key parameter name**: x-rh-auth-identity
- **Location**: HTTP header

---
_Source: https://npm.io/package/approval_api_jsclient · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
