# docusign-package

> A brief description of what this project does and who it's for

Latest version **1.0.1** (published 2023-10-10) · ISC license · 0 weekly downloads

## Install

```sh
npm install docusign-package
pnpm add docusign-package
yarn add docusign-package
bun add docusign-package
```

## 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.1 |
| Published | 2023-10-10 |
| First published | 2023-09-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Unpacked size | 1.6 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | jayesh berani |
| Maintainers | jayeshberani |

## Links

- npm: https://www.npmjs.com/package/docusign-package
- npm.io page: https://npm.io/package/docusign-package

## Dependencies (3)

- [moment](https://npm.io/package/moment.md) ^2.29.4
- [validator](https://npm.io/package/validator.md) ^13.11.0
- [docusign-esign](https://npm.io/package/docusign-esign.md) ^6.4.0

## Recent versions

- 1.0.1 (latest) — 2023-10-10
- 1.0.0 — 2023-09-22

## README

# npm-package

A brief description of what this project does and who it's for


## Installation

Install our package with npm

```bash
  npm install npm-package
```
    
## Usage/Examples

```javascript
import DsJwtAuth from 'docusign-package'

const obj={
    integrationKey:"",
    userId:""
}

async function handler() {
  const JwtAuth = await new DsJwtAuth(obj)
}
```
```javascript
async function getToken() {
  const JwtAuth = await new DsJwtAuth(obj)
  const response = await JwtAuth.getToken()
}
```
```javascript
const payload={
    dsReturnUrl:"http://localhost:3000/callback",
    signerEmail:"test@gmail.com",
    signerName:"lorem ipsum",
    emailSubject:"subject here",
    signerClientId:1000,
    status:'sent',
    outputFileName:"lorem ipsum", 
    docName:'document.docx',
    tabValues:{
        "eSignName": {
            "tabLabel": "Name",
            "tabId": "eSignName",
            "anchorString": "/f01/",
            "value": "lorem ipsum"
        },
        "eSignEmailAddress": {
            "tabLabel": "E-mail address",
            "tabId": "eSignEmailAddress",
            "anchorString": "/f02/",
            "value": "test@gmail.com"
        },
        "eSignName": {
            "tabLabel": "Project Name",
            "tabId": "eSignNameOfInvestor",
            "anchorString": "/f03/",
            "value": "lorem ipsum"
        },
    }
}
async function createEnvelope() {
  const JwtAuth = await new DsJwtAuth(obj)
  const response = await JwtAuth.createEnvelope(payload)
}
```

```javascript
const templateRoles=[
    {
      roleName: 'Signer',           // Role name as defined in the template
      name: 'lorem ipsum',       // Recipient's name
      email: 'test@gmail.com', // Recipient's email
      roleName: 'Signer',
      authenticationMethod: 'None',
      tabs: {
        textTabs: [
          {
            tabLabel: 'T01',
            value: 'lorem ipsum',
          },
          {
            tabLabel: 'T02',
            value: 'lorem ipsum',
          },
        ],
      },
    },
    // Add more recipients and roles as needed
]

async function createTemplateWithEnvelope() {
  const JwtAuth = await new DsJwtAuth(obj)
  const response = await JwtAuth.createTemplateWithEnvelope(templateName,templateRoles)
}
```

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