open-index/open-npm huggingface dataset:
npm package: @nanoservice-ts/api-call
Description: Node module for making API calls
Author: Deskree Technologies Inc.
Latest version: 0.1.32

# Configuration Options
The ApiCall node allows you to make an API call to any API endpoint


## Node properties

### Required properties
- `url *` (string): A string representing the MongoDB connection string. (Required)
- `method *` (string): The name of the MongoDB database to delete. (Required)

### Optional properties

- `headers` (Object): The headers of the request.
- `body` (object): the body of the request.
- `responseType` (string): the response type of the request.

## Usage/Examples
### Step Configuration

```json
{
    "name": "api-call",
    "node": "api-call@1.0.0",
    "type": "local"
}
```

### Node Configuration
```json
"api-call": {
    "inputs": {
        "properties": {
            "url": "https://bp-firestore-stack.api-dev.deskree.com/api/v1/auth/accounts/sign-in/email",
            "method": "POST",
            "headers": {
                "Content-Type": "application/json",
                "Authorization": "Bearer ${ctx.vars.authApiResponse.data.idToken}"
            },
            "body": {
                "email": "email@email.com",
                "password": "123password"
            }
        }
    }
}
```
npm package: @nanoservice-ts/if-else
Description: nanoservice if-else
Author: Deskree Technologies Inc.
Latest version: 0.0.33

# Configuration Options
The IfElse node allows you to have a conditional statement and call other nodes depending on the conditions

## Node properties

### Required properties
- `conditions` (array): List of conditions to check
    - `type` (string if | else): type of the condition
    - `condition` (string): The condition string to be checked
    - `steps` (array):  List of steps to execute if the condition is true


## Usage/Examples
### Step Configuration

```json
{
    "name": "if-else",
    "node": "if-else@1.0.0",
    "type": "local"
}
```

### Node Configuration


```json
"if-else": {
    "conditions": [
        {
            "type": "if",
            "condition": "data !== undefined",
            "steps": []
        },
        {
            "type": "else",
            "steps": []
        }
    ]
}
```
npm package: @nanoservice-ts/trigger-grpc
Description: On Node.js, we support three protocols:
Author: Marco A. Castillo Della Sera
Latest version: 0.0.17

# Use the gRPC protocol instead of the Connect protocol

On Node.js, we support three protocols:

1. The gRPC protocol that is used throughout the gRPC ecosystem.
2. The gRPC-Web protocol used by grpc/grpc-web, allowing servers to interop with grpc-web front-ends without the need for an intermediary proxy (such as Envoy).
3. The new Connect protocol, a simple, HTTP-based protocol that works over HTTP/1.1 or HTTP/2. It takes the best portions of gRPC and gRPC-Web, including streaming, and packages them into a protocol that works equally well in browsers, monoliths, and microservices. The Connect protocol is what we think the gRPC protocol should be. By default, JSON- and binary-encoded Protobuf is supported.

So far, we have been using the ```http://``` scheme in our examples. We were not using TLS (Transport Layer Security). If you want to use gRPC and browser clients during local development, you need TLS.

Actually, that only takes a minute to set up! We will use ```mkcert``` to make a certificate. If you don't have it installed yet, please run the following commands:

```bash
brew install mkcert
mkcert -install
mkcert localhost 127.0.0.1 ::1
export NODE_EXTRA_CA_CERTS="$(mkcert -CAROOT)/rootCA.pem"
```

If you don't use macOS or ```brew```, see the mkcert docs for instructions. You can copy the last line to your ```~/.zprofile``` or ```~/.profile```, so that the environment variable for Node.js is set every time you open a terminal.

If you already use ```mkcert```, just run ```mkcert localhost 127.0.0.1 ::1``` to issue a certificate for our example server.

Reference:
https://connectrpc.com/docs/node/getting-started/